mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
Updated Amazon S3 API (markdown)
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.
|
||||
|
||||
* 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 "Read" action allows reading and listing files within a bucket.// TODO limit Read operations to a specific bucket.
|
||||
|
||||
|
||||
* The "Write" action allows uploading files to all buckets.
|
||||
* 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": [
|
||||
{
|
||||
"accessKey": "some_access_key1",
|
||||
"secretKey": "some_secret_key2"
|
||||
"secretKey": "some_secret_key1"
|
||||
}
|
||||
],
|
||||
"actions": [
|
||||
|
@ -71,8 +71,8 @@ You can create as many users as needed. Each user can have multiple credentials.
|
|||
"name": "some_read_only_user",
|
||||
"credentials": [
|
||||
{
|
||||
"accessKey": "some_access_key1",
|
||||
"secretKey": "some_secret_key1"
|
||||
"accessKey": "some_access_key2",
|
||||
"secretKey": "some_secret_key2"
|
||||
}
|
||||
],
|
||||
"actions": [
|
||||
|
@ -83,14 +83,28 @@ You can create as many users as needed. Each user can have multiple credentials.
|
|||
"name": "some_normal_user",
|
||||
"credentials": [
|
||||
{
|
||||
"accessKey": "some_access_key2",
|
||||
"secretKey": "some_secret_key2"
|
||||
"accessKey": "some_access_key3",
|
||||
"secretKey": "some_secret_key3"
|
||||
}
|
||||
],
|
||||
"actions": [
|
||||
"Read",
|
||||
"Write"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "user_limited_by_bucket",
|
||||
"credentials": [
|
||||
{
|
||||
"accessKey": "some_access_key4",
|
||||
"secretKey": "some_secret_key4"
|
||||
}
|
||||
],
|
||||
"actions": [
|
||||
"Read:bucket1",
|
||||
"Read:bucket2",
|
||||
"Write:bucket1"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue