All Products
Search
Document Center

Resource Management:ListSupportResourceTypes

Last Updated:Mar 03, 2024

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

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringNo

The region ID.

For more information about region IDs, see Endpoints .

cn-hangzhou
MaxResultintegerNo

The number of entries to return on each page.

Maximum value: 1000. Default value: 50.

50
NextTokenstringNo

The token that is used to start the next query.

AAAAAYws9fJ0Ur4MGm/5OkDoW/Y3wDNwUdssyKODK****
ProductCodestringNo

The service code. This parameter specifies a filter condition for the query.

This parameter is obtained from the response.

ecs
ResourceTyestringNo

The resource type. This parameter specifies a filter condition for the query.

This parameter is obtained from the response.

instance
ShowItemsbooleanNo

Specifies whether to return tag-related capability items. Valid values:

  • true: The system returns tag-related capability items.
  • false (default value): The system does not return tag-related capability items.
false
SupportCodestringNo

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
Code of a tag-related capability itemDescription
TAG_CONSOLE_SUPPORTSpecifies whether a resource type is supported by the Resource Management console.
CLOUD_RESOURCE_CONSOLE_SUPPORTSpecifies whether the console of a service supports tags.
TAG_RAM_SUPPORTSpecifies whether tags can be used to verify the permissions of users on resources of a specific type.
CLOUD_RESOURCE_API_SUPPORTSpecifies whether the API operations that are used to query resources support tags.
TAG_API_SUPPORTSpecifies whether a service provides tag-related API operations.Tag-related API operations include TagResources, UntagResources, and ListTagResources.
TAG_BILL_SUPPORTSpecifies whether cost allocation by tag is supported.
CREATED_BY_TAG_BILL_SUPPORTSpecifies whether cost allocation based on createdby tags is supported.
CREATED_BY_TAG_CONSOLE_SUPPORTSpecifies whether the console of a service supports createdby tags.
TAG_POLICY_PREVENTATIVE_CHECK_SUPPORTSpecifies 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_SUPPORTSpecifies 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_SUPPORTSpecifies 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

ParameterTypeDescriptionExample
object

The response parameters.

SupportResourceTypesobject []

The supported resource types.

ProductCodestring

The service code.

ecs
ResourceTypestring

The resource type.

instance
SupportItemsobject []

The supported tag-related capability items.

Note This parameter is returned only if the ShowItems parameter is set to true.
SupportCodestring

The code of the tag-related capability item.

TAG_CONSOLE_SUPPORT
Supportboolean

Indicates whether the tag-related capability item is supported. Valid values:

  • true
  • false
true
SupportDetailsobject []

The details of the support for the tag-related capability item.

object

The details of the support for the tag-related capability item.

string

The code of the support. For more information, see Codes of the support for tag-related capability items.

ApiName
RequestIdstring

The ID of the request.

ABC71772-F3A1-59CA-B811-4A5B0E0B72F8
NextTokenstring

Indicates whether the next query is required.

  • If the value of this parameter is empty, all results are returned, and the next query is not required.
  • If the value of this parameter is not empty, the next query is required, and the value is the token used to start the next query.
AAAAAYws9fJ0Ur4MGm****
CodeDescription
ApiNameThe name of the API operation supported by a tag-related capability item.
SupportEnforcedForTagsIndicates whether the API operation supports tag pre-detection.

Examples

Sample success responses

JSONformat

{
  "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 timeSummary of changesOperation
2023-07-19The response structure of the API has changedsee changesets
Change itemChange content
Output ParametersThe response structure of the API has changed.
2022-06-20The response structure of the API has changedsee changesets
Change itemChange content
Output ParametersThe response structure of the API has changed.
2022-06-20Add Operationsee changesets