REST API - get

vcenter tags vm associations: get

Lists all virtual machine that have this tag attached. 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/tags/vm/{tag}/associations

Path Parameters

Name Type Description
Required
tag string Identifier of the tag to be queried for its associated virtual machines.

Response:

HTTP Status Code: 200

Representation:

{
    "value"[
        "obj-103",
        "obj-103"
    ]
}

Response Type:

Name Type Description
bold = required
value string[] The set of virtual machines associated with this tag.

Errors:

HTTP Status Code Type Description
404 not_found if the tag is not known to this vCenter server.
403 unauthorized if the user doesn't have the required privileges.