文档

ConfigNetStatus - 网段宣告配置

更新时间:

进行网段宣告配置。

调试

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

授权信息

当前API暂无授权信息透出。

请求参数

名称类型必填描述示例值
SaleIdstring

代播实例的 ID。

ddos_diversion_public_cn-xxxxxxxxxxxxx
Netstring

代播实例的网段。

192.168.XX.XX/22
Statusstring

状态。取值:

  • enable:宣告。
  • disable:撤销。
enable
Regionsarray

网段需要宣告/撤销的区域列表,当列表为空时,表示操作所有网段配置的区域。

说明 您可以调用 QueryNetList 获取网段配置的区域信息。
string

网段需要宣告或者撤销的区域。

oe26
SubNetsarray

代播实例网段的子网段列表。

string

代播实例网段的子网段。

192.168.XX.XX/24

返回参数

名称类型描述示例值
object
Codelong

接口返回码:

  • 200:表示成功。
  • 其它:表示错误码。
200
RequestIdstring

本次调用请求的 ID,是由阿里云为该请求生成的唯一标识符,可用于排查和定位问题。

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

返回信息。

successful

示例

正常返回示例

JSON格式

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

错误码

HTTP status code错误码错误信息描述
400AuthenticationFailedUser authentication failed.用户认证失败。
400AutoScheduleRuleExistThe auto schedule rule already exists.调度规则已存在。
400AutoScheduleRuleNotExistThe auto schedule rule dose not exist.调度规则不存在。
400BlackHoleConfigurationErrorA black hole configuration error occurred.黑洞配置错误。
400CleanConfigurationErrorA clean configuration error occurred.清洗配置错误。
400CoveredNetThe CIDR block is overwritten.网段被其他网段覆盖。
400DatabaseErrorA database error.数据库错误。
400DeclaredNetThe CIDR block has been advertised.网段处于宣告状态。
400DefenseConfigurationErrorA defense configuration error occurred.防护配置错误。
400ForwardConfigurationNotExistThe CIDR block forwarding configuration is not found.网段转发配置不存在。
400ForwardNotExistThe CIDR block zone forwarding configuration is not found.网段可用区转发配置不存在。
400ForwardRuleNotExistThe CIDR block forwarding rule is not found.网段转发规则不存在。
400HttpFailedHTTP request failed.HTTP 请求失败。
400IDNSubnetsCountLimitThe maximum number of IDCs of the instance is exceeded.实例的IDC数量达到上限
400InstanceExistThe instance already exists.实例已经存在。
400InstanceNetConfigurationExistThe instance CIDR block configuration already exists.实例网段配置已存在。
400InstanceNotExistThe instance is not found.实例不存在。
400InstanceUpstreamLimitThe maximum number of reinjection configurations for the instance is exceeded.实例的回注配置数量受限。
400InternalErrorAn internal error occurred.内部错误。
400InvalidNetInvalid CIDR block.网段不合法。
400InvalidParamInvalid parameter value.参数非法。
400IPSubnetsCountLimitThe maximum number of CIDR blocks of the instance is exceeded.实例的网段数量达到上限。
400JsonDecodeErrorJson string decoding failed.JSON字符串转JSON对象失败。
400NetCannotExtendThe CIDR block cannot be extended.网段不能被扩容。
400NetConfigurationExistThe CIDR block configuration already exists.网段配置已存在。
400NetConfigurationNotExistThe CIDR block configuration is not found.网段配置不存在。
400NetForwardDeleteThe CIDR block forwarding is being deleted.网段转发删除中。
400NetMaskOutOfRangeThe subnet mask of the CIDR block is invalid.网段掩码超出范围。
400NetNeedExtendThe CIDR block needs to be extended.网段需要扩容。
400NetStatusNotReadyThe CIDR block reinjection configuration has not been completed.网段回注配置未完成
400NetworkDeclearedFailedFailed to advertise the CIDR block.网段宣告失败。
400NetWorkNotExistThe CIDR block is not found.网段不存在。
400NetworkUndeclearedFailedFailed to cancel the advertisement of the CIDR block.网段解除宣告失败。
400ParameterNotEnoughRequired parameters are not specified.必填参数缺失。
400ParameterOutOfRangeInvalid parameter value.参数超出指定取值范围
400RegionNotExistThe region does not exist.可用区不存在。
400RequestMethodErrorAn incorrect request method.请求方式错误。
400SubnetCountLimitThe maximum number of subnets is exceeded.子网数量达到上限。
400UnKnownErrorAn unknown error occurred.未知错误。
400UpsteamNotCompleteThe reinjection configuration has not been completed.网段回注配置未完成。
400UpstreamConfigurationNotExistThe reinjection configuration is not found.回注配置不存在。

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

  • 本页导读 (1)
文档反馈