NSX-T Data Center REST API
Patch a Service
Create a new service if a service with the given ID does not alreadyexist. Creates new service entries if populated in the service.
If a service with the given ID already exists, patch the service
including the nested service entries.
This API is available when using VMware Cloud (AWS, Dell-EMC, Outpost, Hyperscalers) or VMware NSX.
Request:
Method:
PATCH
URI Path(s):
/policy/api/v1/infra/services/{service-id}
/policy/api/v1/orgs/{org-id}/projects/{project-id}/infra/services/{service-id}
/policy/api/v1/orgs/{org-id}/projects/{project-id}/infra/services/{service-id}
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
Service+
Example Request:
{ "description": "My HTTP Patched", "display_name": "My HTTP", "service_entries": [ { "resource_type": "L4PortSetServiceEntry", "display_name": "MyHttpEntry", "destination_ports": [ "8080" ], "l4_protocol": "TCP" } ] }Successful Response:
Response Code:
200 OK
Response Headers:
n/a
Response Body:
n/a