vcenter vm tags: get
Lists all tags attached to the virtual machine. Warning: This operation is part of a new feature in development. It may be changed at any time and may not have all supported functionality implemented.
Request:
HTTP request
GET https://{server}/rest/vcenter/vm/{vm}/tags
Path Parameters
Name | Type | Description |
---|---|---|
Required | ||
vm | string | Identifier of the virtual machine to be queried for its assigned tags. |
Response:
HTTP Status Code: 200
Representation:
{
"value" : [
"obj-103",
"obj-103"
]
}
"value" : [
"obj-103",
"obj-103"
]
}
Response Type:
Name | Type | Description |
---|---|---|
bold = required | ||
value | string[] | The set of tags associated with the virtual machine. |
Errors:
HTTP Status Code | Type | Description |
---|---|---|
404 | not_found | if the virtual machine is not registered on this vCenter server. |
403 | unauthorized | if the user doesn't have the required privileges. |