Modifies the access control policy of agent storage.
Try it now
Test
RAM authorization
Request syntax
POST /v2/openapi/updateagentstoragepolicy HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body parameters. |
|
| AgentStorageName |
string |
Yes |
The name of the agent storage. |
agent-test |
| Policy |
string |
Yes |
The access control policy of the agent storage in JSON format. For more information, see https://www.alibabacloud.com/help/en/ram/user-guide/policy-structure-and-syntax. |
{ "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" ] } } } ] } |
| PolicyVersion |
integer |
Yes |
The version of the agent storage access control policy. |
2 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response struct. |
||
| requestId |
string |
The request ID, which can be used for troubleshooting. |
B37BBA04-D827-55C8-B901-5264B904E8C6 |
| Code |
string |
The response status code. |
200 |
| Message |
string |
The response message. |
success |
Examples
Success response
JSON format
{
"requestId": "B37BBA04-D827-55C8-B901-5264B904E8C6",
"Code": "200",
"Message": "success"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.