最近更新时间:2024.02.26 20:17:36
首次发布时间:2022.06.27 21:21:35
查询容器服务支持的周边产品的资源类型列表。
调用该 API 时的请求参数如下,除此之外还需传入公共请求参数。公共请求参数说明,请参见 公共参数。
参数名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | ListSupportedResourceTypes | 公共参数,本接口值:ListSupportedResourceTypes。 |
Version | String | 是 | 2022-05-12 | 公共参数,本接口值:2022-05-12。 |
Filter | Object SupportedResourceTypesFilter | 否 | 要是查询的资源类型筛选条件。 | |
PageNumber | Integer | 否 | 1 | 分页查询时的起始页码,从 1 开始,默认为 1。 |
PageSize | Integer | 否 | 10 | 分页查询时每页显示的记录数,取值:
|
参数名 | 参数类型 | 是否必选 | 示例值 | 说明 |
---|---|---|---|---|
ZoneIds | Array of String | 否 | ["cn-beijing-a"] | 可用区 ID 列表。 请参见 地域和可用区,获取可用区 ID(ZoneID)。 说明 不传参数值时返回指定 Region 下所有可用区下的资源信息。 |
ResourceTypes | Array of String | 否 | ["Ecs","Zone"] | 返回的资源类型,目前支持两种资源类型:
不传参数值时,返回容器服务支持的所有资源类型。 |
POST /?Action=ListSupportedResourceTypes&Version=2022-05-12 HTTP/1.1 Content-Type:application/json { "PageNumber": 1, "PageSize": 10, "Filter": { "ZoneIds": ["cn-beijing-a"], "ResourceTypes": ["Ecs","Zone"] } }
本接口返回参数如下表所示,公共返回参数请参见 返回结果。
参数名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
Items | Array of Object SupportedResourceTypesResponse | 支持的资源类型及规格的列表。 | |
PageNumber | Integer | 1 | 当前页码。 |
PageSize | Integer | 10 | 每页显示的资源类型数。 |
TotalCount | Integer | 100 | 返回数据列表的总量。 |
参数名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
ResourceScope | String | Zone | 资源所属范围,参数值说明:
|
ZoneId | String | cn-beijing-a | 资源所支持的具体可用区 ID。 |
ResourceType | String | Ecs | 资源类型,参数值说明:
|
ResourceSpecifications | Array of String | ["ecs.c1.large"] | 资源的对应规格列表。 |
HTTP/1.1 200 OK Content-Type:application/json { "ResponseMetadata": { "RequestId": "202205151028090****", "Action": "ListSupportedResourceTypes", "Version": "2022-05-12", "Service": "vke", "Region": "cn-beijing" }, "Result": { "TotalCount": 2, "PageNumber": 1, "PageSize": 10, "Items": [ { "ResourceScope": "Zone", "ZoneId": "cn-beijing-a", "ResourceType": "Ecs", "ResourceSpecifications": [ "ecs.c1.large" ] }, { "ResourceScope": "Region", "ZoneId": "", "ResourceType": "Zone", "ResourceSpecifications": [ "cn-beijing-a" ] } ] } }
本接口无专有错误码,公共错误码请参见 公共错误码。