All Products
Search
Document Center

Anti-DDoS:AttachSceneDefenseObject

Last Updated:Apr 24, 2024

Adds an object to a scenario-specific custom policy for protection.

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.

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

The type of the object. Set the value to Domain, which indicates a domain name.

Domain
ObjectsstringYes

The object that you want to add to the policy. Separate multiple objects with commas (,).

www.aliyun.com

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.

Change history

Change timeSummary of changesOperation
No change history