NSX-T Data Center REST API

Create or Update transit gateway attachment

Create or Update transit gateway attachment
This API is only available when using VMware NSX.

Request:

Method:
PUT
URI Path(s):
/policy/api/v1/orgs/{org-id}/projects/{project-id}/transit-gateways/{transit-gateway-id}/attachments/{attachment-id}
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
TransitGatewayAttachment+

Example Request:

PUT https://<policy-mgr>/orgs/default/projects/default/transit-gateways/default/attachments/distributed-vlan-101 { "resource_type": "TransitGatewayAttachment", "id": "distributed-vlan-101", "display_name": "distributed-vlan-101", "description" : "Distributed VLAN connection attached to TGW", "connection_path": "/infra/vlan-connections/gateway-101", } PUT https://<policy-mgr>/orgs/default/projects/default/transit-gateways/default/attachments/gateway-connection-101 { "resource_type": "TransitGatewayAttachment", "id": "gateway-connection-101", "display_name": "gateway-connection-101", "description" : "Gateway connection attached to TGW", "connection_path": "/infra/gateway-connections/d1595bd4-3b37-4053-9baf-cb8986353955" }

Successful Response:

Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
TransitGatewayAttachment+

Example Response:

{ "resource_type": "TransitGatewayAttachment", "id": "vlan-101-gateway", "display_name": "vlan-101-gateway", "description" : "Distributed VLAN connection attached to TGW", "path": "/orgs/default/projects/default/transit-gateways/default/attachments/vlan-101-gateway", "parent_path": "/orgs/default/projects/default", "relative_path": "vlan-101-gateway", "connection_path": "/infra/vlan-connections/gateway-101" "_create_user": "admin", "_create_time": 1516751200877, "_last_modified_user": "admin", "_last_modified_time": 1516751200877, "_system_owned": false, "_protection": "NOT_PROTECTED", "_revision": 0 } { "resource_type": "TransitGatewayAttachment", "id": "gateway-connection-101", "display_name": "gateway-connection-101", "description" : "Gateway connection attached to TGW", "path": "/orgs/default/projects/default/transit-gateways/default/attachments/gateway-connection-101", "parent_path": "/orgs/default/projects/default", "relative_path": "gateway-connection-101", "connection_path": "/infra/gateway-connections/d1595bd4-3b37-4053-9baf-cb8986353955" "_create_user": "admin", "_create_time": 1516751210877, "_last_modified_user": "admin", "_last_modified_time": 1516751210877, "_system_owned": false, "_protection": "NOT_PROTECTED", "_revision": 0 }

Required Permissions:

crud

Feature:

policy_transit_gateway

Additional Errors: