Modifies the Intelligent Protection configuration of a non-website service.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ModifyPortAutoCcStatus |
The operation that you want to perform. Set the value to ModifyPortAutoCcStatus. |
InstanceId | String | Yes | ddoscoo-cn-mp91j1ao**** |
The ID of the instance. Note You can call the DescribeInstanceIds operation to query the IDs of all instances.
|
Mode | String | Yes | normal |
The mode of the Intelligent Protection policy. Valid values:
|
Switch | String | Yes | on |
The status of the Intelligent Protection policy. Valid values:
|
RegionId | String | No | cn-hangzhou |
The region ID of the instance. Valid values:
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 0bcf28g5-d57c-11e7-9bs0-d89d6717dxbc |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=ModifyPortAutoCcStatus
&InstanceId=ddoscoo-cn-mp91j1ao****
&Switch=on
&<Common request parameters>
Sample success responses
XML
format
<ModifyPortAutoCcStatusResponse>
<RequestId>0bcf28g5-d57c-11e7-9bs0-d89d6717dxbc</RequestId>
</ModifyPortAutoCcStatusResponse>
JSON
format
{
"RequestId": "0bcf28g5-d57c-11e7-9bs0-d89d6717dxbc"
}
Error codes
For a list of error codes, visit the API Error Center.