Checks the validity of an agent storage access control policy.
Try it now
Test
RAM authorization
Request syntax
POST /v2/openapi/checkagentstoragepolicy HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body parameters. |
|
| AgentStorageName |
string |
Yes |
The agent storage name. |
agent-test |
| Policy |
string |
Yes |
The agent storage access control policy in JSON format. |
{ "Version": "1", "Statement": [ { "Action": [ "ots:*" ], "Resource": [ "acs:ots:*:13791xxxxxxxxxxx:agentstorage/myagentstorage*" ], "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 for troubleshooting. |
E734979F-5A44-5993-9CE5-C23103576923 |
| Code |
string |
The response status code. |
OK |
| Message |
string |
The response message. |
Verification passed. |
Examples
Success response
JSON format
{
"RequestId": "E734979F-5A44-5993-9CE5-C23103576923",
"Code": "OK",
"Message": "Verification passed."
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.