Skip to content

Commit ddbb1a9

Browse files
Merge pull request #352 from leslitagordita/obj-access-put
/object-storage/buckets/{clusterId}/{bucket}/access is now PUT
2 parents b746990 + 351d4d0 commit ddbb1a9

File tree

1 file changed

+63
-0
lines changed

1 file changed

+63
-0
lines changed

openapi.yaml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11133,6 +11133,7 @@ paths:
1113311133
For more fine-grained control of both systems, please use the S3 API directly.
1113411134

1113511135

11136+
1113611137
This endpoint is available for convenience. It is recommended that instead you
1113711138
use the more more [fully-featured S3 API](https://docs.ceph.com/docs/mimic/radosgw/s3/bucketops/#put-bucket-acl) directly.
1113811139
tags:
@@ -11183,6 +11184,68 @@ paths:
1118311184
"acl": "private"
1118411185
}' \
1118511186
https://api.linode.com/v4/object-storage/buckets/us-east-1/example-bucket/access
11187+
put:
11188+
operationId: modifyObjectStorageBucketAccess
11189+
x-linode-cli-skip: true
11190+
servers:
11191+
- url: https://api.linode.com/v4
11192+
summary: Object Storage Bucket Access Update
11193+
description: |
11194+
Allows changing basic Cross-origin Resource Sharing (CORS) and Access Control Level (ACL) settings.
11195+
Only allows enabling/disabling CORS for all origins, and/or setting canned ACLs.
11196+
For more fine-grained control of both systems, please use the S3 API directly.
11197+
11198+
11199+
This endpoint is available for convenience. It is recommended that instead you
11200+
use the more more [fully-featured S3 API](https://docs.ceph.com/docs/mimic/radosgw/s3/bucketops/#put-bucket-acl) directly.
11201+
tags:
11202+
- Object Storage
11203+
security:
11204+
- personalAccessToken: []
11205+
- oauth:
11206+
- object_storage:read_write
11207+
requestBody:
11208+
description: The changes to make to the bucket's access controls.
11209+
content:
11210+
application/json:
11211+
schema:
11212+
properties:
11213+
cors_enabled:
11214+
type: boolean
11215+
description: >
11216+
If true, the bucket will be created with CORS enabled for all
11217+
origins. For more fine-grained controls of CORS, use the S3
11218+
API directly.
11219+
example: true
11220+
acl:
11221+
type: string
11222+
enum:
11223+
- private
11224+
- public-read
11225+
- authenticated-read
11226+
description: >
11227+
The Access Control Level of the bucket, as a canned ACL string.
11228+
For more fine-grained control of ACLs, use the S3 API directly.
11229+
example: private
11230+
responses:
11231+
'200':
11232+
description: Access controls updated.
11233+
content:
11234+
application/json:
11235+
schema:
11236+
type: object
11237+
default:
11238+
$ref: '#/components/responses/ErrorResponse'
11239+
x-code-samples:
11240+
- lang: Shell
11241+
source: >
11242+
curl -H "Content-Type: application/json" \
11243+
-H "Authorization: Bearer $TOKEN" \
11244+
-X PUT -d '{
11245+
"cors_enabled": true,
11246+
"acl": "private"
11247+
}' \
11248+
https://api.linode.com/v4/object-storage/buckets/us-east-1/example-bucket/access
1118611249
/object-storage/buckets/{clusterId}/{bucket}/object-list:
1118711250
parameters:
1118811251
- name: clusterId

0 commit comments

Comments
 (0)