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
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.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
yundun-ddoscoo:DescribeInstances | get |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ResourceGroupId | string | No | 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**** |
PageNumber | string | Yes | The number of the page to return. | 1 |
PageSize | string | Yes | The number of entries to return on each page. | 10 |
Ip | string | No | The IP address of the instance to query. | 203.107.XX.XX |
Remark | string | No | The remarks of the instance to query. Fuzzy match is supported. | doc-test |
Edition | integer | No | The mitigation plan of the instance to query. Valid values:
| 9 |
Enabled | integer | No | The traffic forwarding status of the instance to query. Valid values:
| 1 |
ExpireStartTime | long | No | 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 |
ExpireEndTime | long | No | 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 |
InstanceIds | array | No | The IDs of the instances to query. You can specify up to 200 instance IDs. | |
string | No | The ID of the instance to query. | ddoscoo-cn-7pp2g9ed**** | |
Status | array | No | The states of the instances to query. You can specify up to two states. | |
integer | No | The status of the instances to query. Valid values:
| 1 | |
Tag | array<object> | No | The tags that are added to the instances to query. | |
object | No | |||
Key | string | No | 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:
Note
The tag key (Key) and tag value (Value) must be specified in pairs.
| test-key |
Value | string | No | 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:
Note
The tag key (Key) and tag value (Value) must be specified in pairs.
| test-value |
Response parameters
Examples
Sample success responses
JSON
format
{
"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 time | Summary of changes | Operation |
---|---|---|
2023-06-30 | The response structure of the API has changed | View Change Details |
2023-05-17 | The response structure of the API has changed | View Change Details |