@@ -11133,6 +11133,7 @@ paths:
11133
11133
For more fine-grained control of both systems, please use the S3 API directly.
11134
11134
11135
11135
11136
+
11136
11137
This endpoint is available for convenience. It is recommended that instead you
11137
11138
use the more more [fully-featured S3 API](https://docs.ceph.com/docs/mimic/radosgw/s3/bucketops/#put-bucket-acl) directly.
11138
11139
tags:
@@ -11183,6 +11184,68 @@ paths:
11183
11184
"acl": "private"
11184
11185
}' \
11185
11186
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
11186
11249
/object-storage/buckets/{clusterId}/{bucket}/object-list:
11187
11250
parameters:
11188
11251
- name: clusterId
0 commit comments