Calls this operation to list the resource types of a service.
Operation description
GET /api/v1/providers/{provider}/products/{product}/resourceTypes.
Debugging
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
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| x-acs-accept-language | string | No | Select the language in which the response is returned. zh_CH: Chinese (default). en_US: English. | zh_CH |
| provider | string | Yes | The Cloud service provider. Only Aliyun is supported. | Aliyun |
| product | string | Yes | The code of the service. | ECS |
| resourceTypes | array | No | The information about the resource types. | |
| string | No | The resource types. | Instance | |
| nextToken | string | No | 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 |
| maxResults | integer | No | The number of entries per page. | 10 |
Response parameters
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 time | Summary of changes | Operation |
|---|
No change history
