All Products
Search
Document Center

:DeleteInstancePolicy

Last Updated:Nov 11, 2024

Deletes a Resource Access Management (RAM) policy of an instance.

Operation description

  • You cannot recover a deleted instance policy. Proceed with caution.
  • After you delete an instance policy, the access control that is specified by the instance policy becomes invalid. Make sure that your instance is in a secure environment.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request syntax

POST /v2/openapi/deleteinstancepolicy HTTP/1.1

Request parameters

ParameterTypeRequiredDescriptionExample
bodyobjectNo

The request body.

InstanceNamestringYes

The name of the instance.

my-test-12345
PolicyVersionlongYes

The version of the instance policy.

2

Response parameters

ParameterTypeDescriptionExample
object

The returned struct.

RequestIdstring

The request ID, which can be used to troubleshoot issues.

3104C83E-6E82-57FB-BB88-8C64CCFDEF89
Codestring

The HTTP status code.

200
Messagestring

The response message.

success

Examples

Sample success responses

JSONformat

{
  "RequestId": "3104C83E-6E82-57FB-BB88-8C64CCFDEF89",
  "Code": "200",
  "Message": "success"
}

Error codes

For a list of error codes, visit the Service error codes.