Skip to content

/object-storage/buckets/{clusterId}/{bucket}/access is now PUT #352

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 3, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 63 additions & 0 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11133,6 +11133,7 @@ paths:
For more fine-grained control of both systems, please use the S3 API directly.



This endpoint is available for convenience. It is recommended that instead you
use the more more [fully-featured S3 API](https://docs.ceph.com/docs/mimic/radosgw/s3/bucketops/#put-bucket-acl) directly.
tags:
Expand Down Expand Up @@ -11183,6 +11184,68 @@ paths:
"acl": "private"
}' \
https://api.linode.com/v4/object-storage/buckets/us-east-1/example-bucket/access
put:
operationId: modifyObjectStorageBucketAccess
x-linode-cli-skip: true
servers:
- url: https://api.linode.com/v4
summary: Object Storage Bucket Access Update
description: |
Allows changing basic Cross-origin Resource Sharing (CORS) and Access Control Level (ACL) settings.
Only allows enabling/disabling CORS for all origins, and/or setting canned ACLs.
For more fine-grained control of both systems, please use the S3 API directly.


This endpoint is available for convenience. It is recommended that instead you
use the more more [fully-featured S3 API](https://docs.ceph.com/docs/mimic/radosgw/s3/bucketops/#put-bucket-acl) directly.
tags:
- Object Storage
security:
- personalAccessToken: []
- oauth:
- object_storage:read_write
requestBody:
description: The changes to make to the bucket's access controls.
content:
application/json:
schema:
properties:
cors_enabled:
type: boolean
description: >
If true, the bucket will be created with CORS enabled for all
origins. For more fine-grained controls of CORS, use the S3
API directly.
example: true
acl:
type: string
enum:
- private
- public-read
- authenticated-read
description: >
The Access Control Level of the bucket, as a canned ACL string.
For more fine-grained control of ACLs, use the S3 API directly.
example: private
responses:
'200':
description: Access controls updated.
content:
application/json:
schema:
type: object
default:
$ref: '#/components/responses/ErrorResponse'
x-code-samples:
- lang: Shell
source: >
curl -H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-X PUT -d '{
"cors_enabled": true,
"acl": "private"
}' \
https://api.linode.com/v4/object-storage/buckets/us-east-1/example-bucket/access
/object-storage/buckets/{clusterId}/{bucket}/object-list:
parameters:
- name: clusterId
Expand Down