All Products
Search
Document Center

Anti-DDoS:EnableSceneDefensePolicy

Last Updated:Jul 11, 2024

Enables a scenario-specific custom policy.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
PolicyIdstringYes

The ID of the policy that you want to enable.

Note You can call the DescribeSceneDefensePolicies operation to query the IDs of all policies.
321a-fd31-df51-****

Response parameters

ParameterTypeDescriptionExample
object
Successboolean

Indicates whether the request was successful. Valid values:

  • true: yes
  • false: no
true
RequestIdstring

The ID of the request.

F65DF043-E0EB-4796-9467-23DDCDF92C1D

Examples

Sample success responses

JSONformat

{
  "Success": true,
  "RequestId": "F65DF043-E0EB-4796-9467-23DDCDF92C1D"
}

Error codes

For a list of error codes, visit the Service error codes.