[{"label":"Latest (v1.0)","version":"latest"}]
nsx-vmc-policy
Create Service For Tenant
DescriptionCreate a new service if a service with the given ID does not already exist. Creates new service entries if populated in the service. If a service with the given ID already exists, update the service including the nested service entries. This is a full replace.
Request
URLURL
https://nsxmanager.your.domain/policy/api/v1/infra/services/{service-id}
Path Parameters
Path Parameters
string
service-id
Required
Service ID
Request Body
Request Body
Service
of type(s) application/json
Required
This request body class requires all of the following:
PolicyConfigResource, InlineService1
Authentication
This operation uses the following authentication methods.
Response
Response
Response BodyResponse Body
200 OK returns
Service
of type(s) application/json
This response body class contains all of the following:
PolicyConfigResource, InlineService1
Errors
Code Samples
Code Samples
PowerCLI Client SDK Example
Invoke-UpdateServiceForTenant -serviceId -service $service
cURL Command
curl -X PUT -H "Content-Type: application/json" -d '{}' https://nsxmanager.your.domain/policy/api/v1/infra/services/{service-id}
Vendor Extensions
This operation contains the following vendor extensions defined in the spec:
x-vmw-doc-operation: create-service-for-tenant
x-vmw-nsx-module: Policy
[{"label":"Latest (v1.0)","version":"latest"}]
nsx-vmc-policy
On This Page
Infrastructure Operations
delete
delete
patch