Queries the status of pay-as-you-go protection.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Lang |
string |
No |
The language of the response message. Valid values:
|
zh |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The ID of the request. |
95CA5E2B-E5FB-5838-BC50-6A2C763C**** |
| IsEnabledProtection |
boolean |
Indicates whether the protection feature is enabled. |
false |
| IsOpenButDisabled |
boolean |
Indicates whether the protection feature is activated but currently disabled. |
false |
| DisabledDays |
integer |
The number of days that protection has been disabled. |
6 |
| DisabledType |
string |
The type of asset for which protection is disabled. |
nat |
Examples
Success response
JSON format
{
"RequestId": "95CA5E2B-E5FB-5838-BC50-6A2C763C****",
"IsEnabledProtection": false,
"IsOpenButDisabled": false,
"DisabledDays": 6,
"DisabledType": "nat"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IdempotentParameterMismatch | The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical. | This request uses the same client token as the previous request, but not the same. Do not reuse client tokens in different requests unless the request is the same. |
| 400 | ErrorInstanceNotPostpay | instance is not postpay | You can call this operation only if your Cloud Firewall uses the pay-as-you-go billing method. |
| 400 | ErrorInstanceNotInDB | no instance for process in db | The instance does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.