All Products
Search
Document Center

Resource Management:ListSupportResourceTypes

最終更新日:Dec 18, 2024

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

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

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.
OperationAccess levelResource typeCondition keyAssociated operation
tag:ListSupportResourceTypeslist
*All Resources
*
    none
none

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 returned result.

SupportResourceTypesarray<object>

The supported resource types.

SupportResourceTypeobject

A supported resource type.

ProductCodestring

The service code.

ecs
ResourceTypestring

The resource type.

instance
SupportItemsarray<object>

The supported tag-related capability items.

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

The supported tag-related capability items.

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
SupportDetailsarray<object>

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

SupportDetailsobject

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
ArnTemplatestring

The resource ARN template.

acs:ecs:*:*:instance/${ResourceId}
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 the strong verification feature for pre-event interception.

Examples

Sample success responses

JSONformat

{
  "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 codeError codeError messageDescription
403InvalidParameter.SupportCodeSupportCode parameter is illegal.SupportCode parameter is illegal.
404Missing.DataThe 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 timeSummary of changesOperation
2024-04-25The internal configuration of the API is changed, but the call is not affectedView Change Details
2023-07-19The response structure of the API has changedView Change Details
2022-06-20The response structure of the API has changedView Change Details
2022-06-20Add OperationView Change Details