全部產品
Search
文件中心

:添加zone

更新時間:Feb 25, 2025

調用AddZone建立private zone。

調試

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

請求參數

名稱 類型 是否必選 樣本值 描述
Action String AddZone

系統規定參數。取值:AddZone

Lang String en

語言。

ZoneName String example.com

zone名稱。

ProxyPattern String ZONE
  • ZONE:當前Zone不進行遞迴解析
  • RECORD:不完全劫持,進行遞迴解析代理
ResourceGroupId String rg-resourcegroupid1

資源群組ID。

ZoneType String CLOUD_PRODUCT_ZONE

暫不對使用者開放,無需傳值。

ZoneTag String BLINK

暫不對使用者開放,無需傳值。

返回資料

名稱 類型 樣本值 描述
ZoneName String example.com

zone名稱。

ZoneId String AgIDE1MQ_151

zone ID。

RequestId String 46973D4C-E3E4-4ABA-9190-9A9DE406C7E

請求ID。

Success Boolean true

是否成功。

樣本

請求樣本

http(s)://pvtz.aliyuncs.com/?Action=AddZone
&Lang=en
&ZoneName=example.com
&ProxyPattern=ZONE
&ResourceGroupId= rg-resourcegroupid1
&ZoneType=CLOUD_PRODUCT_ZONE
&ZoneTag=BLINK
&公用請求參數

正常返回樣本

XML格式

HTTP/1.1 200 OK
Content-Type:application/xml

<AddZoneResponse>
    <ZoneName>example.com</ZoneName>
    <ZoneId>AgIDE1MQ_151</ZoneId>
    <RequestId>46973D4C-E3E4-4ABA-9190-9A9DE406C7E</RequestId>
    <Success>true</Success>
</AddZoneResponse>

JSON格式

HTTP/1.1 200 OK
Content-Type:application/json

{
  "ZoneName" : "example.com",
  "ZoneId" : "AgIDE1MQ_151",
  "RequestId" : "46973D4C-E3E4-4ABA-9190-9A9DE406C7E",
  "Success" : true
}

錯誤碼

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