查询指定资源的配置详情。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
config:DescribeDiscoveredResource |
get |
*全部资源
|
无 | 无 |
请求参数
名称 |
类型 |
必填 |
描述 |
示例值 |
ResourceId |
string |
是 |
资源 ID。 |
adaf.zhilon**** |
ResourceType |
string |
是 |
资源类型。 说明
您可以通过 GetSupportedResourceTypes 接口获取配置审计支持的资源类型列表。更多信息,请参见 GetSupportedResourceTypes 。 |
ACS::CDN::Domain |
Region |
string |
否 |
地域 ID。 |
cn-hangzhou |
MultiAccount |
boolean |
否 |
该参数计划于 2021 年 06 月 30 日 00 时 00 分 00 秒前下线,其替代功能账号组的 API 将于 2021 年 05 月 30 日 00 时 00 分 00 秒前上线。如果您正在使用该参数,建议您在 2021 年 05 月 30 日 00 时 00 分 00 秒之后切换为账号组的 API。关于账号组,请参见账号组。 |
true |
MemberId |
integer |
否 |
该参数计划于 2021 年 06 月 30 日 00 时 00 分 00 秒前下线,其替代功能账号组的 API 将于 2021 年 05 月 30 日 00 时 00 分 00 秒前上线。如果您正在使用该参数,建议您在 2021 年 05 月 30 日 00 时 00 分 00 秒之后切换为账号组的 API。关于账号组,请参见账号组。 |
123456789 |
返回参数
名称 |
类型 |
描述 |
示例值 |
object |
无。 |
||
DiscoveredResourceDetail |
object |
资源详情。 |
|
AccountId |
integer |
阿里云账号 ID。 |
987654321 |
AvailabilityZone |
string |
资源可用区。 |
cn-hangzhou-h |
Configuration |
string |
资源的完整配置信息。 |
{\"Description\":\"\",\"SslProtocol\":\"off\",\"DomainName\":\"adaf.zhilong****\",\"GmtModified\":\"2019-04-10T03:11Z\",\"CdnType\":\"web\",\"GmtCreated\":\"2016-03-03T01:31:35Z\",\"Cname\":\"adaf.zhilong.me.w.kun****.com\",\"Sources\":{\"Source\":[{\"Type\":\"oss\",\"Content\":\"test2-mh.oss-cn-hangzhou.aliyuncs.com\",\"Priority\":\"20\",\"Port\":80,\"Weight\":\"10\"}]},\"DomainStatus\":\"offline\",\"Sandbox\":\"\"} |
Region |
string |
地域 ID。 |
cn-hangzhou |
ResourceCreationTime |
integer |
资源创建时间戳。 |
1456968695000 |
ResourceDeleted |
integer |
资源删除状态。取值:
|
1 |
ResourceId |
string |
资源 ID。 |
adaf.zhilon**** |
ResourceName |
string |
资源名称。 |
test-resource-name |
ResourceStatus |
string |
资源状态。资源的状态取决于各云服务对其的定义,该参数可能为空。例如:
|
offline |
ResourceType |
string |
资源类型。 |
ACS::CDN::Domain |
Tags |
string |
资源标签。 |
{\"\"hc\"\":[\"\"value2\"\"]} |
RequestId |
string |
请求 ID。 |
E4D71ACE-6B0A-46E0-8352-56952378CC7F |
示例
正常返回示例
JSON
格式
{
"DiscoveredResourceDetail": {
"AccountId": 987654321,
"AvailabilityZone": "cn-hangzhou-h",
"Configuration": "{\\\"Description\\\":\\\"\\\",\\\"SslProtocol\\\":\\\"off\\\",\\\"DomainName\\\":\\\"adaf.zhilong****\\\",\\\"GmtModified\\\":\\\"2019-04-10T03:11Z\\\",\\\"CdnType\\\":\\\"web\\\",\\\"GmtCreated\\\":\\\"2016-03-03T01:31:35Z\\\",\\\"Cname\\\":\\\"adaf.zhilong.me.w.kun****.com\\\",\\\"Sources\\\":{\\\"Source\\\":[{\\\"Type\\\":\\\"oss\\\",\\\"Content\\\":\\\"test2-mh.oss-cn-hangzhou.aliyuncs.com\\\",\\\"Priority\\\":\\\"20\\\",\\\"Port\\\":80,\\\"Weight\\\":\\\"10\\\"}]},\\\"DomainStatus\\\":\\\"offline\\\",\\\"Sandbox\\\":\\\"\\\"}",
"Region": "cn-hangzhou",
"ResourceCreationTime": 1456968695000,
"ResourceDeleted": 1,
"ResourceId": "adaf.zhilon****",
"ResourceName": "test-resource-name",
"ResourceStatus": "offline",
"ResourceType": "ACS::CDN::Domain",
"Tags": "{\\\"\\\"hc\\\"\\\":[\\\"\\\"value2\\\"\\\"]}"
},
"RequestId": "E4D71ACE-6B0A-46E0-8352-56952378CC7F"
}
错误码
HTTP status code |
错误码 |
错误信息 |
描述 |
---|---|---|---|
400 | NoPermission | You are not authorized to perform this operation. | 您无权执行此操作。 |
400 | MemberNotBelongToMaster | The specified member does not belong to your organization. | |
404 | AccountNotExisted | Your account does not exist. | |
503 | ServiceUnavailable | The request has failed due to a temporary failure of the server. | 服务不可用。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。