全部產品
Search
文件中心

Anti-DDoS:ConfigNetStatus - 網段宣告配置

更新時間:Dec 18, 2025

進行網段宣告配置。

調試

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

調試

授權資訊

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

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

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

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

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

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

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

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

操作

存取層級

資源類型

條件關鍵字

關聯操作

ddosdiversion:ConfigNetStatus

none

*全部資源

*

請求參數

名稱

類型

必填

描述

樣本值

SaleId

string

代播執行個體的 ID。

ddos_diversion_public_cn-xxxxxxxxxxxxx

Net

string

代播執行個體的網段。

192.168.XX.XX/22

Status

string

狀態。取值:

  • enable:宣告。

  • disable:撤銷。

enable

Regions

array

網段需要宣告/撤銷的地區列表,當列表為空白時,表示操作所有網段配置的地區。

說明

您可以調用 QueryNetList 擷取網段配置的地區資訊。

string

網段需要宣告或者撤銷的地區。

oe26

SubNets

array

代播執行個體網段的子網段列表。

string

代播執行個體網段的子網段。

192.168.XX.XX/24

返回參數

名稱

類型

描述

樣本值

object

Code

integer

介面返回碼:

  • 200:表示成功。

  • 其它:表示錯誤碼。

200

RequestId

string

本次調用請求的 ID,是由阿里雲為該請求產生的唯一識別碼,可用於排查和定位問題。

B0949F09-B9C1-1D5E-8F27-0A5BF3CD5D95

Message

string

返回資訊。

successful

樣本

正常返回樣本

JSON格式

{
  "Code": 200,
  "RequestId": "B0949F09-B9C1-1D5E-8F27-0A5BF3CD5D95",
  "Message": "successful"
}

錯誤碼

HTTP status code

錯誤碼

錯誤資訊

描述

400 AuthenticationFailed User authentication failed. 使用者認證失敗。
400 AutoScheduleRuleExist The auto schedule rule already exists. 調度規則已存在。
400 AutoScheduleRuleNotExist The auto schedule rule dose not exist. 調度規則不存在。
400 BlackHoleConfigurationError A black hole configuration error occurred. 黑洞配置錯誤。
400 CleanConfigurationError A clean configuration error occurred. 清洗配置錯誤。
400 CoveredNet The CIDR block is overwritten. 網段被其他網段覆蓋。
400 DatabaseError A database error. 資料庫錯誤。
400 DeclaredNet The CIDR block has been advertised. 網段處於宣告狀態。
400 DefenseConfigurationError A defense configuration error occurred. 防護配置錯誤。
400 ForwardConfigurationNotExist The CIDR block forwarding configuration is not found. 網段轉寄配置不存在。
400 ForwardNotExist The CIDR block zone forwarding configuration is not found. 網段可用性區域轉寄配置不存在。
400 ForwardRuleNotExist The CIDR block forwarding rule is not found. 網段轉寄規則不存在。
400 HttpFailed HTTP request failed. HTTP 要求失敗。
400 IDNSubnetsCountLimit The maximum number of IDCs of the instance is exceeded. 執行個體的IDC數量達到上限
400 InstanceExist The instance already exists. 執行個體已經存在。
400 InstanceNetConfigurationExist The instance CIDR block configuration already exists. 執行個體網段配置已存在。
400 InstanceNotExist The instance is not found. 執行個體不存在。
400 InstanceUpstreamLimit The maximum number of reinjection configurations for the instance is exceeded. 執行個體的回注配置數量受限。
400 InternalError An internal error occurred. 內部錯誤。
400 InvalidNet Invalid CIDR block. 網段不合法。
400 InvalidParam Invalid parameter value. 參數非法。
400 IPSubnetsCountLimit The maximum number of CIDR blocks of the instance is exceeded. 執行個體的網段數量達到上限。
400 NetCannotExtend The CIDR block cannot be extended. 網段不能被擴容。
400 NetConfigurationExist The CIDR block configuration already exists. 網段配置已存在。
400 NetConfigurationNotExist The CIDR block configuration is not found. 網段配置不存在。
400 NetForwardDelete The CIDR block forwarding is being deleted. 網段轉寄刪除中。
400 NetMaskOutOfRange The subnet mask of the CIDR block is invalid. 網段掩碼超出範圍。
400 NetNeedExtend The CIDR block needs to be extended. 網段需要擴容。
400 NetStatusNotReady The CIDR block reinjection configuration has not been completed. 網段回注配置未完成
400 NetworkDeclearedFailed Failed to advertise the CIDR block. 網段宣告失敗。
400 NetWorkNotExist The CIDR block is not found. 網段不存在。
400 NetworkUndeclearedFailed Failed to cancel the advertisement of the CIDR block. 網段解除宣告失敗。
400 ParameterNotEnough Required parameters are not specified. 必填參數缺失。
400 ParameterOutOfRange Invalid parameter value. 參數超出指定取值範圍
400 RegionNotExist The region does not exist. 可用性區域不存在。
400 RequestMethodError An incorrect request method. 請求方式錯誤。
400 SubnetCountLimit The maximum number of subnets is exceeded. 子網數量達到上限。
400 UnKnownError An unknown error occurred. 未知錯誤。
400 UpsteamNotComplete The reinjection configuration has not been completed. 網段回注配置未完成。
400 UpstreamConfigurationNotExist The reinjection configuration is not found. 回注配置不存在。
400 JsonDecodeError JSON string decoding failed. JSON字串轉JSON對象失敗。

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

變更歷史

更多資訊,參考變更詳情