Deleting a Policy
Function
This API is used to delete a specified policy.
URI
DELETE /v1/{project_id}/pe/policy
Request
Request headers
Table 1 describes the request headers.
| Parameter | Description | Mandatory | Example |
|---|---|---|---|
| Deployment-Name | Application name. | Yes | - |
| Policy-Id | Policy ID. | Yes | - |
Request parameters
None
Example request
None
Response
Response parameters
If a policy is successfully deleted, only 204 is returned. If a policy fails to be deleted, the response body containing error information is returned.
Table 2 describes the response parameters.
| Parameter | Type | Description |
|---|---|---|
| errorCode | String | Error code. |
| errorMessage | String | Error details. |
Example response
None
Error Code
| Error Code | Message | Solution |
|---|---|---|
| SVCSTG.PE.4031012 | Failed to verify the project ID. | Check whether the parameter meets requirements. |
| SVCSTG.PE.5001205 | Failed to delete records. | Contact the administrator. |
Last Article: Creating a Policy
Next Article: Modifying a Policy
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.