You can call the DescribeDomainsBySource operation to query all domain names corresponding to one or more origins under your account. Fuzzy match is not supported.

You can specify multiple origins and separate them with commas (,).

Debugging

Alibaba Cloud provides OpenAPI Explorer to simplify API usage. You can use OpenAPI Explorer to search for APIs, call APIs, and dynamically generate SDK example code.

Request parameters

Parameter Type Required Description
Action String  Yes The operation that you want to perform. Set this parameter to DescribeDomainsBySource.
Sources String Yes The origin. You can specify multiple origins and separate them with commas (,).

Response parameters

Parameter Type Description
RequestId String The ID of the request.
Sources String The origins.
DomainsList DomainsData[] The details about the corresponding domain names returned for the specified origins.

Parameters in DomainsData

Parameter Type Description
Source String  The origin.
Domains domainNames[] The list of the corresponding domain names returned for the origin.
DomainInfos domainInfo[] The details about the domain names returned.

Parameters in domainInfo

Parameter Type Description
DomainName String The domain name.
Status  String The status of the domain.
CreateTime String The time when the domain was added.
UpdateTime String  The time when the domain information was last updated.
DomainCname String  The CNAME.

Examples

Sample request

https://cdn.aliyuncs.com?&Action=DescribeDomainsBySource&Sources=exampleaaa.source.com,exampleb.source.com&<Common request parameters>

Sample success response

JSON format

{
    "DomainsList": {
        "DomainsData": [
            {
                "Source": "exampleaaa.source.com",
                "Domains": {
                    "domainNames": [
                        "examplea1.com"
                    ]
                },
                "DomainInfos": {
                    "domainInfo": [
                        {
                            "DomainCname": "examplea1.w.kunlunar.com",
                            "Status": "online",
                            "CreateTime": "2016-07-12T11:53:19+08:00",
                            "UpdateTime": "2017-03-31T04:49:00+08:00",
                            "DomainName": "examplea1.com"
                        }
                    ]
                }
            },
            {
                "Source": "exampleb.source.com",
                "Domains": {
                    "domainNames": [
                        "exampleb1.com"
                    ]
                },
                "DomainInfos": {
                    "domainInfo": [
                        {
                            "DomainCname": "exampleb1.com.w.alikunlun.com",
                            "Status": "online",
                            "CreateTime": "2017-01-13T18:01:00+08:00",
                            "UpdateTime": "2017-01-17T21:16:16+08:00",
                            "DomainName": "exampleb1.com"
                        }
                    ]
                }
            }
        ]
    },
    "RequestId": "B0F074E5-A1AC-4B32-8EA2-6F450410D1E0",
    "Sources": "exampleaaa.source.com,exampleb.source.com"
}

Error codes

Error code Error message HTTP status code Description
MissingParameter The parameter Sources miss. 400 The error message returned because the Sources parameter is not specified.
InvalidSources.Malformed Specified Sources is malformed. 400 The error message returned because the specified Sources parameter is not supported.