Call the DetachDdosFromAccelerator operation to detach an Anti-DDoS Pro or Anti-DDoS Premium instance from a Global Accelerator instance.
Operation description
- DetachDdosFromAccelerator is an asynchronous operation. After you send a request, the system returns a request ID and performs the operation in the background. The Anti-DDoS Pro or Anti-DDoS Premium instance is not immediately detached. You can call DescribeAccelerator or ListAccelerators to query the state of the Global Accelerator instance:
If the Global Accelerator instance is in the configuring state, the Anti-DDoS Pro or Anti-DDoS Premium instance is being detached. In this state, you can only perform query operations.
If the Global Accelerator instance is in the active state, the Anti-DDoS Pro or Anti-DDoS Premium instance is detached.
The DetachDdosFromAccelerator operation does not support concurrent requests to detach Anti-DDoS instances from the same Global Accelerator instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ga:DetachDdosFromAccelerator |
delete |
*Accelerator
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AcceleratorId |
string |
Yes |
The ID of the Global Accelerator instance. |
ga-bp1odcab8tmno0hdq**** |
| RegionId |
string |
No |
The ID of the region where the Global Accelerator instance is deployed. Set the value to cn-hangzhou. |
cn-hangzhou |
| DdosConfigList |
array<object> |
No |
A list of Anti-DDoS Pro or Anti-DDoS Premium instances that are associated with the Global Accelerator instance. |
|
|
object |
No |
A list of Anti-DDoS Pro or Anti-DDoS Premium instances that are associated with the Global Accelerator instance. |
||
| DdosId |
string |
No |
The ID of the Anti-DDoS Pro or Anti-DDoS Premium instance that is associated with the Global Accelerator instance. |
ddosDip-cn-pj64b8cz101 |
| DdosRegionId |
string |
No |
The region where the Anti-DDoS Pro or Anti-DDoS Premium instance is deployed. Valid values:
|
ap-southeast-1 |
| DryRun |
boolean |
No |
Specifies whether to perform a dry run. Valid values:
|
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
DdosId
deprecated
|
string |
The ID of the Anti-DDoS Pro or Anti-DDoS Premium instance that is detached from the Global Accelerator instance. |
ddoscoo-cn-zz11vq7j**** |
| RequestId |
string |
The request ID. |
0ED8D006-F706-4D23-88ED-E11ED28DCAC0 |
Examples
Success response
JSON format
{
"DdosId": "ddoscoo-cn-zz11vq7j****",
"RequestId": "0ED8D006-F706-4D23-88ED-E11ED28DCAC0"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | NotExist.Accelerator | accelerator %s is not exist | The GA instance %s does not exist. |
| 400 | StateError.Accelerator | accelerator state %s is illegal | The GA instance is in an invalid state %s. |
| 400 | Accelerator.NotBindingDdos | The accelerator has not bound a DDoS instance. | The accelerator has not bound a DDoS instance. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.