接口请求域名: cfg.intl.tencentcloudapi.com 。
查询对象类型列表
默认接口请求频率限制:20次/秒。
以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见 公共请求参数。
| 参数名称 | 必选 | 类型 | 描述 |
|---|---|---|---|
| Action | 是 | String | 公共参数,本接口取值:DescribeObjectTypeList。 |
| Version | 是 | String | 公共参数,本接口取值:2021-08-20。 |
| Region | 否 | String | 公共参数,此参数为可选参数。 |
| SupportType | 否 | Integer | 所支持的对象 0:全平台产品 1:平台接入的对象 2:应用所支持的部分对象 |
| 参数名称 | 类型 | 描述 |
|---|---|---|
| ObjectTypeList | Array of ObjectType | 对象类型列表 |
| RequestId | String | 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 |
POST / HTTP/1.1
Host: cfg.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeObjectTypeList
<公共请求参数>
{
"SupportType": 1
}
{
"Response": {
"ObjectTypeList": [
{
"ArchLayer": 2,
"ObjectHasNewAction": false,
"ObjectPlatformName": "CVM",
"ObjectSupportType": 2,
"ObjectTypeId": 1,
"ObjectTypeJsonParse": null,
"ObjectTypeLevelOne": "计算",
"ObjectTypeParams": {
"Fields": [
{
"Header": "实例ID",
"JsonParse": null,
"Key": "InstanceId",
"Transfer": null,
"Type": 0
},
{
"Header": "实例名称",
"JsonParse": null,
"Key": "InstanceName",
"Transfer": null,
"Type": 0
},
{
"Header": "可用区",
"JsonParse": null,
"Key": "Placement.Zone",
"Transfer": "{\"ap-seoul-1\": \"\\u9996\\u5c14\\u4e00\\u533a\", \"ap-seoul-2\": \"\\u9996\\u5c14\\u4e8c\\u533a\"}",
"Type": 0
},
{
"Header": "主IPv4地址",
"JsonParse": null,
"Key": "PrivateIpAddresses",
"Transfer": null,
"Type": 0
},
{
"Header": "VPC-ID",
"JsonParse": null,
"Key": "VirtualPrivateCloud.VpcId",
"Transfer": null,
"Type": 0
},
{
"Header": "子网ID",
"JsonParse": null,
"Key": "VirtualPrivateCloud.SubnetId",
"Transfer": null,
"Type": 0
}
],
"Key": "InstanceId"
},
"ObjectTypeTitle": "CVM"
}
],
"RequestId": "fd1309c8-f198-4a6e-924c-89a80a274138"
}
}
云 API 3.0 提供了配套的开发工具集(SDK),支持多种编程语言,能更方便的调用 API。
该接口暂无业务逻辑相关的错误码,其他错误码详见 公共错误码。
피드백