List Used Tags Tag
Enumerates all tags for which the usedByEntity is part of the TagModel.used-by subscribers set. To invoke this operation, you need the read privilege on the individual tags.
Request
URLURL
https://{api_host}/rest/com/vmware/cis/tagging/tag?~action=list-used-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
TaggingTagListUsedTagsRequestBody of type application/json (required){
"used_by_entity": "string"
}
string
used_by_entity
Required
The field on which the results will be filtered.
Response
Response
Response BodyResponse Body
200 OK returns
TaggingTagListUsedTagsResponseBody
of type application/json
The list of resource identifiers for the tags in the system that are used by usedByEntity. The result will contain identifiers for the resource type: com.vmware.cis.tagging.Tag.
{
"value": [
"string"
]
}
array of
string
value
Optional
The list of resource identifiers for the tags in the system that are used by usedByEntity. The result will contain identifiers for the resource type: com.vmware.cis.tagging.Tag.
cURL Command
curl -X POST -H "vmware-api-session-id: b00db39f948d13ea1e59b4d6fce56389" -H "Content-Type: application/json" -d '{"used_by_entity":"string"}' https://{api_host}/rest/com/vmware/cis/tagging/tag?~action=list-used-tags
Errors
default
'Default' means this response is used for all HTTP codes that are not covered individually for this operation.
On This Page
Tag Operations
get
post
get
patch
delete
post
post