全部產品
Search
文件中心

Edge Security Acceleration:UpdateDcdnDomain - 修改網域名稱基本資料

更新時間:Sep 16, 2025

調用UpdateDcdnDomain修改加速網域名稱。

介面說明

說明

單使用者調用頻率:30 次/秒。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

調試

授權資訊

下表是API對應的授權資訊,可以在RAM權限原則語句的Action元素中使用,用來給RAM使用者或RAM角色授予調用此API的許可權。具體說明如下:

  • 操作:是指具體的許可權點。

  • 存取層級:是指每個操作的存取層級,取值為寫入(Write)、讀取(Read)或列出(List)。

  • 資源類型:是指操作中支援授權的資源類型。具體說明如下:

    • 對於必選的資源類型,用前面加 * 表示。

    • 對於不支援資源級授權的操作,用全部資源表示。

  • 條件關鍵字:是指雲產品自身定義的條件關鍵字。

  • 關聯操作:是指成功執行操作所需要的其他許可權。操作者必須同時具備關聯操作的許可權,操作才能成功。

操作

存取層級

資源類型

條件關鍵字

關聯操作

dcdn:UpdateDcdnDomain

update

domain

acs:dcdn:*:{#accountId}:domain/{#domainName}

請求參數

名稱

類型

必填

描述

樣本值

DomainName

string

加速網域名稱,僅支援修改單個網域名稱。

example.com

Sources

string

回源地址清單。

[{"content":"10.10.10.10","type":"ipaddr","priority":"20","port":80}]

ResourceGroupId

string

資源群組 ID。

rg-xxxxx

TopLevelDomain

string

頂級接入域。

yourTopLevelDomain

Sources 各欄位含義如下所示。

參數類型是否必選描述
typeString來源站點類型,取值如下:
ipaddr:IP 來源站點。
domain:標題來源站。
oss:OSS Bucket 為來源站點。
fc_domain:Function Compute來源站點。
























contentString回源地址,可以是 IP 或網域名稱。
portInteger可以指定 44380 連接埠,也可以自訂連接埠,預設值 80443 是 HTTPS 協議回源。
priorityString來源站點地址對應的優先順序,支援 2030,預設 2020 是主,30 是備。
weightString回源權重,100 以內,預設 10

返回參數

名稱

類型

描述

樣本值

object

RequestId

string

請求 ID。

0AEDAF20-4DDF-4165-8750-47FF9C1929C9

樣本

正常返回樣本

JSON格式

{
  "RequestId": "0AEDAF20-4DDF-4165-8750-47FF9C1929C9"
}

錯誤碼

HTTP status code

錯誤碼

錯誤資訊

描述

400 MissingDomainName The domainName parameter is required. 請填寫網域名稱參數。
400 InvalidDomainName.Malformed The specified DomainName is invalid. 網域名稱格式錯誤。
400 InvalidSource.Content.Malformed The specified Source Content is invalid. 來源站點資訊錯誤,請重新填寫。
400 InvalidTypeContent.Mismatch The specified source type does not match the specified source content. 來源站點類型和來源站點不匹配,請重新填寫。
400 MissingSource.Content The Source Content must be specified. Source Content必填,請填寫後重試。
400 MissingSource.Type The Source Type must be specified. Source Type必填,請填寫後重試。
400 InvalidSource.Type.Malformed The specified Source Type is invalid. Source Type格式錯誤,請重新填寫。
400 InvalidSource.Priority.Malformed The specified Source Priority is invalid. Source Priority格式錯誤,請填寫正確的格式。
400 InvalidResourceGroupId.Malformed The specified ResourceGroupId is invalid. ResourceGroupId錯誤,請填寫正確的ResourceGroupId。
400 EntityNotExists.ResourceGroup The resource group does not exist. 該資源群組不存在。
400 EntityNotExist.ResourceGroup The resource group does not exist. 該資源群組不存在。
400 InvalidStatus.ResourceGroup The current status of the resource group does not support this operation. 資源群組目前狀態不允許進行此操作。
400 TopLevelDomain.NotFound The specified TopLevelDomain does not exist. 頂級接入域不存在。
400 TopLevelDomain.Mismatch The specified TopLevelDomain does not match webSiteType. 頂級接入域和網域名稱類型不符。
403 DomainInProtectedMode The domain is in protection mode. To request permission, contact Customer Service. 此網域名稱處於被保護模式。如果您想做這個操作,請聯絡我們。

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

變更歷史

更多資訊,參考變更詳情