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 technical support. |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot