DescribeInstances
Retrieves a list of Anti-DDoS Proxy instances.
Operation description
Use this operation to retrieve paginated details for Anti-DDoS instances in your Alibaba Cloud account. The response includes the instance ID, version, expiration time, and service traffic forwarding status.
QPS limit
This operation is limited to 10 calls per second per user. Exceeding this limit triggers throttling, which can disrupt your services.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-ddoscoo:DescribeInstances |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ResourceGroupId |
string |
No |
The ID of the resource group to which the Anti-DDoS Proxy instance belongs in Resource Management. If you omit this parameter, the system uses the default resource group. |
rg-acfm2pz25js**** |
| PageNumber |
string |
Yes |
The number of the page to return. Pages start from 1. |
1 |
| PageSize |
string |
Yes |
The number of instances to return per page. Valid values: 1 to 50. |
10 |
| Ip |
string |
No |
The IP address of the Anti-DDoS Proxy instance. |
203.107.XX.XX |
| Remark |
string |
No |
The remark of the Anti-DDoS Proxy instance. Fuzzy matching is supported. |
doc-test |
| Edition |
integer |
No |
The edition of the Anti-DDoS Proxy instance. Valid values:
|
9 |
| Enabled |
integer |
No |
The service traffic forwarding status of the Anti-DDoS Proxy instance. Valid values:
|
1 |
| ExpireStartTime |
integer |
No |
The start of the expiration time range to query. The operation returns only instances that expire after this time. The value is a Unix timestamp in milliseconds. |
1640361500000 |
| ExpireEndTime |
integer |
No |
The end of the expiration time range to query. The operation returns only instances that expire on or before this time. The value is a Unix timestamp in milliseconds. |
1640361700000 |
| InstanceIds |
array |
No |
An array of Anti-DDoS Proxy instance IDs. You can specify up to 200 instance IDs. |
|
|
string |
No |
The ID of an Anti-DDoS Proxy instance. |
ddoscoo-cn-7pp2g9ed**** |
|
| Status |
array |
No |
An array of instance statuses for filtering. You can specify up to two statuses. |
|
|
integer |
No |
The status of the Anti-DDoS Proxy instance. Valid values:
|
1 |
|
| Tag |
array<object> |
No |
An array of tags for filtering instances. |
|
|
object |
No |
|||
| Key |
string |
No |
The tag key used for filtering. You can specify up to 200 tags.
Note
The Key and Value parameters for a tag must be specified as a pair. |
test-key |
| Value |
string |
No |
The tag value used for filtering. You can specify up to 200 tags.
Note
The Key and Value parameters for a tag must be specified as a pair. |
test-value |
When you call this API, you must include both the API-specific request parameters and the Alibaba Cloud common request parameters. For more information, see Common parameters.
For the request format, see the sample request in the Examples section.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| TotalCount |
integer |
The total number of instances found. |
1 |
| RequestId |
string |
The request ID. Alibaba Cloud generates this unique ID for the request. Use it to locate and troubleshoot issues. |
A0AF40CC-814A-5A86-AEAA-6F19E88B8A39 |
| Instances |
array<object> |
A list of instance details. |
|
|
object |
|||
| Status |
integer |
The status of the instance. Valid values:
|
1 |
| IpMode |
string |
The IP forwarding mode of the instance. Valid values:
|
fnat |
| DebtStatus |
integer |
The overdue payment status of the instance. The value is fixed at 0, which indicates no overdue payment. This is because both Anti-DDoS Pro (Chinese Mainland) and Anti-DDoS Proxy (Outside Chinese Mainland) are subscription-based. |
0 |
| Edition |
integer |
The edition of the instance. Valid values:
|
9 |
| IpVersion |
string |
The IP protocol version of the instance. Valid values:
|
Ipv4 |
| ExpireTime |
integer |
The expiration time of the instance, provided as a UNIX timestamp in milliseconds. |
1640361600000 |
| Remark |
string |
The remark for the instance. |
doc-test |
| CreateTime |
integer |
The creation time of the instance, provided as a UNIX timestamp in milliseconds. |
1637751953000 |
| Enabled |
integer |
The service traffic forwarding status of the instance. Valid values:
|
1 |
| InstanceId |
string |
The ID of the instance. |
ddoscoo-cn-7pp2g9ed**** |
| IsFirstOpenBw |
integer |
Specifies whether the 95th percentile burstable clean bandwidth billing method has been previously enabled. Valid values:
|
0 |
| IsFirstOpenQps |
integer |
Specifies whether the 95th percentile burstable QPS billing method has been previously enabled. Valid values:
|
0 |
| Ip |
string |
The IP address of the instance. |
203.199.XX.XX |
Examples
Success response
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
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.