All Products
Search
Document Center

Anti-DDoS:DescribeInstances

Last Updated:Oct 23, 2024

Operation description

You can call the DescribeInstances operation to query the details of Anti-DDoS Pro or Anti-DDoS Premium instances within the Alibaba Cloud account by page. The details include the ID, mitigation plan, expiration time, and forwarding status.

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-ddoscoo:DescribeInstancesget
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
ResourceGroupIdstringNo

The ID of the resource group to which the instance belongs in Resource Management.

If you do not specify this parameter, the instance belongs to the default resource group.

rg-acfm2pz25js****
PageNumberstringYes

The number of the page to return.

1
PageSizestringYes

The number of entries to return on each page.

10
IpstringNo

The IP address of the instance to query.

203.107.XX.XX
RemarkstringNo

The remarks of the instance to query. Fuzzy match is supported.

doc-test
EditionintegerNo

The mitigation plan of the instance to query. Valid values:

  • 0: Anti-DDoS Proxy (Outside Chinese Mainland) instance of the Insurance mitigation plan
  • 1: Anti-DDoS Proxy (Outside Chinese Mainland) instance of the Unlimited mitigation plan
  • 2: Anti-DDoS Proxy (Outside Chinese Mainland) instance of the Chinese Mainland Acceleration (CMA) mitigation plan
  • 9: Anti-DDoS Proxy (Chinese Mainland) instance of the Profession mitigation plan
9
EnabledintegerNo

The traffic forwarding status of the instance to query. Valid values:

  • 0: The instance no longer forwards service traffic.
  • 1: The instance forwards service traffic as expected.
1
ExpireStartTimelongNo

The beginning of the time range to query. Instances whose expiration time is later than the point in time are queried. This value is a UNIX timestamp. Unit: milliseconds.

1640361500000
ExpireEndTimelongNo

The end of the time range to query. Instances whose expiration time is earlier than the point in time are queried. This value is a UNIX timestamp. Unit: milliseconds.

1640361700000
InstanceIdsarrayNo

The IDs of the instances to query. You can specify up to 200 instance IDs.

stringNo

The ID of the instance to query.

ddoscoo-cn-7pp2g9ed****
StatusarrayNo

The states of the instances to query. You can specify up to two states.

integerNo

The status of the instances to query. Valid values:

  • 1: normal
  • 2: expired
1
Tagarray<object>No

The tags that are added to the instances to query.

objectNo
KeystringNo

The key of the tag that is added to the instance to query. You can specify up to 200 tag keys. When you specify tags, take note of the following rules:

  • Each tag consists of a key (Key) and a value (Value), which are separated with a comma (,).
  • Separate multiple tags with commas (,).
Note The tag key (Key) and tag value (Value) must be specified in pairs.
test-key
ValuestringNo

The value of the tag that is added to the instance to query. You can specify up to 200 tag values. When you specify tags, take note of the following rules:

  • Each tag consists of a key (Key) and a value (Value), which are separated with a comma (,).
  • Separate multiple tags with commas (,).
Note The tag key (Key) and tag value (Value) must be specified in pairs.
test-value

Response parameters

ParameterTypeDescriptionExample
object
TotalCountlong

The total number of the instances.

1
RequestIdstring

The ID of the request, which is used to locate and troubleshoot issues.

A0AF40CC-814A-5A86-AEAA-6F19E88B8A39
Instancesarray<object>

The details about the instances.

Instanceobject
Statusinteger

The status of the instance. Valid values:

  • 1: normal
  • 2: expired
1
IpModestring

The IP address-based forwarding mode of the instance. Valid values:

  • fnat: Requests from IPv4 addresses are forwarded to origin servers that use IPv4 addresses and requests from IPv6 addresses are forwarded to origin servers that use IPv6 addresses.
  • v6tov4: All requests are forwarded to origin servers that use IPv4 addresses.
fnat
DebtStatusinteger

The overdue status of the instance. The value is fixed as 0, which indicates that your Alibaba Cloud account does not have overdue payments. The instance supports only the subscription billing method.

0
Editioninteger

The mitigation plan of the instance. Valid values:

  • 0: Anti-DDoS Proxy (Outside Chinese Mainland) instance of the Insurance mitigation plan
  • 1: Anti-DDoS Proxy (Outside Chinese Mainland) instance of the Unlimited mitigation plan
  • 2: Anti-DDoS Proxy (Outside Chinese Mainland) instance of the Chinese Mainland Acceleration (CMA) mitigation plan
  • 9: Anti-DDoS Proxy (Chinese Mainland) instance of the Profession mitigation plan
9
IpVersionstring

The IP version of the instance. Valid values:

  • Ipv4
  • Ipv6
Ipv4
ExpireTimelong

The time when the instance expires. The value is a UNIX timestamp. Unit: milliseconds.

1640361600000
Remarkstring

The remarks of the instance.

doc-test
CreateTimelong

The time when the instance was created. The value is a UNIX timestamp. Unit: milliseconds.

1637751953000
Enabledinteger

The traffic forwarding status of the instance. Valid values:

  • 0: The instance no longer forwards service traffic.
  • 1: The instance forwards service traffic as expected.
1
InstanceIdstring

The ID of the instance.

ddoscoo-cn-7pp2g9ed****
IsFirstOpenBwlong

Indicates whether the metering method of the 95th percentile burstable clean bandwidth is enabled for the instance. Valid values:

  • 0: no
  • 1: yes
0
IsFirstOpenQpslong

Indicates whether the metering method of the 95th percentile burstable QPS is enabled for the instance. Valid values:

  • 0: no
  • 1: yes
0
Ipstring

The IP address of the instance.

203.199.XX.XX

Examples

Sample success responses

JSONformat

{
  "TotalCount": 1,
  "RequestId": "A0AF40CC-814A-5A86-AEAA-6F19E88B8A39",
  "Instances": [
    {
      "Status": 1,
      "IpMode": "fnat",
      "DebtStatus": 0,
      "Edition": 9,
      "IpVersion": "Ipv4",
      "ExpireTime": 1640361600000,
      "Remark": "doc-test",
      "CreateTime": 1637751953000,
      "Enabled": 1,
      "InstanceId": "ddoscoo-cn-7pp2g9ed****",
      "IsFirstOpenBw": 0,
      "IsFirstOpenQps": 0,
      "Ip": "203.199.XX.XX"
    }
  ]
}

Error codes

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

Change history

Change timeSummary of changesOperation
2023-06-30The response structure of the API has changedView Change Details
2023-05-17The response structure of the API has changedView Change Details