All Products
Search
Document Center

Anti-DDoS:DescribeInstance

Last Updated:Mar 01, 2024

Queries the details of the assets within the current Alibaba Cloud account. The assets can be elastic IP addresses (EIPs). The assets can also be Elastic Compute Service (ECS) instances or Server Load Balancer (SLB) instances that are assigned public IP addresses. This operation is phased out. We recommend that you use the DescribeInstanceIpAddress operation.

Operation description

You can call the DescribeInstance operation to query the details of the assets that are within the current Alibaba Cloud account by page. The details include the IDs and IP addresses of the assets, the basic protection thresholds and traffic scrubbing thresholds that are configured for the assets in Anti-DDoS Origin Basic, and whether the assets are associated with Anti-DDoS Origin Basic instances.

Limits

You can call this operation up to 200 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
DdosRegionIdstringYes

The region ID of the asset.

Note You can call the DescribeRegions operation to query the most recent region list.
cn-hangzhou
InstanceTypestringYes

The type of the asset. Valid values:

  • ecs: ECS instance
  • slb: SLB instance
  • eip: EIP
ecs
InstanceNamestringNo

The name of the asset.

launch-advisor-2022****
DdosStatusstringNo

The DDoS mitigation status of the asset. Valid values:

  • mitigating: queries assets for which traffic scrubbing is triggered.
  • blackholed: queries assets for which blackhole filtering is triggered.
  • normal: queries assets that are not under DDoS attacks.
blackholed
InstanceIdstringNo

The ID of the asset. The formats of asset IDs vary based on the value of the InstanceType. parameter.

  • If you set InstanceType to ecs, specify the ID of the ECS instance. For example, you can specify i-bp1cb6x80tfgocid****.
  • If you set InstanceType to slb, specify the ID of the SLB instance. For example, you can specify alb-vn2dqg3v31y2vd****.
  • If you set InstanceType to eip, specify the ID of the EIP. For example, you can specify eip-j6ce6dcx9epi7rs46****.
i-bp1cb6x80tfgocid****
InstanceIpstringNo

The IP address of the asset.

121.199.XX.XX
CurrentPageintegerNo

The number of the page to return. Default value: 1.

1
PageSizeintegerNo

The number of entries to return on each page. Default value: 10.

10

Response parameters

ParameterTypeDescriptionExample
object
Totalinteger

The total number of the assets.

1
RequestIdstring

The ID of the request.

C728D7E9-9A39-52E0-966B-5C33118BDBB0
InstanceListobject []

An array that consists of the details of the asset.

InstanceIpstring

The IP address of the asset.

121.199.XX.XX
IsBgppackboolean

Indicates whether the asset is associated with an Anti-DDoS Origin Basic instance. Valid values:

  • true: yes
  • false: no
false
IpVersionstring

The IP protocol that is supported by the asset. Valid values:

  • v4: IPv4
  • v6: IPv6
v4
ElasticThresholdinteger

The burstable protection threshold for the asset. Unit: Mbit/s.

12310
BlackholeThresholdinteger

The basic protection threshold for the asset. Unit: Mbit/s.

5200
DefenseBpsThresholdinteger

The traffic scrubbing threshold for the asset. Unit: Mbit/s.

300
InstanceNamestring

The name of the asset.

launch-advisor-2021****
InstanceStatusstring

The DDoS mitigation status of the asset. Valid values:

  • mitigating: indicates that traffic scrubbing is triggered for the asset.
  • blackholed: indicates that blackhole filtering is triggered for the asset.
  • normal: indicates that the instance is normal.
normal
DefensePpsThresholdinteger

The packet scrubbing threshold for the asset. Unit: packets per second (pps).

70000
InstanceIdstring

The ID of the asset.

i-bp1cb6x80tfgocid****
InstanceTypestring

The type of the asset. Valid values:

  • ecs: ECS instance
  • slb: SLB instance
  • eip: EIP
ecs

Examples

Sample success responses

JSONformat

{
  "Total": 1,
  "RequestId": "C728D7E9-9A39-52E0-966B-5C33118BDBB0",
  "InstanceList": {
    "Instance": [
      {
        "InstanceIp": "121.199.XX.XX",
        "IsBgppack": false,
        "IpVersion": "v4",
        "ElasticThreshold": 12310,
        "BlackholeThreshold": 5200,
        "DefenseBpsThreshold": 300,
        "InstanceName": "launch-advisor-2021****",
        "InstanceStatus": "normal",
        "DefensePpsThreshold": 70000,
        "InstanceId": "i-bp1cb6x80tfgocid****",
        "InstanceType": "ecs"
      }
    ]
  }
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history