All Products
Search
Document Center

Anti-DDoS:DescribeInstanceIpAddress

Last Updated:Nov 13, 2024

Queries the details of the assets within the current Alibaba Cloud account and the details of the Anti-DDoS Origin instance to which the assets belong. 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.

Operation description

If one or more assets of the current Alibaba Cloud account are added to an Anti-DDoS Origin instance, you can call the DescribeInstanceIpAddress operation to query the DDoS mitigation information and the details of the Anti-DDoS Origin instance. The information and the details include the basic protection threshold and traffic scrubbing threshold for the assets, DDoS mitigation status of the assets, ID of the instance, and the mitigation status of the instance.

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

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
yundun-ddos:DescribeInstanceIpAddressget
  • All Resources
    *
    none
none

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 that is assigned a public IP address. Valid values:

  • ecs: ECS instances.
  • slb: SLB instances.
  • eip: EIPs.
  • ipv6: IPv6 gateways.
  • swas: simple application servers.
  • waf: Web Application Firewall (WAF) instances of the Exclusive edition.
  • ga_basic: Global Accelerator (GA) instances.
ecs
InstanceNamestringNo

The name of the asset.

launch-advisor-2021****
DdosStatusstringNo

The DDoS mitigation status of the asset. Valid values:

  • defense: queries assets for which traffic scrubbing is performed.
  • blackhole: queries assets for which blackhole filtering is triggered.
normal
InstanceIdstringNo

The ID of the instance to which the asset is added.

i-bp1cb6x80tfgocid****
InstanceIpstringNo

The IP address of the asset.

192.0.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, which is used to locate and troubleshoot issues.

BC0907F8-A9F3-5E11-977B-D59CD98C64ED
InstanceListarray<object>

An array that consists of details of the instance.

Instanceobject
InstanceIdstring

The ID of the instance.

i-bp1cb6x80tfgocid****
InstanceTypestring

The type of the asset. Valid values:

  • ecs
  • slb
  • eip
ecs
InstanceNamestring

The name of the instance.

launch-advisor-2021****
InstanceStatusstring

The DDoS mitigation status of the instance. Valid values:

  • normal: not under DDoS attacks.
  • abnormal: under DDoS attacks.
normal
IpAddressConfigarray<object>

An array that consists of the details of the asset.

IpAddressConfigobject
InstanceIpstring

The IP address of the asset.

192.0.XX.XX
IsBgppackboolean

Indicates whether the asset is added to the instance. Valid values:

  • true
  • false
true
IpVersionstring

The IP version of the IP address. Valid values:

  • v4: IPv4.
  • v6: IPv6.
v4
IpStatusstring

The DDoS mitigation status of the asset. Valid values:

  • mitigating: indicates that traffic scrubbing is in progress.
  • blackholed: indicates that blackhole filtering is triggered for the asset.
  • normal: indicates that no DDoS attacks are launched against the asset.
normal
RegionIdstring

The region code of the asset.

cn-hangzhou-dg-a01
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 measured in Mbit/s. Unit: Mbit/s.

300
DefensePpsThresholdinteger

The traffic scrubbing threshold for the asset measured in packets per second (PPS). Unit: PPS.

70000
IsFullProtectioninteger

Indicates whether best-effort protection is enabled for the asset. Valid values:

  • 0: no.
  • 1: yes.
0

Examples

Sample success responses

JSONformat

{
  "Total": 1,
  "RequestId": "BC0907F8-A9F3-5E11-977B-D59CD98C64ED",
  "InstanceList": [
    {
      "InstanceId": "i-bp1cb6x80tfgocid****",
      "InstanceType": "ecs",
      "InstanceName": "launch-advisor-2021****",
      "InstanceStatus": "normal",
      "IpAddressConfig": [
        {
          "InstanceIp": "192.0.XX.XX",
          "IsBgppack": true,
          "IpVersion": "v4",
          "IpStatus": "normal",
          "RegionId": "cn-hangzhou-dg-a01",
          "ElasticThreshold": 12310,
          "BlackholeThreshold": 5200,
          "DefenseBpsThreshold": 300,
          "DefensePpsThreshold": 70000,
          "IsFullProtection": 0
        }
      ]
    }
  ]
}

Error codes

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

Change history

Change timeSummary of changesOperation
2023-07-05The response structure of the API has changedView Change Details