Deletes the access control policy of an instance.
Operation description
An instance policy cannot be recovered after it is deleted. Proceed with caution.
After an instance policy is deleted, the corresponding access control becomes invalid. Make sure that the instance is in a secure environment.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ots:DeleteInstancePolicy |
delete |
*Instance
|
None | None |
Request syntax
POST /v2/openapi/deleteinstancepolicy HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body parameters. |
|
| InstanceName |
string |
Yes |
The name of the instance. |
my-test-12345 |
| PolicyVersion |
integer |
Yes |
The version of the instance access control policy. |
2 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response struct. |
||
| RequestId |
string |
The ID of the request, which can be used to troubleshoot and locate issues. |
3104C83E-6E82-57FB-BB88-8C64CCFDEF89 |
| Code |
string |
The response 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.