Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
Help Center/ Anti-DDoS Service/ API Reference (Ankara Region)/ API/ Anti-DDoS APIs/ Querying the List of Defense Statuses of EIPs

Querying the List of Defense Statuses of EIPs

Updated on 2024-04-19 GMT+08:00

Functions

This API enables you to query the defense statuses of all EIPs, regardless whether an EIP has been bound to an Elastic Cloud Server (ECS) or not.

URI

  • URI format

    GET /v1/{project_id}/antiddos

    NOTE:

    You can use ? and & behind the URI to add query conditions, as shown in the request example.

  • Parameter description

    Parameter

    Mandatory

    Type

    Description

    project_id

    Yes

    String

    User ID

Request

Table 1 Parameter description

Parameter

Mandatory

Type

Description

status

No

String

Possible values:
  • normal: indicates that the defense status is normal.
  • configuring: indicates that defense is being configured.
  • notConfig: indicates that defense is not configured.
  • packetcleaning: indicates that traffic cleaning is underway.
  • packetdropping: indicates that traffic is discarded.

If this parameter is not used, the defense statuses of all ECSs are displayed in the Neutron-queried order by default.

limit

No

Integer

Maximum number of returned results. The value ranges from 1 to 100.

offset

No

Integer

Offset. The value ranges from 0 to 2147483647.

ip

No

String

IP address. Both IPv4 and IPv6 addresses are supported. For example, if you enter ?ip=192.168, the defense status of EIPs corresponding to 192.168.111.1 and 10.192.168.8 is returned.

Response

  • Parameter description

    Name

    Type

    Description

    total

    Integer

    Total number of EIPs

    ddosStatus

    List data structure

    List of defense statuses

  • Data structure description of ddosStatus

    Parameter

    Mandatory

    Type

    Description

    floating_ip_address

    Yes

    String

    Floating IP address

    floating_ip_id

    Yes

    String

    ID of an EIP

    network_type

    Yes

    String

    EIP type. The value can be:

    • EIP: EIP that is bound or not bound with ECS.
    • ELB: EIP that is bound with ELB.

    status

    Yes

    String

    Defense status, the possible value of which is one of the following:
    • normal: indicates that the defense status is normal.
    • configuring: indicates that defense is being configured.
    • notConfig: indicates that defense is not configured.
    • packetcleaning: indicates that traffic cleaning is underway.
    • packetdropping: indicates that traffic is discarded.

Example

  • Example request
    GET /v1/67641fe6886f43fcb78edbbf0ad0b99f/antiddos?status=packetdropping 
  • Example response
    {
       "total": 5,
       "ddosStatus": [
          {
             "floating_ip_id": "1867f954-fc11-4202-8247-6af2144867ea",
             "floating_ip_address": "192.168.42.221",
             "network_type": "EIP",
             "status": "notConfig"
          },
          {
             "floating_ip_id": "49c6af49-9ace-42e6-ab89-1eee1f4ac821",
             "floating_ip_address": "192.168.35.152",
             "network_type": "EIP",
             "status": "normal"
          },
          {
             "floating_ip_id": "7a8dc957-083b-499d-b7cf-6fa48f4880c5",
             "floating_ip_address": "192.168.42.222",
             "network_type": "EIP",
             "status": "notConfig"
          },
          {
             "floating_ip_id": "7c6676a0-b281-4163-9d0d-cb6485ae9860",
             "floating_ip_address": "192.168.44.69",
             "network_type": "EIP",
             "status": "normal"
          },
          {
             "floating_ip_id": "969c1d48-6a92-4ef1-b66c-b17c7e7d7ce7",
             "floating_ip_address": "192.168.47.192",
             "network_type": "EIP",
             "status": "notConfig"
          }
       ]
    }

Status Code

See Status Code.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback