List Attached Objects On Tags Tag Association
Released in v6.5Fetches the list of TagAssociation.TagToObjects describing the input tag identifiers and the objects they are attached to. To invoke this operation, you need the read privilege on each input tag. The TagAssociation.TagToObjects.object-ids will only contain those objects for which you have the read privilege.
Request
URLURL
https://{api_host}/rest/com/vmware/cis/tagging/tag-association?~action=list-attached-objects-on-tags
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
TaggingTagAssociationListAttachedObjectsOnTagsRequestBody of type application/json (required){
"tag_ids": [
"string"
]
}
array of
string
tag_ids
Required
The identifiers of the input tags. The parameter must contain identifiers for the resource type: com.vmware.cis.tagging.Tag.
Response
Response
Response BodyResponse Body
200 OK returns
TaggingTagAssociationListAttachedObjectsOnTagsResponseBody
of type application/json
The list of the tag identifiers to all object identifiers that each tag is attached to.
{
"value": [
{
"object_ids": [
{
"id": "string",
"type": "string"
}
],
"tag_id": "string"
}
]
}
array of
TaggingTagAssociationTagToObjects
value
Optional
The list of the tag identifiers to all object identifiers that each tag is attached to.
cURL Command
curl -X POST -H "vmware-api-session-id: b00db39f948d13ea1e59b4d6fce56389" -H "Content-Type: application/json" -d '{"tag_ids":["string"]}' https://{api_host}/rest/com/vmware/cis/tagging/tag-association?~action=list-attached-objects-on-tags
Errors
default
'Default' means this response is used for all HTTP codes that are not covered individually for this operation.