列舉產品的資源類型。
接口說明
GET /api/v1/providers/{provider}/products/{product}/resourceTypes。
調試
您可以在OpenAPI Explorer中直接運行該接口,免去您計算簽名的困擾。運行成功后,OpenAPI Explorer可以自動生成SDK代碼示例。
授權信息
當前API暫無授權信息透出。
請求語法
GET /api/v1/providers/{provider}/products/{product}/resourceTypes HTTP/1.1
請求參數
名稱 | 類型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
x-acs-accept-language | string | 否 | 選擇返回產品的語言。 zh_CH:中文 (默認) en_US:英文。 | zh_CH |
provider | string | 是 | 云廠商,目前只支持 Aliyun。 | Aliyun |
product | string | 是 | 產品 Code。 | ECS |
resourceTypes | array | 否 | 資源類型列表。 | |
string | 否 | 資源類型。 | Instance | |
nextToken | string | 否 | 用來標記當前開始讀取的位置,置空表示從頭開始。 | ECS::Disk |
maxResults | integer | 否 | 分頁查詢時每頁行數。 | 10 |
返回參數
示例
正常返回示例
JSON
格式
{
"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
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
變更歷史
變更時間 | 變更內容概要 | 操作 |
---|
暫無變更歷史