Queries the Intelligent Protection configurations of non-website services.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DescribePortAutoCcStatus |
The operation that you want to perform. Set the value to DescribePortAutoCcStatus. |
InstanceIds.N | RepeatList | Yes | ddoscoo-cn-mp91j1ao**** |
The ID of instance N. Note You can call the DescribeInstanceIds operation to query the IDs of all instances.
|
RegionId | String | No | cn-hangzhou |
The region ID of the instance. Valid values:
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
PortAutoCcStatus | Array |
The configuration of the Intelligent Protection policy. |
|
Mode | String | normal |
The mode of the Intelligent Protection policy. Valid values:
|
Switch | String | on |
The status of the Intelligent Protection policy. Valid values:
|
WebMode | String | normal |
The protection mode for ports 80 and 443. Valid values:
|
WebSwitch | String | off |
The status of the Intelligent Protection policy for ports 80 and 443. Valid values:
|
RequestId | String | BC3C6403-F248-4125-B2C9-8733ED94EA85 |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=DescribePortAutoCcStatus
&InstanceIds.1=ddoscoo-cn-mp91j1ao****
&<Common request parameters>
Sample success responses
XML
format
<DescribePortAutoCcStatusResponse>
<RequestId>BC3C6403-F248-4125-B2C9-8733ED94EA85</RequestId>
<PortAutoCcStatus>
<WebSwitch>off</WebSwitch>
<Switch>on</Switch>
<WebMode>normal</WebMode>
<Mode>normal</Mode>
</PortAutoCcStatus>
</DescribePortAutoCcStatusResponse>
JSON
format
{
"RequestId": "BC3C6403-F248-4125-B2C9-8733ED94EA85",
"PortAutoCcStatus": [
{
"WebSwitch": "off",
"Switch": "on",
"WebMode": "normal",
"Mode": "normal"
}
]
}
Error codes
For a list of error codes, visit the API Error Center.