Modifies the protection status of an on-demand instance.
Note Anti-DDoS Origin API operations are available only for Anti-DDoS Origin Enterprise
users.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ModifyOnDemaondDefenseStatus |
The operation that you want to perform. Set the value to ModifyOnDemaondDefenseStatus. |
DdosRegionId | String | Yes | cn-hangzhou |
The region ID of the on-demand instance. Note You can call the DescribeRegions operation to query the most recent region list.
|
DefenseStatus | String | Yes | Defense |
The protection status of the on-demand instance. Valid values:
|
InstanceId | String | Yes | ddosbgp-xxx |
The ID of an on-demand instance. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 4C467B38-3910-447D-87BC-AC049166F216 |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/? Action=ModifyOnDemaondDefenseStatus
&DdosRegionId=cn-hangzhou
&DefenseStatus=Defense
&InstanceId=ddosbgp-xxx
&<Common request parameters>
Sample success responses
XML
format
<ModifyOnDemaondDefenseStatusResponse>
<RequestId>4C467B38-3910-447D-87BC-AC049166F216</RequestId>
</ModifyOnDemaondDefenseStatusResponse>
JSON
format
{
"RequestId":"4C467B38-3910-447D-87BC-AC049166F216"
}
Error codes
For a list of error codes, visit the API Error Center.