NSX-T Data Center REST API

Apply tags on bare metal server interface

Allows an admin to apply multiple tags to a bare metal server interface. This operation
does not store the intent on the policy side. This operation will replace the existing
tags on the bare metal server interface 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-server-interfaces/tags
/policy/api/v1/orgs/{org-id}/projects/{project-id}/infra/baremetal-server-interfaces/tags
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
BareMetalServerInterfaceTagList+

Example Request:

POST https://<policy-mgr>/policy/api/v1/infra/baremetal-server-interfaces/tags { "bms_interface_external_id": "74730a28-e52d-11e5-936e-6f061d405a28“, "tags": [ {"scope": "os1”, "tag": "NetworkInterface"}, {"scope": "security", "tag": "storage"} ] }

Successful Response:

Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
BareMetalServerInterfaceTagList+

Required Permissions:

crud

Feature:

policy_bare_metal_server_tags

Additional Errors: