NSX-T Data Center REST API
Create or update distributed vlan connection
If a distributed vlan connection is not already present, create a new distributed vlan connection.If it already exists, update the distributed vlan connection. This operation will fully replace the object.
This API is only available when using VMware NSX.
Request:
Method:
PUT
URI Path(s):
/policy/api/v1/infra/distributed-vlan-connections/{distributed-vlan-connection-id}
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
DistributedVlanConnection+
Example Request:
PUT https://<policy-mgr>/policy/api/v1/infra/distributed-vlan-connections/gateway-101 { "resource_type": "DistributedVlanConnection", "id": "gateway-101", "display_name": "gateway-101", "description": "Distributed vlan connection", "gateway_addresses" : ["10.2.1.1/24"], "vlan_id": 101 }Successful Response:
Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
DistributedVlanConnection+