Queries the configuration of a resource.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DescribeDiscoveredResource | The operation that you want to perform. Set the value to DescribeDiscoveredResource. |
ResourceId | String | Yes | adaf.zhilon**** | The resource ID. |
ResourceType | String | Yes | ACS::CDN::Domain | The resource type. Note You can call the GetSupportedResourceTypes operation to query the resource types supported by Cloud Config. For more information, see GetSupportedResourceTypes. |
Region | String | Yes | cn-hangzhou | The region ID. |
MultiAccount | Boolean | No | true | This parameter is unavailable since 00:00:00 on June 30, 2021. Account group-related operations are provided as an alternative after 00:00:00 on May 30, 2021. If you are using this parameter, we recommend that you switch to account group-related operations after 00:00:00 on May 30, 2021. For information about account groups, see Overview. |
MemberId | Long | No | 100931896542**** | This parameter is unavailable since 00:00:00 on June 30, 2021. Account group-related operations are provided as an alternative after 00:00:00 on May 30, 2021. If you are using this parameter, we recommend that you switch to account group-related operations after 00:00:00 on May 30, 2021. For information about account groups, see Overview. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | E4D71ACE-6B0A-46E0-8352-56952378CC7F | The request ID. |
DiscoveredResourceDetail | Object | The information about the resource. | |
AvailabilityZone | String | cn-hangzhou-h | The ID of the zone where the resource resides. |
ResourceType | String | ACS::CDN::Domain | The resource type. |
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\":\"\"} | The configuration of the resource. |
Region | String | cn-hangzhou | The region ID. |
ResourceCreationTime | Long | 1456968695000 | The timestamp when the resource was created. Unit: milliseconds. |
Tags | String | {\"\"hc\"\":[\"\"value2\"\"]} | The tags of the resource. |
AccountId | Long | 120886317861**** | The ID of the Alibaba Cloud account. |
ResourceId | String | adaf.zhilon**** | The resource ID. |
ResourceDeleted | Integer | 1 | Indicates whether the resource was deleted. Valid values:
|
ResourceName | String | test-resource-name | The resource name. |
ResourceStatus | String | offline | The status of the resource. The value of this parameter varies with the resource type and may be empty. Example:
|
Examples
Sample requests
http(s)://[Endpoint]/?Action=DescribeDiscoveredResource
&Region=cn-hangzhou
&ResourceId=adaf.zhilon****
&ResourceType=ACS::CDN::Domain
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<DescribeDiscoveredResourceResponse>
<RequestId>E4D71ACE-6B0A-46E0-8352-56952378CC7F</RequestId>
<DiscoveredResourceDetail>
<accountId>120886317861****</accountId>
<resourceId>adaf.zhilon****</resourceId>
<resourceStatus>offline</resourceStatus>
<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":""}</configuration>
<resourceDeleted>1</resourceDeleted>
<resourceName>test-resource-name</resourceName>
<region>cn-hangzhou</region>
<availabilityZone>cn-hangzhou-h</availabilityZone>
<resourceCreationTime>1456968695000</resourceCreationTime>
<tags>{""hc"":[""value2""]}</tags>
<resourceType>ACS::CDN::Domain</resourceType>
</DiscoveredResourceDetail>
</DescribeDiscoveredResourceResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "E4D71ACE-6B0A-46E0-8352-56952378CC7F",
"DiscoveredResourceDetail" : {
"accountId" : "120886317861****",
"resourceId" : "adaf.zhilon****",
"resourceStatus" : "offline",
"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\":\"\"}",
"resourceDeleted" : 1,
"resourceName" : "test-resource-name",
"region" : "cn-hangzhou",
"availabilityZone" : "cn-hangzhou-h",
"resourceCreationTime" : 1456968695000,
"tags" : "{\"\"hc\"\":[\"\"value2\"\"]}",
"resourceType" : "ACS::CDN::Domain"
}
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | NoPermission | You are not authorized to perform this operation. | You do not have the permissions to perform the specified operation. |
400 | MemberNotBelongToMaster | The specified member does not belong to your organization. | The specified member account does not belong to your resource directory. |
404 | AccountNotExisted | Your account does not exist. | Your account does not exist. |
503 | ServiceUnavailable | The request has failed due to a temporary failure of the server. | The service is unavailable. |
For a list of error codes, see Service error codes.