NSX-T Data Center REST API
Create or replace label
Create label if not exists, otherwise replaces the existing label.If label already exists then type attribute cannot be changed.
Request:
Method:
PUT
URI Path(s):
/policy/api/v1/infra/labels/{label-id}
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
PolicyLabel+
Example Request:
PUT https://<policy-mgr>/policy/api/v1/infra/labels/my-domains-label { "type" : "Domain", "refs" : ["/infra/domains/mydomain1", "/infra/domains/mydomain2", "/infra/domains/mydomain3"] }Successful Response:
Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
PolicyLabel+