List Attached Tags On Objects Tag Association
Released in v6.5Fetches the list of TagAssociation.ObjectToTags describing the input object identifiers and the tags attached to each object. To invoke this operation, you need the read privilege on each input object. The TagAssociation.ObjectToTags.tag-ids will only contain those tags for which you have the read privilege.
Request
URLURL
https://{api_host}/rest/com/vmware/cis/tagging/tag-association?~action=list-attached-tags-on-objects
Header Parameters
Header Parameters
string
vmware-api-session-id
Required
Required session ID, acquired from Create Session API under CIS product
vmware-api-session-id Example
b00db39f948d13ea1e59b4d6fce56389
Request Body
Request Body
TaggingTagAssociationListAttachedTagsOnObjectsRequestBody of type application/json (required){
"object_ids": [
{
"id": "string",
"type": "string"
}
]
}
Response
Response
Response BodyResponse Body
200 OK returns
TaggingTagAssociationListAttachedTagsOnObjectsResponseBody
of type application/json
The list of the object identifiers to all tag identifiers that are attached to that object.
{
"value": [
{
"object_id": {
"id": "string",
"type": "string"
},
"tag_ids": [
"string"
]
}
]
}
array of
TaggingTagAssociationObjectToTags
value
Optional
The list of the object identifiers to all tag identifiers that are attached to that object.
cURL Command
curl -X POST -H "vmware-api-session-id: b00db39f948d13ea1e59b4d6fce56389" -H "Content-Type: application/json" -d '{}' https://{api_host}/rest/com/vmware/cis/tagging/tag-association?~action=list-attached-tags-on-objects
Errors
default
'Default' means this response is used for all HTTP codes that are not covered individually for this operation.