All Products
Search
Document Center

Resource Management:ListResourceTypes

Last Updated:Mar 12, 2025

Queries the metadata of resource types.

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

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
AcceptLanguagestringNo

The language of the response. Valid values:

  • zh-CN: Chinese
  • en-US: English
zh-CN
ResourceTypestringNo

The resource type.

For more information about the resource types that are supported by Resource Center, see Services that work with Resource Center.

ACS::ACK::Cluster
QueryarrayNo

The query conditions.

QuerystringNo

The field for the query. Valid values:

  • ResourceType
  • ProductName
  • ResourceTypeName
  • FilterKeys
  • CodeMapping
ResourceType

Response parameters

ParameterTypeDescriptionExample
object

The returned result.

RequestIdstring

The ID of the request.

E5556E4C-479A-5BBB-B325-F07563E7E917
ResourceTypesarray<object>

The resource types.

ResourceTypeobject

The resource types.

CodeMappingobject

The code mapping of the resource type.

ResourceGroupstring

The resource group.

cs.cluster
Tagstring

The tag.

cs.cluster
FilterKeysarray

The supported filter conditions.

FilterKeystring

A supported filter condition.

ResourceName
ProductNamestring

The name of the Alibaba Cloud service.

Container Service for Kubernetes
ResourceTypestring

The resource type.

ACS::ACK::Cluster
ResourceTypeNamestring

The name of the resource type.

Cluster

Examples

Sample success responses

JSONformat

{
  "RequestId": "E5556E4C-479A-5BBB-B325-F07563E7E917",
  "ResourceTypes": [
    {
      "CodeMapping": {
        "ResourceGroup": "cs.cluster",
        "Tag": "cs.cluster"
      },
      "FilterKeys": [
        "ResourceName"
      ],
      "ProductName": "Container Service for Kubernetes\n",
      "ResourceType": "ACS::ACK::Cluster",
      "ResourceTypeName": "Cluster\n",
      "RelatedResourceTypes": [
        ""
      ]
    }
  ]
}

Error codes

HTTP status codeError codeError messageDescription
409InvalidParameter.QueryThe specified parameter Query is not valid.The Query parameter is invalid.
409InvalidParameter.ResourceTypeThe specified parameter ResourceType is not valid.The ResourceType parameter is invalid.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history