All Products
Search
Document Center

Anti-DDoS:AttachSceneDefenseObject

Last Updated:Feb 25, 2026

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

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

PolicyId

string

Yes

The ID of the policy.

Note

You can call the DescribeSceneDefensePolicies operation to query the IDs of all policies.

321a-fd31-df51-****

ObjectType

string

Yes

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

Domain

Objects

string

Yes

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

www.aliyun.com

Response elements

Element

Type

Description

Example

object

Success

boolean

Indicates whether the request was successful. Valid values:

  • true: yes

  • false: no

true

RequestId

string

The ID of the request.

F65DF043-E0EB-4796-9467-23DDCDF92C1D

Examples

Success response

JSON format

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

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.