NSX-T Data Center REST API

L2VpnTunnelPeerCode (type)

{
  "additionalProperties": false,
  "description": "L2Vpn tunnel peer code",
  "id": "L2VpnTunnelPeerCode",
  "module_id": "L2VPN",
  "properties": {
    "peer_code": {
      "description": "Copy this code to paste on the remote end of the tunnel. This is a base64 encoded string which has all the configuration for tunnel. E.g tap device local/peer ips and protocol, encryption algorithm, etc. The peer code also contains a pre-shared key; be careful when sharing or storing it.",
      "required": true,
      "title": "Peer code for the tunnel",
      "type": "string"
    },
    "transport_tunnel": {
      "$ref": "ResourceReference",
      "required": true,
      "title": "Transport tunnel"
    }
  },
  "title": "L2Vpn tunnel peer code",
  "type": "object"
}