接口请求域名: config.intl.tencentcloudapi.com 。
账号组资源详情
默认接口请求频率限制:20次/秒。
以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见 公共请求参数。
| 参数名称 | 必选 | 类型 | 描述 |
|---|---|---|---|
| Action | 是 | String | 公共参数,本接口取值:DescribeAggregateDiscoveredResource。 |
| Version | 是 | String | 公共参数,本接口取值:2022-08-02。 |
| Region | 否 | String | 公共参数,此参数为可选参数。 |
| ResourceId | 是 | String | 资源ID |
| ResourceType | 是 | String | 资源类型 |
| ResourceRegion | 是 | String | 资源地域 |
| AccountGroupId | 是 | String | 账号组ID |
| ResourceOwnerId | 是 | Integer | 资源所属用户ID |
| 参数名称 | 类型 | 描述 |
|---|---|---|
| ResourceId | String | 资源Id |
| ResourceType | String | 资源类型 |
| ResourceName | String | 资源名 |
| ResourceRegion | String | 资源地域 |
| ResourceZone | String | 资源可用区 |
| Configuration | String | 资源配置 |
| ResourceCreateTime | String | 资源创建时间 |
| Tags | Array of Tag | 资源标签 |
| UpdateTime | String | 资源更新时间 |
| RequestId | String | 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 |
获取资源详情
POST / HTTP/1.1
Host: config.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeAggregateDiscoveredResource
<公共请求参数>
{
"ResourceOwnerId": 1,
"AccountGroupId": "ad-234234234234",
"ResourceId": "adad-adasd-1307051190",
"ResourceRegion": "ap-nanjing",
"ResourceType": "QCS::COS::Bucket"
}
{
"Response": {
"RequestId": "701285ae-1e8e-4189-9d7a-e9dec4fadae6",
"Configuration": "{\"Acl\":[{\"Grantee\":null,\"Permission\":\"FULL_CONTROL\"}],\"Url\":\"https://adad-adasd-1307051190.cos.ap-nanjing.myqcloud.com\",\"Version\":\"\",\"Log\":{\"TargetBucket\":\"\",\"TargetPrefix\":\"\"},\"Encryption\":null}",
"ResourceCreateTime": "2022-09-01 10:36:51",
"ResourceId": "adad-adasd-1307051190",
"ResourceName": "adad-adasd-1307051190",
"ResourceRegion": "ap-nanjing",
"ResourceType": "QCS::COS::Bucket",
"ResourceZone": "global",
"Tags": [
{
"TagKey": "asd",
"TagValue": "asd"
}
],
"UpdateTime": "2022-11-16 11:20:00"
}
}
云 API 3.0 提供了配套的开发工具集(SDK),支持多种编程语言,能更方便的调用 API。
以下仅列出了接口业务逻辑相关的错误码,其他错误码详见 公共错误码。
| 错误码 | 描述 |
|---|---|
| InternalError | 内部错误。 |
| InvalidParameter | 参数错误。 |
| ResourceNotFound.AccountGroupIsNotExist | 账号组不存在。 |
| ResourceNotFound.ResourceNotExist | 资源不存在。 |
文档反馈