Returns a list of ACL entries of the bucket/object.
URI
GET /buckets/${BUCKET}/acl
GET /buckets/${BUCKET}/objects/${KEY}/acl
URI parameters
Name | Type | Default | Description |
---|---|---|---|
BUCKET | string | required | Name of the bucket |
KEY | string | required | Key of the object |
Response
List of ACL entries of the bucket/object
Example
curl -fsSL \
-XGET ${ENDPOINT}/buckets/example-bucket/objects/example/acl \
-H "Authorization: Bearer ${ACCESS_TOKEN}"
[{"id":"customer","data":{"access":"r-","exp":1508587911}},{"id":"anonymous","data":{"access":"r-"}}]
Creates or updates a list of ACL entries of the bucket/object.
URI
POST /buckets/${BUCKET}/acl
POST /buckets/${BUCKET}/objects/${KEY}/acl
URI parameters
Name | Type | Default | Description |
---|---|---|---|
BUCKET | string | required | Name of the bucket |
KEY | string | required | Key of the object |
Payload
ACL entries
Response
Modified list of ACL entries of the bucket/object
Example
curl -fsSL \
-XPOST ${ENDPOINT}/buckets/example-bucket/objects/example/acl \
-H "Authorization: Bearer ${ACCESS_TOKEN}" \
-H 'Content-Type: application/json' \
-d '[{"id":"anonymous","data":{"access":"r-"}}]'
[{"id":"customer","data":{"access":"r-","exp":1508587911}},{"id":"anonymous","data":{"access":"r-"}}]
Returns an ACL entry of the bucket/object.
URI
GET /buckets/${BUCKET}/acl/${ACL_GROUP}
GET /buckets/${BUCKET}/objects/${KEY}/acl/${ACL_GROUP}
URI parameters
Name | Type | Default | Description |
---|---|---|---|
BUCKET | string | required | Name of the bucket |
KEY | string | required | Key of the object |
ACL_GROUP | string | required | Name of the ACL group |
Response
ACL entry of the bucket/object
Example
curl -fsSL \
-XGET ${ENDPOINT}/buckets/example-bucket/objects/example/acl/anonymous \
-H "Authorization: Bearer ${ACCESS_TOKEN}"
{"id":"anonymous","data":{"access":"r-"}}
Updates an ACL entry of the bucket/object.
URI
PUT /buckets/${BUCKET}/acl/${ACL_GROUP}
PUT /buckets/${BUCKET}/objects/${KEY}/acl/${ACL_GROUP}
URI parameters
Name | Type | Default | Description |
---|---|---|---|
BUCKET | string | required | Name of the bucket |
KEY | string | required | Key of the object |
ACL_GROUP | string | required | Name of the ACL group |
Payload
data
property of the ACL entry
Response
Modified ACL entry of the bucket/object
Example
curl -fsSL \
-XPUT ${ENDPOINT}/buckets/example-bucket/objects/example/acl/anonymous \
-H "Authorization: Bearer ${ACCESS_TOKEN}" \
-H 'Content-Type: application/json' \
-d '{"access":"r-","exp":32503680000}'
{"id":"anonymous","data":{"access":"r-"}}
Removes an ACL entry of the bucket/object.
URI
DELETE /buckets/${BUCKET}/acl/${ACL_GROUP}
DELETE /buckets/${BUCKET}/objects/${KEY}/acl/${ACL_GROUP}
URI parameters
Name | Type | Default | Description |
---|---|---|---|
BUCKET | string | required | Name of the bucket |
KEY | string | required | Key of the object |
ACL_GROUP | string | required | Name of the ACL group |
Response
Removed ACL entry of the bucket/object
Example
curl -fsSL \
-XGET ${ENDPOINT}/buckets/example-bucket/objects/example/acl/anonymous \
-H "Authorization: Bearer ${ACCESS_TOKEN}"
{"id":"anonymous","data":{"access":"r-"}}