Queries the resource types supported by tags and tag-related capability items.
Operation description
Call example
- 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
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
tag:ListSupportResourceTypes | list | *All Resources * |
| none |
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"
}
]
}
],
"ArnTemplate": "acs:ecs:*:*:instance/${ResourceId}"
}
],
"RequestId": "ABC71772-F3A1-59CA-B811-4A5B0E0B72F8",
"NextToken": "AAAAAYws9fJ0Ur4MGm****"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
403 | InvalidParameter.SupportCode | SupportCode parameter is illegal. | SupportCode parameter is illegal. |
404 | Missing.Data | The data that you want to operate does not exist. | The data that you want to operate does not exist. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-04-25 | The internal configuration of the API is changed, but the call is not affected | View Change Details |
2023-07-19 | The response structure of the API has changed | View Change Details |
2022-06-20 | The response structure of the API has changed | View Change Details |
2022-06-20 | Add Operation | View Change Details |