L2 VPN allows you to configure a tunnel between two sites. Virtual machines remain on the same subnet in spite of being moved between these sites, which enables you to extend your datacenter. An NSX Edge at one site can provide all services to virtual machines on the other site. To create the L2 VPN tunnel, you configure an L2 VPN server and L2 VPN client.

API-URL is a URL of the form https://vcloud.example.com/network.

id is a vCloud Director unique identifier in the form of a UUID, as defined by RFC 4122.

# is a small integer used in an NSX object identifier.

Summary of NSX Edge L2 VPN Requests

Operation

Request

Request Body

Response

Retrieve the L2 VPN configuration for the edge with identifier id.

GET API-URL/edges/id/l2vpn/config

None

l2Vpn

Retrieve the L2 VPN statistics for the edge with identifier id.

GET API-URL/edges/id/l2vpn/config/statistics

None

l2vpnStatusAndStats

Update the L2 VPN configuration for the edge with identifier id.

PUT API-URL/edges/id/l2vpn/config

l2Vpn

204 No Content

Enable or disable the L2 VPN configuration for the edge with identifier id.

POST API-URL/edges/id/l2vpn/config?enableService=[true | false]

None

204 No Content

Delete the L2 VPN configuration for the edge with identifier id.

DELETE API-URL/edges/id/l2vpn/config

None

204 No Content