NSX-T Data Center REST API
Create a Logical Router (Deprecated)
Creates a logical router. The required parameters are router_type (TIER0 orTIER1) and edge_cluster_id (TIER0 only). Optional parameters include
internal and external transit network addresses.
Deprecated:
Please use below policy apis instead of this API.
PATCH /infra/tier-0s/<id>
PATCH /infra/tier-0s/<id>/locale-services/<id>
PATCH /infra/tier-1s/<id>
PATCH /infra/tier-1s/<id>/locale-services/<id>
Request:
Method:
POST
URI Path(s):
/api/v1/logical-routers
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
LogicalRouter+
Example Request:
{ "resource_type": "LogicalRouter", "description": "Router West", "display_name": "tier-0", "edge_cluster_id": "a9dc562c-effd-4225-883d-3f7d2c887c6b", "advanced_config": { "external_transit_networks": [ "100.64.1.0/10" ], "internal_transit_network": "169.254.0.0/28" }, "allocation_profile": { "enable_standby_relocation": false }, "router_type": "TIER0", "high_availability_mode": "ACTIVE_ACTIVE" }Successful Response:
Response Code:
201 Created
Response Headers:
Location
Content-type: application/json
Content-type: application/json
Response Body:
LogicalRouter+