NSX-T Data Center REST API
Assign or Unassign tag on multiple Virtual Machines.
Tag can be assigned or unassigned on multiple objects. Supported object type isrestricted to Virtual Machine for now and support for other objects will be added
later. Permissions for tag bulk operation would be similar to virtual machine
tag permissions.
Request:
Method:
PUT
URI Path(s):
/policy/api/v1/infra/tags/tag-operations/{operation-id}
/policy/api/v1/orgs/{org-id}/projects/{project-id}/infra/tags/tag-operations/{operation-id}
/policy/api/v1/orgs/{org-id}/projects/{project-id}/infra/tags/tag-operations/{operation-id}
Request Headers:
n/a
Query Parameters:
RealizationListRequestParameters+
Request Body:
TagBulkOperation+
Example Request:
{ "tag": { "scope": "os", "tag": "windows" }, "apply_to": [ { "resource_type": "VirtualMachine", "resource_ids": [ "ee98a906-7b84-42ae-9413-d812cdb64543" ] } ], "remove_from":[ { "resource_type": "VirtualMachine", "resource_ids": [ "564d8b81-983d-b8ef-686b-161205939c58" ] } ] }Successful Response:
Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
TagBulkOperation+