NSX-T Data Center REST API
Apply tags on bare metal server
Allows an admin to apply multiple tags to a bare metal server. This operationdoes not store the intent on the policy side. This operation will replace the existing
tags on the bare metal server with the ones that have been passed. If the
application of tag fails, then an error is reported. The admin will have to retry the operation again.
Policy framework does not perform a retry. Failure could occur due to multiple
reasons. For e.g constraints like max tags limit exceeded, etc.
This API is only available when using VMware NSX.
Request:
Method:
POST
URI Path(s):
/policy/api/v1/infra/baremetal-servers/tags
/policy/api/v1/orgs/{org-id}/projects/{project-id}/infra/baremetal-servers/tags
/policy/api/v1/orgs/{org-id}/projects/{project-id}/infra/baremetal-servers/tags
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
BareMetalServerTagList+
Example Request:
POST https://<policy-mgr>/policy/api/v1/infra/baremetal-servers/tags { "bms_external_id": "74730a28-e52d-11e5-936e-6f061d405a28", "tags": [ {"scope": "os", "tag": "linux86"}, {"scope": "security", "tag": "PCI"} ] }Successful Response:
Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
BareMetalServerTagList+