全部產品
Search
文件中心

CDN:DescribeCdnUserDomainsByFunc - 查詢網域名稱-按功能

更新時間:Dec 14, 2025

調用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:Function Compute為來源站點。

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.

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情