List Policies Tag Usage
Returns information about the tags used by policies available in this vCenter server matching the TagUsage.FilterSpec. if you do not have all of the privileges described as follows: - Operation execution requires System.Read.
Request
URLURL
Query Parameters
Query Parameters
Identifiers that compute policies must have to match the filter. If unset or empty, then tags used by any policy match this filter. When clients pass a value of this structure as a parameter, the field must contain identifiers for the resource type: com.vmware.vcenter.compute.Policy. When operations return a value of this structure as a result, the field will contain identifiers for the resource type: com.vmware.vcenter.compute.Policy.
Identifiers that tag types must have to match the filter. If unset or empty, then tags of any type match this filter. When clients pass a value of this structure as a parameter, the field must contain identifiers for the resource type: com.vmware.vapi.resource. When operations return a value of this structure as a result, the field will contain identifiers for the resource type: com.vmware.vapi.resource.
Identifiers that tags must have to match the filter. If unset or empty, then tags with any tag identifier match this filter. When clients pass a value of this structure as a parameter, the field must contain identifiers for the resource type: com.vmware.cis.tagging.Tag. When operations return a value of this structure as a result, the field will contain identifiers for the resource type: com.vmware.cis.tagging.Tag.
Header Parameters
Header Parameters
Required session ID, acquired from Create Session API under CIS product
vmware-api-session-id example
"b00db39f948d13ea1e59b4d6fce56389"
Authentication
Response
Response BodyResponse Body
array
of
ComputePoliciesTagUsageSummary
of type application/json
The list of tags used by policies available on this vCenter server matching the TagUsage.FilterSpec.
[
{
"category_name": "string",
"policy": "string",
"tag": "string",
"tag_name": "string",
"tag_type": "string"
}
]
Name of the category that has TagUsage.Summary.tag.
Identifier of the policy that uses the tag indicated by TagUsage.Summary.tag. When clients pass a value of this structure as a parameter, the field must be an identifier for the resource type: com.vmware.vcenter.compute.Policy. When operations return a value of this structure as a result, the field will be an identifier for the resource type: com.vmware.vcenter.compute.Policy.
Identifier of the tag used by the policy indicated by TagUsage.Summary.policy. When clients pass a value of this structure as a parameter, the field TagUsage.Summary.tag-type must contain the actual resource type. When operations return a value of this structure as a result, the field TagUsage.Summary.tag-type will contain the actual resource type.
Name of the tag used by the policy indicated by TagUsage.Summary.policy.
Identifier of the tag type used by the policy indicated by TagUsage.Summary.policy. When clients pass a value of this structure as a parameter, the field must be an identifier for the resource type: com.vmware.vapi.resource. When operations return a value of this structure as a result, the field will be an identifier for the resource type: com.vmware.vapi.resource.
Errors
com.vmware.vapi.std.errors.unauthorized : if the user doesn’t have the required privileges.
‘Default’ means this response is used for all HTTP codes that are not covered individually for this operation.
Code Samples
cURL Command
Vendor Extensions
x-vmw-doc-operation: list