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.
Try it now
Test
RAM authorization
Request syntax
POST /v2/openapi/deleteinstancepolicy HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| InstanceName |
string |
Yes |
The name of the instance. |
my-test-12345 |
| PolicyVersion |
integer |
Yes |
The version of the instance policy. |
2 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned struct. |
||
| RequestId |
string |
The request ID, which can be used to troubleshoot issues. |
3104C83E-6E82-57FB-BB88-8C64CCFDEF89 |
| Code |
string |
The HTTP status code. |
200 |
| Message |
string |
The response message. |
success |
Examples
Success response
JSON format
{
"RequestId": "3104C83E-6E82-57FB-BB88-8C64CCFDEF89",
"Code": "200",
"Message": "success"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.