Updated on 2023-06-28 GMT+08:00

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.

Table 1 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.

Table 2 Response parameters

Parameter

Type

Description

errorCode

String

Error code.

errorMessage

String

Error details.

Example response

None

Error Code

Table 3 Error codes

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.