全部产品
Search
文档中心

CDN:DescribeCdnUserDomainsByFunc - 查询域名-按功能

更新时间:Aug 28, 2026

调用DescribeCdnUserDomainsByFunc查询用户名下配置了指定功能的所有的域名及其状态。

接口说明

说明

单用户调用频率:100 次/秒。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:

  • 操作:是指具体的权限点。

  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。

  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:

    • 对于必选的资源类型,用前面加 * 表示。

    • 对于不支持资源级授权的操作,用全部资源表示。

  • 条件关键字:是指云产品自身定义的条件关键字。

  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。

操作

访问级别

资源类型

条件关键字

关联操作

cdn:DescribeCdnUserDomainsByFunc

get

*全部资源

*

请求参数

名称

类型

必填

描述

示例值

FuncId

integer

功能 ID,您可在域名配置功能参数文档,根据功能名称搜索查询。 例如:配置回源 HOST(set_req_host_header)功能 ID 为 18。

7

PageNumber

integer

页码,默认值:1

取值范围:1~100000

10

PageSize

integer

单页显示域名的数量,默认值:20

取值范围:1~50

20

ResourceGroupId

string

资源组 ID。

rg-xxxxx

返回参数

名称

类型

描述

示例值

object

RequestId

string

请求 ID。

AA75AADB-5E25-4970-B480-EAA1F5658483

PageNumber

integer

页码。

1

PageSize

integer

单页显示域名的数量。

5

TotalCount

integer

域名总个数。

16

Domains

object

PageData

array<object>

加速域名的配置数据列表。

array<object>

GmtCreated

string

加速域名创建时间。

2015-10-28T11:05:52Z

SslProtocol

string

https 开关。取值:

  • on:已开启。

  • off:未开启。

on

Description

string

状态描述。

audit failed

ResourceGroupId

string

资源组 ID。

rg-xxxxx

DomainStatus

string

加速域名状态。取值:

  • online:启用。

  • offline:停用。

  • configuring:配置中。

  • configure_failed:配置失败。

  • checking:正在审核。

  • check_failed:审核失败。

  • stopping:停用中。

  • deleting:删除中。

configure_failed

Cname

string

加速域名对应的 CNAME 域名。

example.com.w.alikunlun.com

GmtModified

string

加速域名修改时间。

2015-10-29T10:15:31Z

CdnType

string

加速业务类型。取值:

  • web:图片小文件加速。

  • download:大文件下载加速。

  • video:视音频点播加速。

  • liveStream:直播流媒体加速。

web

DomainName

string

加速域名名称。

example.com

Sources

object

Source

array<object>

源站信息列表。

object

Type

string

源站类型。取值:

  • ipaddr:IP 源站。

  • domain:域名源站。

  • oss:OSS Bucket 为源站。

  • fc_domain:函数计算为源站。

ipaddr

Weight

string

回源权重。

10

Priority

string

优先级。

20

Port

integer

源站端口。

80

Content

string

源站地址。

1.1.1.1

示例

正常返回示例

JSON格式

{
  "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"
            }
          ]
        }
      }
    ]
  }
}

错误码

HTTP status code

错误码

错误信息

描述

400 InvalidPageNumber.ValueNotSupported The specified value of PageNumber is not supported.
400 InvalidPageSize.ValueNotSupported The specified value of PageSize is invalid.
400 InvalidDomainStatus.ValueNotSupported The specified value of DomainStatus is invalid.
400 InvalidDomainName.Malformed The specified DomainName is invalid. 域名格式错误。
400 InvalidDomainSearchType.ValueNotSupported The specified value of DomainSearchType is invalid.
400 InvalidChangeStartTime.Malformed The specified ChangeStartTime is invalid.
400 InvalidChangeEndTime.Malformed The specified ChangeEndTime is invalid.
400 InvalidCdnType.Malformed The specified CdnType is invalid.

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情