列举产品的资源类型。
接口说明
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
}
错误码
访问错误中心查看更多错误码。
变更历史
变更时间 | 变更内容概要 | 操作 |
---|
暂无变更历史