All Products
Search
Document Center

Cloud Control API:ListResourceTypes

Last Updated:Mar 06, 2025

Calls this operation to list the resource types of a service.

Operation description

GET /api/v1/providers/{provider}/products/{product}/resourceTypes.

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 syntax

GET /api/v1/providers/{provider}/products/{product}/resourceTypes HTTP/1.1

Request parameters

ParameterTypeRequiredDescriptionExample
x-acs-accept-languagestringNo

Select the language in which the response is returned.

zh_CH: Chinese (default).

en_US: English.

zh_CH
providerstringYes

The Cloud service provider. Only Aliyun is supported.

Aliyun
productstringYes

The code of the service.

ECS
resourceTypesarrayNo

The information about the resource types.

stringNo

The resource types.

Instance
nextTokenstringNo

The pagination token that is used in the next request to retrieve a new page of results. If you leave this parameter empty, the query starts from the beginning.

ECS::Disk
maxResultsintegerNo

The number of entries per page.

10

Response parameters

ParameterTypeDescriptionExample
object

The returned data.

maxResultsinteger

The maximum number of entries returned.

10
nextTokenstring

A pagination token. It can be used in the next request to retrieve a new page of results. If NextToken is empty, no next page exists.

ECS::Disk
requestIdstring

The ID of a request.

473469C7-AA6F-4DC5-B3DB-A3DC0DE3****
resourceTypesarray<object>

The information about the resource types.

resourceTypeobject

The resource types.

createOnlyPropertiesarray

The properties that are specific to the create operation. You need to specify these properties when you create the resource. These properties are not returned when you query the resource.

createOnlyPropertystring

The property that is specific to the create operation.

/properties/AutoRenew
deleteOnlyPropertiesarray

The properties that are specific to the delete operation. You need to specify these properties when you delete the resource. These properties are not returned when you query the resource.

deleteOnlyPropertystring

The property that is specific to the delete operation.

/properties/ForceDelete
filterPropertiesarray

The properties that can be used to filter the resource when you list the resource.

filterPropertystring

The property that can be used to filter the resource.

/properties/ResourceGroupId
getOnlyPropertiesarray

The properties that are specific to the query operation. You need to specify these properties when you query the resource. These properties are not returned in the query result.

getOnlyPropertystring

The property that is specific to the query operation.

/properties/DryRun
getResponsePropertiesarray

The properties that are returned when you query the resource.

getResponsePropertystring

The property that is returned when you query the resource.

/properties/NetworkInterfaces/items/properties/IpvSets
handlersobject

The information about the operation, including the required Resource Access Management (RAM) permissions.

createobject

The information about the create operation.

permissionsarray

The RAM permissions required.

permissionstring

The RAM permission.

ecs:CreateInstance
deleteobject

The information about the delete operation.

permissionsarray

The RAM permissions required.

permissionstring

The RAM permission.

ecs:DeleteInstance
getobject

The information about the query operation.

permissionsarray

The RAM permissions required.

permissionstring

The RAM permission.

ecs:DescribeInstanceAttachmentAttributes
listobject

The information about the list operation.

permissionsarray

The RAM permissions required.

permissionstring

The RAM permission.

ecs:DescribeInstances
updateobject

The information about the update operation.

permissionsarray

The RAM permissions required.

permissionstring

The RAM permission.

ecs:ModifyInstanceNetworkSpec
infoobject

The information about the resource type.

chargeTypestring

Billing method
paid free

paid
deliveryScopestring

The deployment level of the resource.

center

region

zone

region
descriptionstring

The description of the resource type.

An ECS instance is equivalent to a virtual machine, including the most basic computing components such as CPU, memory, operating system, network, and disk. You can easily customize and change the configuration of the instance. You have full control over the virtual machine.
titlestring

The name of the resource type.

Instance
listOnlyPropertiesarray

The properties that are specific to the list operation. You need to specify these properties when you list the resource. These properties are not returned when you query the resource.

listOnlyPropertystring

The property that is specific to the list operation.

/properties/DryRun
listResponsePropertiesarray

The properties that are returned when you list the resource.

listResponsePropertystring

The property that is returned when you query the resource.

/properties/InstanceId
primaryIdentifierstring

The ID of the resource.

/properties/InstanceId
productstring

The code of the service.

ECS
propertiesobject

The resource properties. The key specifies the property name and the value specifies the details of the property.

publicPropertiesarray

The common properties of the resource. The common properties are not operation-specific.

publicPropertystring

The common property.

/properties/Description
readOnlyPropertiesarray

The read-only properties. These properties are returned only when you list or query the resource. You do not need to specify these properties when you create or update the resource.

readOnlyPropertystring

The read-only property.

/properties/CreateTime
requiredarray

The properties that must be specified when you create the resource.

requiredstring

The property that must be specified when you create the resource.

RegionId
resourceTypestring

The resource type.

Instance
sensitiveInfoPropertiesarray

The sensitive properties, such as the password.

sensitiveInfoPropertystring

The sensitive property.

/properties/VncPassword
updateOnlyPropertiesarray

The properties that are specific to the update operation. You need to specify these properties when you update the resource. These properties are not returned when you query the resource.

updateOnlyPropertystring

The property that is specific to the update operation.

/properties/DryRun
updateTypePropertiesarray

The properties that can be modified.

updateTypePropertystring

The property that can be modified.

/properties/InstanceName
totalCountinteger

The total number of entries returned.

20

Examples

Sample success responses

JSONformat

{
  "maxResults": 10,
  "nextToken": "ECS::Disk",
  "requestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3****",
  "resourceTypes": [
    {
      "createOnlyProperties": [
        "/properties/AutoRenew"
      ],
      "deleteOnlyProperties": [
        "/properties/ForceDelete"
      ],
      "filterProperties": [
        "/properties/ResourceGroupId"
      ],
      "getOnlyProperties": [
        "/properties/DryRun\n"
      ],
      "getResponseProperties": [
        "/properties/NetworkInterfaces/items/properties/IpvSets"
      ],
      "handlers": {
        "create": {
          "permissions": [
            "ecs:CreateInstance"
          ]
        },
        "delete": {
          "permissions": [
            "ecs:DeleteInstance"
          ]
        },
        "get": {
          "permissions": [
            "ecs:DescribeInstanceAttachmentAttributes"
          ]
        },
        "list": {
          "permissions": [
            "ecs:DescribeInstances"
          ]
        },
        "update": {
          "permissions": [
            "ecs:ModifyInstanceNetworkSpec"
          ]
        }
      },
      "info": {
        "chargeType": "paid",
        "deliveryScope": "region",
        "description": "An ECS instance is equivalent to a virtual machine, including the most basic computing components such as CPU, memory, operating system, network, and disk. You can easily customize and change the configuration of the instance. You have full control over the virtual machine.",
        "title": "Instance"
      },
      "listOnlyProperties": [
        "/properties/DryRun"
      ],
      "listResponseProperties": [
        "/properties/InstanceId"
      ],
      "primaryIdentifier": "/properties/InstanceId",
      "product": "ECS",
      "properties": {
        "test": "test",
        "test2": 1
      },
      "publicProperties": [
        "/properties/Description"
      ],
      "readOnlyProperties": [
        "/properties/CreateTime"
      ],
      "required": [
        "RegionId"
      ],
      "resourceType": "Instance",
      "sensitiveInfoProperties": [
        "/properties/VncPassword"
      ],
      "updateOnlyProperties": [
        "/properties/DryRun"
      ],
      "updateTypeProperties": [
        "/properties/InstanceName"
      ]
    }
  ],
  "totalCount": 20
}

Error codes

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

Change history

Change timeSummary of changesOperation
No change history