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+

Example Response:

{ "resource_type": "DistributedVlanConnection", "id": "gateway-101", "display_name": "gateway-101", "description": "Distributed vlan connection", "path": "/infra/distributed-vlan-connections/gateway-101", "parent_path": "/infra", "relative_path": "gateway-101", "gateway_addresses" : ["10.2.1.1/24"], "vlan_id": 101, "_create_user":"admin", "_create_time":1516750267338, "_last_modified_user":"admin", "_last_modified_time":1516750267338, "_system_owned":false, "_protection":"NOT_PROTECTED", "_revision":0 }

Required Permissions:

crud

Feature:

policy_transit_gateway_connection

Additional Errors: