Modifies the protection status of an on-demand instance.
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
InstanceId | string | Yes | The ID of the on-demand instance. NoteYou can call the DescribeOnDemandInstance operation to query the IDs of all on-demand instances. | ddosbgp-cn-z2q1qzxb**** |
DefenseStatus | string | Yes | The protection status of the on-demand instance. Valid values:
| Defense |
RegionId | string | No | The region ID of the on-demand instance. NoteYou can call the DescribeRegions operation to query the most recent region list. | cn-zhangjiakou |
All Alibaba Cloud API operations must include common request parameters. For more information about common request parameters, see Common parameters.
For more information about sample requests, see the "Examples" section of this topic.
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "4C467B38-3910-447D-87BC-AC049166F216"
}
Error codes
For a list of error codes, visit the Service error codes.