CheckInstancePolicy
Checks the validity of the instance access control policy.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ots:CheckInstancePolicy |
none |
*Instance
|
None | None |
Request syntax
POST /v2/openapi/checkinstancepolicy HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body parameters. |
|
| InstanceName |
string |
Yes |
The instance name. |
workshop-bj-ots1 |
| Policy |
string |
Yes |
The instance access control policy in JSON format. |
{ "Version": "1", "Statement": [ { "Action": [ "ots:*" ], "Resource": [ "acs:ots:*:13791xxxxxxxxxxx:instance/myinstance*" ], "Principal": [ "*" ], "Effect": "Allow", "Condition": { "StringEquals": { "ots:TLSVersion": [ "1.2" ] }, "IpAddress": { "acs:SourceIp": [ "192.168.0.1", "172.16.0.1" ] } } } ] } |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response struct. |
||
| RequestId |
string |
The request ID, which can be used to troubleshoot and locate issues. |
757E172A-F94B-5E78-8A23-D9068E42F2E9 |
| Code |
string |
The response status code. |
OK |
| Message |
string |
The response message description. |
Verification passed. |
Examples
Success response
JSON format
{
"RequestId": "757E172A-F94B-5E78-8A23-D9068E42F2E9",
"Code": "OK",
"Message": "Verification passed."
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.