Modifies the PolarFS S3 account policy.
Try it now
Test
RAM authorization
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. Note
You can call the DescribeRegions operation to query the regions of all clusters under the target account. |
cn-beijing |
| PfsInstanceId |
string |
Yes |
The PolarFS instance ID. |
pfs-xxx |
| UserAccAk |
string |
Yes |
The access key of the S3 account whose policy you want to modify. Note
You cannot modify the default account. |
accname |
| UserAccPolicy |
string |
Yes |
The user account policy. |
{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Action":["s3:GetObject","s3:PutObject"],"Resource":["arn:aws:s3:::my-bucket/*"]}]} |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
6BD9CDE4-5E7B-4BF3-9BB8-83C73E****** |
Examples
Success response
JSON format
{
"RequestId": "6BD9CDE4-5E7B-4BF3-9BB8-83C73E******"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.