NSX-T Data Center REST API
Create a Tier1 service interface
If a Tier1 service interface with the interface-id is not already present, create a new Tier1 serviceinterface. Modification of Tier 1 service interface is not allowed.
This API is available when using VMware Cloud (AWS, Dell-EMC, Outpost, Hyperscalers) or VMware NSX.
Request:
Method:
              PUT
            URI Path(s):
              
                /policy/api/v1/infra/tier-1s/{tier-1-id}/locale-services/{locale-service-id}/service-interfaces/{interface-id}
                
/policy/api/v1/orgs/{org-id}/projects/{project-id}/infra/tier-1s/{tier-1-id}/locale-services/{locale-service-id}/service-interfaces/{interface-id}
              
            /policy/api/v1/orgs/{org-id}/projects/{project-id}/infra/tier-1s/{tier-1-id}/locale-services/{locale-service-id}/service-interfaces/{interface-id}
Request Headers:
                n/a
            Query Parameters:
    n/a
  Request Body:
    ServiceInterface+
  Example Request:
PUT https://<policy-mgr>/policy/api/v1/infra/tier-1s/TLR1/locale-services/default/service-interfaces/to_internet { "subnets": [ { "ip_addresses": [ "35.1.1.1" ], "prefix_len": 24 } ], "_revision": 0 }Successful Response:
Response Code:
                200 OK
              Response Headers:
                  
                  Content-type: application/json
                Response Body:
    ServiceInterface+