List Used Categories Category
Enumerates all categories for which the usedByEntity is part of the CategoryModel.used-by subscribers set. To invoke this operation, you need the read privilege on the individual categories.
Request
URLURL
https://{api_host}/rest/com/vmware/cis/tagging/category?~action=list-used-categories
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
TaggingCategoryListUsedCategoriesRequestBody 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
TaggingCategoryListUsedCategoriesResponseBody
of type application/json
The list of resource identifiers for the categories in the system that are used by usedByEntity. The result will contain identifiers for the resource type: com.vmware.cis.tagging.Category.
{
"value": [
"string"
]
}
array of
string
value
Optional
The list of resource identifiers for the categories in the system that are used by usedByEntity. The result will contain identifiers for the resource type: com.vmware.cis.tagging.Category.
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/category?~action=list-used-categories
Errors
default
'Default' means this response is used for all HTTP codes that are not covered individually for this operation.
On This Page
Category Operations
get
post
patch
delete
get