Deleting a Policy
Function
This API is used to delete a policy.
Calling Method
For details, see Calling APIs.
URI
DELETE /v2/{cloudProjectId}/rule-sets/{ruleSetId}/delete
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
cloudProjectId |
Yes |
String |
Definition: Project ID. For details, see Obtaining a Project ID. Constraints: N/A Value range: The value consists of 32 characters, including digits and letters. Default value: N/A |
ruleSetId |
Yes |
String |
Definition: Policy ID, which is the unique identifier of a policy. Obtain the policy ID by calling the API for querying policies. data.id indicates the policy ID. Constraints: N/A Value range: The value consists of 32 characters, including digits and letters. Default value: N/A |
Request Parameters
None
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
status |
Boolean |
Definition: Successful or not. Value range:
|
Example Requests
DELETE https://{endpoint}/v2/2d09f712e9504b61b034cc8f40e475a8/rule-sets/2f4a244eff3442f0befd6df80a1eabec/delete
Example Responses
None
Status Codes
Status Code |
Description |
---|---|
200 |
OK |
Error Codes
See Error Codes.
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