Queries the Intelligent Protection configurations of non-website services.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

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:

  • cn-hangzhou: mainland China, which indicates an Anti-DDoS Pro instance
  • ap-southeast-1: outside mainland China, which indicates an Anti-DDoS Premium instance

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:

  • normal
  • loose
  • strict
Switch String on

The status of the Intelligent Protection policy. Valid values:

  • on
  • off
WebMode String normal

The protection mode for ports 80 and 443. Valid values:

  • normal
  • loose
  • strict
WebSwitch String off

The status of the Intelligent Protection policy for ports 80 and 443. Valid values:

  • on
  • off
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.