QueryNetList

Updated at:
Copy as MD

Queries the CIDR blocks of an anti-DDoS diversion instance.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

ddosdiversion:QueryNetList

get

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

SaleId

string

No

The ID of the anti-DDoS diversion instance.

ddos_diversion_public_cn-xxxxxxxxxxxxx

Net

string

No

The CIDR block of the anti-DDoS diversion instance.

Note

If no extended CIDR blocks are configured for the anti-DDoS diversion instance, this parameter specifies the CIDR block of the instance. If an extended CIDR block is configured for the anti-DDoS diversion instance, this parameter specifies the extended CIDR block that is configured for the instance. If this parameter is specified, the MainNet parameter is required.

192.168.XX.XX/24

Mode

string

No

The scheduling mode. Valid values:

  • manual: manual scheduling.

  • netflow-auto: automatic scheduling.

Valid values:

  • netflow-auto :

    netflow-auto

  • manual :

    manual

netflow-auto

MainNet

string

No

The primary CIDR block of the anti-DDoS diversion instance for which an extended CIDR block is configured. If no extended CIDR blocks are configured for the anti-DDoS diversion instance, leave this parameter empty.

192.168.XX.XX/22

Page

integer

No

The page number. Default value: 1.

1

Num

integer

No

The number of entries per page. Default value: 100.

100

Response elements

Element

Type

Description

Example

object

Code

integer

The status code.

  • 200: The request was successful.

  • Other codes: The request failed.

200

RequestId

string

The request ID.

24B652B5-AEFF-3F03-9114-00D053C42277

Message

string

The response parameters.

successful

Data

object

The CIDR blocks.

Total

integer

The total number of entries returned.

10

Page

integer

The page number.

1

Num

integer

The number of entries per page. Valid values: 1 to 100. Default value: 100.

100

Nets

array<object>

The CIDR blocks.

array<object>

UserId

string

The user ID.

57690941xxxxxxxx

SaleId

string

The ID of the anti-DDoS diversion instance.

ddos_diversion_public_cn-xxxxxxxxxxxxx

UpstreamType

string

The reinjection type. Valid values:

  • aliyun_line

  • pccw_line

  • gre_line

  • private_line

aliyun_line

Net

string

The CIDR block of the anti-DDoS diversion instance.

192.168.XX.XX/24

NetType

string

The type of the CIDR block.

ipv4

Mode

string

The scheduling mode. Valid values:

  • netflow-auto

  • manual

manual

DeclaredState

integer

The advertising status of the CIDR block. Valid values:

  • 0: The CIDR block is not advertised.

  • 1: The CIDR block is advertised.

0

Declared

array<object>

The advertising details.

object

Region

string

The region in which the CIDR block is advertised. Valid values:

  • oe26: China (Hong Kong).

  • us50: US (Virginia).

  • oe24: US (Silicon Valley).

  • oe28: Singapore.

  • jp141: Japan (Tokyo).

  • Gb145: UK (London).

  • oi39: Germany (Frankfurt).

oe26

Declared

string

Indicates whether the CIDR block is advertised. Valid values:

  • 0: The CIDR block is not advertised.

  • 1: The CIDR block is advertised.

0

GmtCreate

string

The creation time.

2024-09-05 13:52:50

GmtModify

string

The modification time.

2024-09-05 13:59:55

NetExtend

string

Indicates whether the CIDR block needs to be extended. Valid values:

  • 0: The CIDR block does not need to be extended.

  • 1: The CIDR block needs to be extended.

0

DDoSDefense

object

The DDoS mitigation configuration of the CIDR block.

DjPolicy

object

The configuration of the mitigation policy.

PolicyName

string

The name of the mitigation policy.

gf_origin_xxxxx

CleanTh

object

The configuration of traffic scrubbing.

Mbps

integer

The traffic scrubbing threshold in Mbit/s.

0

Pps

integer

The traffic scrubbing threshold in packets per second (pps).

0

HoleTh

object

The configuration of blackhole filtering.

ThreshMbps

integer

The blackhole filtering threshold in Mbit/s. The value 0 indicates best-effort protection.

0

FwdEffect

integer

Indicates whether the forwarding configuration takes effect. Valid values:

  • 0: The forwarding configuration does not take effect.

  • 1: The forwarding configuration takes effect.

1

NetMain

string

The primary CIDR block of the anti-DDoS diversion instance for which an extended CIDR block is configured. If no extended CIDR blocks are configured for the anti-DDoS diversion instance, this parameter is left empty.

192.168.XX.XX/22

Permit

integer

The review status. Valid values:

  • 0: not reviewed.

  • 1: reviewed.

  • 2: under review.

2

Examples

Success response

JSON format

{
  "Code": 200,
  "RequestId": "24B652B5-AEFF-3F03-9114-00D053C42277",
  "Message": "successful",
  "Data": {
    "Total": 10,
    "Page": 1,
    "Num": 100,
    "Nets": [
      {
        "UserId": "57690941xxxxxxxx",
        "SaleId": "ddos_diversion_public_cn-xxxxxxxxxxxxx",
        "UpstreamType": "aliyun_line",
        "Net": "192.168.XX.XX/24",
        "NetType": "ipv4",
        "Mode": "manual",
        "DeclaredState": 0,
        "Declared": [
          {
            "Region": "oe26",
            "Declared": "0"
          }
        ],
        "GmtCreate": "2024-09-05 13:52:50",
        "GmtModify": "2024-09-05 13:59:55",
        "NetExtend": "0",
        "DDoSDefense": {
          "DjPolicy": {
            "PolicyName": "gf_origin_xxxxx"
          },
          "CleanTh": {
            "Mbps": 0,
            "Pps": 0
          },
          "HoleTh": {
            "ThreshMbps": 0
          }
        },
        "FwdEffect": 1,
        "NetMain": "192.168.XX.XX/22",
        "Permit": 2
      }
    ]
  }
}

Error codes

HTTP status code

Error code

Error message

Description

400 AuthenticationFailed User authentication failed. User authentication failed.
400 AutoScheduleRuleExist The auto schedule rule already exists. The scheduling rule already exists.
400 AutoScheduleRuleNotExist The auto schedule rule dose not exist. The scheduling rule does not exist.
400 BlackHoleConfigurationError A black hole configuration error occurred. The blackhole filtering configuration is invalid.
400 CleanConfigurationError A clean configuration error occurred. The traffic scrubbing configuration is invalid.
400 CoveredNet The CIDR block is overwritten. The specified CIDR block overlaps with another CIDR block.
400 DatabaseError A database error. The database is invalid.
400 DeclaredNet The CIDR block has been advertised. The CIDR block is in the Advertising state.
400 DefenseConfigurationError A defense configuration error occurred. The mitigation settings are invalid.
400 ForwardConfigurationNotExist The CIDR block forwarding configuration is not found. The forwarding configuration of the CIDR block does not exist.
400 ForwardNotExist The CIDR block zone forwarding configuration is not found. The zone forwarding configuration of the CIDR block does not exist.
400 ForwardRuleNotExist The CIDR block forwarding rule is not found. The CIDR block forwarding rule does not exist.
400 HttpFailed HTTP request failed. The HTTP request failed.
400 IDNSubnetsCountLimit The maximum number of IDCs of the instance is exceeded. The number of data centers for the instance has reached the upper limit.
400 InstanceExist The instance already exists. The instance already exists.
400 InstanceNetConfigurationExist The instance CIDR block configuration already exists. The CIDR block configuration of the instance already exists.
400 InstanceNotExist The instance is not found. The instance does not exist.
400 InstanceUpstreamLimit The maximum number of reinjection configurations for the instance is exceeded. The number of reinjection configurations of the instance is limited.
400 InternalError An internal error occurred. An internal error occurred.
400 InvalidNet Invalid CIDR block. The CIDR block is invalid.
400 InvalidParam Invalid parameter value. The parameter is invalid.
400 IPSubnetsCountLimit The maximum number of CIDR blocks of the instance is exceeded. The number of CIDR blocks of the instance has reached the upper limit.
400 NetCannotExtend The CIDR block cannot be extended. The CIDR block cannot be expanded.
400 NetConfigurationExist The CIDR block configuration already exists. The CIDR block configuration already exists.
400 NetConfigurationNotExist The CIDR block configuration is not found. The CIDR block configuration does not exist.
400 NetForwardDelete The CIDR block forwarding is being deleted. The forwarding configuration of the CIDR block is being deleted.
400 NetMaskOutOfRange The subnet mask of the CIDR block is invalid. The subnet mask exceeds the upper limit.
400 NetNeedExtend The CIDR block needs to be extended. The CIDR block needs to be expanded.
400 NetStatusNotReady The CIDR block reinjection configuration has not been completed. Failed to complete the reinjection configuration of the CIDR block.
400 NetworkDeclearedFailed Failed to advertise the CIDR block. Failed to advertise the CIDR block.
400 NetWorkNotExist The CIDR block is not found. The CIDR block does not exist.
400 NetworkUndeclearedFailed Failed to cancel the advertisement of the CIDR block. Failed to withdraw the advertising of the CIDR block.
400 ParameterNotEnough Required parameters are not specified. A required parameter is not specified.
400 ParameterOutOfRange Invalid parameter value. The value of the parameter is invalid.
400 RegionNotExist The region does not exist. The zone does not exist.
400 RequestMethodError An incorrect request method. The request method is invalid.
400 SubnetCountLimit The maximum number of subnets is exceeded. The number of subnets has reached the upper limit.
400 UnKnownError An unknown error occurred. An unknown error occurred.
400 UpsteamNotComplete The reinjection configuration has not been completed. Failed to complete the reinjection configuration of the CIDR block.
400 UpstreamConfigurationNotExist The reinjection configuration is not found. The reinjection configuration does not exist.
400 JsonDecodeError JSON string decoding failed. Failed to convert JSON string to JSON object.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.