Policy > Networking > Connectivity > Tier-0 Gateways > Interfaces > Interfaces

Create or update a Tier-0 interface

If an interface with the interface-id is not already present, create a new
interface. If it already exists, replace the interface with this object.

Request:

Method:
PUT
URI Path(s):
/policy/api/v1/infra/tier-0s/<tier-0-id>/locale-services/<locale-service-id>/interfaces/<interface-id>
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
Tier0Interface+

Example Request:

PUT https://<policy-mgr>/policy/api/v1/infra/tier-0s/vmc_prv/locale-services/default/interfaces/to_internet { "segment_path": "/infra/segments/sg-uplink", "subnets": [ { "ip_addresses": [ "35.1.1.1" ], "prefix_len": 24 } ], "edge_path": "/infra/sites/default/enforcement-point/nsx/edge-clusters/95196903-6b8a-4276-a7c4-387263e834fd/edge-nodes/940f1f4b-0317-45d4-84e2-b8c2394e7405", "type": "EXTERNAL" "_revision": 0 }

Successful Response:

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

Example Response:

{ "resource_type": "Tier0Interface", "id": "to_internet", "display_name": "to_internet", "path": "/infra/tier-0s/vmc_prv/locale-services/default/interfaces/to_internet", "parent_path": "/infra/tier-0s/vmc_prv/locale-services/default", "relative_path": "to_internet", "segment_path": "/infra/segments/sg-uplink", "subnets": [ { "ip_addresses": [ "35.1.1.1" ], "prefix_len": 24 } ], "edge_path": "/infra/sites/default/enforcement-point/nsx/edge-clusters/95196903-6b8a-4276-a7c4-387263e834fd/edge-nodes/940f1f4b-0317-45d4-84e2-b8c2394e7405", "type": "EXTERNAL" "_create_user": "admin", "_create_time": 1516751318020, "_last_modified_user": "admin", "_last_modified_time": 1516751318020, "_system_owned": false, "_protection": "NOT_PROTECTED", "_revision": 0 }

Required Permissions:

crud

Feature:

policy_t0

Additional Errors: