All Products
Search
Document Center

CDN:DescribeCdnUserDomainsByFunc

Last Updated:Jul 04, 2024

Queries accelerated domain names that have specified features configured and the status of the domain names.

Operation description

Note The maximum number of times that each user can call this operation per second is 100.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
FuncIdintegerYes

The ID of the feature.

For example, the ID of the origin host feature (set_req_host_header) is 18.

7
PageNumberintegerNo

The number of the page to return. Default value: 1.

Valid values: 1 to 100000.

10
PageSizeintegerNo

The number of domain names to return on each page. Default value: 20.

Valid values: 1 to 50.

20
ResourceGroupIdstringNo

The ID of the resource group.

rg-xxxxx

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request.

AA75AADB-5E25-4970-B480-EAA1F5658483
PageNumberlong

The page number of the returned page.

1
PageSizelong

The number of entries returned per page.

5
TotalCountlong

The total number of entries returned.

16
Domainsarray<object>

The configurations of the accelerated domain name.

object
GmtCreatedstring

The time when the accelerated domain name was added to Alibaba Cloud CDN.

2015-10-28T11:05:52Z
SslProtocolstring

Indicates whether HTTPS is enabled. Valid values:

  • on
  • off
on
Descriptionstring

The description of the status.

audit failed
ResourceGroupIdstring

The ID of the resource group.

rg-xxxxx
DomainStatusstring

The status of the accelerated domain name. Valid values:

  • online: The domain name is enabled.
  • offline: The domain is disabled.
  • configuring: The endpoint group is being configured.
  • configure_failed: The domain failed to be configured.
  • checking: The domain name is under review.
  • check_failed: The domain name failed the review.
  • stopping: The domain name is be disabled.
  • deleting: being deleted
configure_failed
Cnamestring

The CNAME assigned to the accelerated domain name.

example.com.w.alikunlun.com
GmtModifiedstring

The last time when the accelerated domain was modified.

2015-10-29T10:15:31Z
CdnTypestring

The type of workload accelerated by Alibaba Cloud CDN. Valid values:

  • web: image and small file distribution
  • download: large file distribution
  • video: on-demand video and audio streaming
  • liveStream: live streaming
web
DomainNamestring

The accelerated domain name.

example.com
Sourcesarray<object>

The information about the origin server.

object
Typestring

The type of the origin server.

ipaddr
Weightstring

The weight of the origin server if multiple origin servers have been specified.

10
Prioritystring

The priority of the configuration item.

20
Portinteger

The port of the origin server.

80
Contentstring

The address of the origin server.

1.1.1.1

Examples

Sample success responses

JSONformat

{
  "RequestId": "AA75AADB-5E25-4970-B480-EAA1F5658483",
  "PageNumber": 1,
  "PageSize": 5,
  "TotalCount": 16,
  "Domains": {
    "PageData": [
      {
        "GmtCreated": "2015-10-28T11:05:52Z",
        "SslProtocol": "on",
        "Description": "audit failed",
        "ResourceGroupId": "rg-xxxxx",
        "DomainStatus": "configure_failed",
        "Cname": "example.com.w.alikunlun.com",
        "GmtModified": "2015-10-29T10:15:31Z",
        "CdnType": "web",
        "DomainName": "example.com",
        "Sources": {
          "Source": [
            {
              "Type": "ipaddr",
              "Weight": "10",
              "Priority": "20",
              "Port": 80,
              "Content": "1.1.1.1"
            }
          ]
        }
      }
    ]
  }
}

Error codes

HTTP status codeError codeError messageDescription
400InvalidPageNumber.ValueNotSupportedThe specified value of PageNumber is not supported.-
400InvalidPageSize.ValueNotSupportedThe specified value of PageSize is invalid.-
400InvalidDomainStatus.ValueNotSupportedThe specified value of DomainStatus is invalid.-
400InvalidDomainName.MalformedThe specified DomainName is invalid.The specified domain name is invalid.
400InvalidDomainSearchType.ValueNotSupportedThe specified value of DomainSearchType is invalid.-
400InvalidChangeStartTime.MalformedThe specified ChangeStartTime is invalid.-
400InvalidChangeEndTime.MalformedThe specified ChangeEndTime is invalid.-
400InvalidCdnType.MalformedThe specified CdnType is invalid.-

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history