Deletes the protection target of a scenario-specific custom policy.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DetachSceneDefenseObject |
The operation that you want to perform. Set the value to DetachSceneDefenseObject. |
Objects | String | Yes | www.aliyun.com |
The protection target that you want to delete from a policy. Separate multiple protection targets with commas (,). |
PolicyId | String | Yes | 321a-fd31-df51-**** |
The ID of the policy. Note You can call the DescribeSceneDefensePolicies operation query the IDs of all policies.
|
ObjectType | String | No | Domain |
The type of the protection target. Set the value to Domain, which indicates a domain name. |
RegionId | String | No | cn-hangzhou |
The region ID of the instance. Valid values:
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | F65DF043-E0EB-4796-9467-23DDCDF92C1D |
The ID of the request. |
Success | Boolean | true |
Indicates whether the request is successful. Value
|
Examples
Sample requests
http(s)://[Endpoint]/?Action=DetachSceneDefenseObject
&Objects=www.aliyun.com
&PolicyId=321a-fd31-df51-****
&<Common request parameters>
Sample success responses
XML
format
<DetachSceneDefenseObjectResponse>
<RequestId>F65DF043-E0EB-4796-9467-23DDCDF92C1D</RequestId>
<Success>true</Success>
</DetachSceneDefenseObjectResponse>
JSON
format
{
"RequestId": "F65DF043-E0EB-4796-9467-23DDCDF92C1D",
"Success":true
}
Error codes
For a list of error codes, visit the API Error Center.