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

Create or update a Tier-1 interface

If an interface with the interface-id is not already present, create a new
interface. If it already exists, update the interface for specified
attributes.
This API is available when using VMware Cloud (AWS, Dell-EMC, Outpost) or VMware NSX-T.

Request:

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

Example Request:

PATCH https://<policy-mgr>/policy/api/v1/infra/tier-1s/cgw/locale-services/default/interfaces/to_internet { "segment_path": "/infra/segments/sg-svc", "subnets": [ { "ip_addresses": [ "35.1.1.1" ], "prefix_len": 24 } ] }

Successful Response:

Response Code:
200 OK
Response Headers:
n/a
Response Body:
n/a

Example Response:

200 OK

Required Permissions:

crud

Feature:

policy_t1

Additional Errors: