Deletes a custom security policy.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DeleteSecurityPolicy |
The operation that you want to perform. Set the value to DeleteSecurityPolicy. |
ClientToken | String | No | 593B0448-D13E-4C56-AC0D-FDF0FDE0E9A3 |
The client token that is used to ensure the idempotence of the request. You can use the client to generate the value, but you must ensure that it is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. Note If you do not set this parameter, the system automatically uses the request ID as
the client token. The ID of each request may be unique.
|
DryRun | Boolean | No | true |
Specifies whether to precheck the API request. Valid values:
|
SecurityPolicyId | String | Yes | spy-n0kn923**** |
The ID of the security policy. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 593B0448-D13E-4C56-AC0D-FDF0FDE0E9A3 |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=DeleteSecurityPolicy
&ClientToken=593B0448-D13E-4C56-AC0D-FDF0FDE0E9A3
&DryRun=true
&SecurityPolicyId=spy-n0kn923****
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<DeleteSecurityPolicyResponse>
<RequestId>593B0448-D13E-4C56-AC0D-FDF0FDE0E9A3</RequestId>
</DeleteSecurityPolicyResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "593B0448-D13E-4C56-AC0D-FDF0FDE0E9A3"
}
Error codes
HttpCode | Error code | Error message | Description |
---|---|---|---|
400 | IncorrectStatus.SecurityPolicy | The status of %s [%s] is incorrect. | The error message returned because the status of the specified resource %s [%s] is invalid. |
400 | ResourceInUse.SecurityPolicy | The specified resource %s is in use. | The error message returned because the specified resource %s is in use. |
404 | ResourceNotFound.SecurityPolicy | The specified resource %s is not found. | The error message returned because the specified resource %s does not exist. |
For a list of error codes, visit the API Error Center.