Get Tag
DescriptionFetches the tag information for the given tag identifier. To invoke this operation, you need the read privilege on the tag in order to view the tag info.
Request
URLURL
https://{api_host}/rest/com/vmware/cis/tagging/tag/id:{tag_id}
Parameters
Parameters
string
tag_id
Required
The identifier of the input tag.
The parameter must be an identifier for the resource type: com.vmware.cis.tagging.Tag.
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
TaggingTagGetResponseBody
of type application/json
The TagModel that corresponds to tagId.
{
"value": {
"category_id": "string",
"description": "string",
"id": "string",
"name": "string",
"used_by": [
"string"
]
}
}
cURL Command
curl -H "vmware-api-session-id: b00db39f948d13ea1e59b4d6fce56389" https://{api_host}/rest/com/vmware/cis/tagging/tag/id:{tag_id}
Errors
401
com.vmware.vapi.std.errors.unauthorized : if the user does not have the privilege to read the tag.
404
com.vmware.vapi.std.errors.not_found : if the tag for the given tagId 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