List Tags For Category Tag
DescriptionEnumerates all tags for the given category. To invoke this operation, you need the read privilege on the given category and the individual tags in that category.
Request
URLURL
https://{api_host}/rest/com/vmware/cis/tagging/tag/id:{category_id}?~action=list-tags-for-category
Parameters
Parameters
string
category_id
Required
The identifier of the input category.
The parameter must be an identifier for the resource type: com.vmware.cis.tagging.Category.
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
Response
Response
Response BodyResponse Body
200 OK returns
TaggingTagListTagsForCategoryResponseBody
of type application/json
The list of resource identifiers for the tags in the given input category. 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 given input category. 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" https://{api_host}/rest/com/vmware/cis/tagging/tag/id:{category_id}?~action=list-tags-for-category
Errors
401
com.vmware.vapi.std.errors.unauthorized : if you do not have the privilege to read the category.
404
com.vmware.vapi.std.errors.not_found : if the category for the given categoryId does not exist in the system.
default
'Default' means this response is used for all HTTP codes that are not covered individually for this operation.
Tag Operations
get
post
get
patch
delete
post
post