Queries the configuration of a resource.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

ParameterTypeRequiredExampleDescription
ActionStringYesDescribeDiscoveredResource

The operation that you want to perform. Set the value to DescribeDiscoveredResource.

ResourceIdStringYesadaf.zhilon****

The resource ID.

ResourceTypeStringYesACS::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.
RegionStringYescn-hangzhou

The region ID.

MultiAccountBooleanNotrue

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.

MemberIdLongNo100931896542****

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

ParameterTypeExampleDescription
RequestIdStringE4D71ACE-6B0A-46E0-8352-56952378CC7F

The request ID.

DiscoveredResourceDetailObject

The information about the resource.

AvailabilityZoneStringcn-hangzhou-h

The ID of the zone where the resource resides.

ResourceTypeStringACS::CDN::Domain

The resource type.

ConfigurationString{\"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.

RegionStringcn-hangzhou

The region ID.

ResourceCreationTimeLong1456968695000

The timestamp when the resource was created. Unit: milliseconds.

TagsString{\"\"hc\"\":[\"\"value2\"\"]}

The tags of the resource.

AccountIdLong120886317861****

The ID of the Alibaba Cloud account.

ResourceIdStringadaf.zhilon****

The resource ID.

ResourceDeletedInteger1

Indicates whether the resource was deleted. Valid values:

  • 1: The resource was not deleted.
  • 0: The resource was deleted.
ResourceNameStringtest-resource-name

The resource name.

ResourceStatusStringoffline

The status of the resource. The value of this parameter varies with the resource type and may be empty. Example:

  • If the value of the ResourceType parameter is ACS::ECS::Instance, the resource is an Elastic Compute Service (ECS) instance that is in a specific state. In this case, the valid values of this parameter are Running and Stopped.
  • If the value of the ResourceType parameter is ACS::OSS::Bucket, the resource is an Object Storage Service (OSS) bucket that is not in a specific state. In this case, this parameter is empty.
  • If the value of the ResourceType parameter is ACS::CDN::Domain, the valid values of this parameter are online and offline.

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 codeError codeError messageDescription
400NoPermissionYou are not authorized to perform this operation.You do not have the permissions to perform the specified operation.
400MemberNotBelongToMasterThe specified member does not belong to your organization.The specified member account does not belong to your resource directory.
404AccountNotExistedYour account does not exist.Your account does not exist.
503ServiceUnavailableThe 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.