Updated Amazon S3 API (markdown)

Chris Lu 2020-02-22 21:46:01 -08:00
parent c7b2cb630f
commit 7ce6a6e927

@ -45,10 +45,10 @@ You just need to create a user with all "Admin", "Read", "Write" actions.
You can create as many users as needed. Each user can have multiple credentials. You can create as many users as needed. Each user can have multiple credentials.
* The "Admin" action is needed to list, create, and delete buckets. * The "Admin" action is needed to list, create, and delete buckets.
* The "Write" action allows uploading files within a bucket. // TODO limit Write operations to a specific bucket. * The "Write" action allows uploading files to all buckets.
* The "Read" action allows reading and listing files within a bucket.// TODO limit Read operations to a specific bucket. * The "Read" action allows reading and listing files from all buckets.
* The "Write:<bucket_name>" action allows uploading files within a bucket, e.g., "Write:bucket1".
* The "Read:<bucket_name>" action allows reading and listing files within a bucket, e.g., "Read:bucket2".
``` ```
{ {
@ -58,7 +58,7 @@ You can create as many users as needed. Each user can have multiple credentials.
"credentials": [ "credentials": [
{ {
"accessKey": "some_access_key1", "accessKey": "some_access_key1",
"secretKey": "some_secret_key2" "secretKey": "some_secret_key1"
} }
], ],
"actions": [ "actions": [
@ -71,8 +71,8 @@ You can create as many users as needed. Each user can have multiple credentials.
"name": "some_read_only_user", "name": "some_read_only_user",
"credentials": [ "credentials": [
{ {
"accessKey": "some_access_key1", "accessKey": "some_access_key2",
"secretKey": "some_secret_key1" "secretKey": "some_secret_key2"
} }
], ],
"actions": [ "actions": [
@ -83,14 +83,28 @@ You can create as many users as needed. Each user can have multiple credentials.
"name": "some_normal_user", "name": "some_normal_user",
"credentials": [ "credentials": [
{ {
"accessKey": "some_access_key2", "accessKey": "some_access_key3",
"secretKey": "some_secret_key2" "secretKey": "some_secret_key3"
} }
], ],
"actions": [ "actions": [
"Read", "Read",
"Write" "Write"
] ]
},
{
"name": "user_limited_by_bucket",
"credentials": [
{
"accessKey": "some_access_key4",
"secretKey": "some_secret_key4"
}
],
"actions": [
"Read:bucket1",
"Read:bucket2",
"Write:bucket1"
]
} }
] ]
} }