Queries the resource types supported by tags and tag-related capability items.
Operation description
Call examples
- Query a list of resource types supported by TagResources or UntagResources. For more information, see Example .
- Query a list of resource types supported by ListTagResources or ListResourcesByTag. For more information, see Example .
- Query a list of resource types that support createdby tags. For more information, see Example .
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | No | The region ID. For more information about region IDs, see Endpoints . | cn-hangzhou |
MaxResult | integer | No | The number of entries to return on each page. Maximum value: 1000. Default value: 50. | 50 |
NextToken | string | No | The token that is used to start the next query. | AAAAAYws9fJ0Ur4MGm/5OkDoW/Y3wDNwUdssyKODK**** |
ProductCode | string | No | The service code. This parameter specifies a filter condition for the query. This parameter is obtained from the response. | ecs |
ResourceTye | string | No | The resource type. This parameter specifies a filter condition for the query. This parameter is obtained from the response. | instance |
ShowItems | boolean | No | Specifies whether to return tag-related capability items. Valid values:
| false |
SupportCode | string | No | The code of the tag-related capability item. This parameter specifies a filter condition for the query. For more information, see Tag-related capability items. | TAG_CONSOLE_SUPPORT |
Tag-related capability items
Code of a tag-related capability item | Description |
---|---|
TAG_CONSOLE_SUPPORT | Specifies whether a resource type is supported by the Resource Management console. |
CLOUD_RESOURCE_CONSOLE_SUPPORT | Specifies whether the console of a service supports tags. |
TAG_RAM_SUPPORT | Specifies whether tags can be used to verify the permissions of users on resources of a specific type. |
CLOUD_RESOURCE_API_SUPPORT | Specifies whether the API operations that are used to query resources support tags. |
TAG_API_SUPPORT | Specifies whether a service provides tag-related API operations.Tag-related API operations include TagResources, UntagResources, and ListTagResources. |
TAG_BILL_SUPPORT | Specifies whether cost allocation by tag is supported. |
CREATED_BY_TAG_BILL_SUPPORT | Specifies whether cost allocation based on createdby tags is supported. |
CREATED_BY_TAG_CONSOLE_SUPPORT | Specifies whether the console of a service supports createdby tags. |
TAG_POLICY_PREVENTATIVE_CHECK_SUPPORT | Specifies whether the pre-detection feature of tag policies is supported. This feature enables the system to check whether a tag complies with the rules defined in a tag policy when you add the tag to a resource. If the tag does not comply with the rules, the tag fails to be added to the resource. |
TAG_POLICY_CHECK_REMEDIATION_SUPPORT | Specifies whether the post-detection and automatic remediation features of tag policies are supported.The post-detection feature enables the system to check whether the tags that are added to a resource comply with the rules defined in a tag policy. The automatic remediation feature enables the system to correct the tags that do not comply with the rules. |
TAG_POLICY_RG_TAG_INHERIT_SUPPORT | Specifies whether resource group-based tag inheritance defined in a tag policy is supported. If resource group-based tag inheritance is enabled in a tag policy, resources inherit tags from the resource groups to which they belong. |
Response parameters
Examples
Sample success responses
JSON
format
{
"SupportResourceTypes": [
{
"ProductCode": "ecs",
"ResourceType": "instance",
"SupportItems": [
{
"SupportCode": "TAG_CONSOLE_SUPPORT",
"Support": true,
"SupportDetails": [
{
"key": "ApiName"
}
]
}
]
}
],
"RequestId": "ABC71772-F3A1-59CA-B811-4A5B0E0B72F8",
"NextToken": "AAAAAYws9fJ0Ur4MGm****"
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||
---|---|---|---|---|
2023-07-19 | The response structure of the API has changed | see changesets | ||
| ||||
2022-06-20 | The response structure of the API has changed | see changesets | ||
| ||||
2022-06-20 | Add Operation | see changesets |