Queries the status of a CNAME spare IP address.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ga:GetSpareIp |
get |
*Accelerator
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the Alibaba Cloud Global Accelerator (GA) instance. Set the value to cn-hangzhou. |
cn-hangzhou |
| ClientToken |
string |
No |
The client token that is used to ensure the idempotence of a request. Generate a unique value from your client to ensure that different requests have unique ClientToken values. ClientToken supports only ASCII characters. |
1F4B6A4A-C89E-489E-BAF1-52777EE148EF |
| DryRun |
boolean |
No |
Specifies whether to perform a dry run. Valid values:
|
true |
| AcceleratorId |
string |
Yes |
The instance ID of the Alibaba Cloud Global Accelerator (GA) instance. |
ga-bp1odcab8tmno0hdq**** |
| SpareIp |
string |
Yes |
The CNAME spare IP address. When an acceleration area is abnormal, traffic is switched to this IP address. |
47.100.XX.XX |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
6FEA0CF3-D3B9-43E5-A304-D217037876A8 |
| State |
string |
The status of the CNAME spare IP address. Valid values:
|
active |
Examples
Success response
JSON format
{
"RequestId": "6FEA0CF3-D3B9-43E5-A304-D217037876A8",
"State": "active"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | NoPermission | No permissions. | No permissions. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.