Skip to content

Commit 351d4d0

Browse files
Add POST method back
Spec should display both methods, since both methods can modify this resource.
1 parent 932e788 commit 351d4d0

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
@@ -11121,6 +11121,69 @@ paths:
1112111121
required: true
1112211122
schema:
1112311123
type: string
11124+
post:
11125+
operationId: modifyObjectStorageBucketAccess
11126+
x-linode-cli-skip: true
11127+
servers:
11128+
- url: https://api.linode.com/v4
11129+
summary: Object Storage Bucket Access Modify
11130+
description: |
11131+
Allows changing basic Cross-origin Resource Sharing (CORS) and Access Control Level (ACL) settings.
11132+
Only allows enabling/disabling CORS for all origins, and/or setting canned ACLs.
11133+
For more fine-grained control of both systems, please use the S3 API directly.
11134+
11135+
11136+
11137+
This endpoint is available for convenience. It is recommended that instead you
11138+
use the more more [fully-featured S3 API](https://docs.ceph.com/docs/mimic/radosgw/s3/bucketops/#put-bucket-acl) directly.
11139+
tags:
11140+
- Object Storage
11141+
security:
11142+
- personalAccessToken: []
11143+
- oauth:
11144+
- object_storage:read_write
11145+
requestBody:
11146+
description: The changes to make to the bucket's access controls.
11147+
content:
11148+
application/json:
11149+
schema:
11150+
properties:
11151+
cors_enabled:
11152+
type: boolean
11153+
description: >
11154+
If true, the bucket will be created with CORS enabled for all
11155+
origins. For more fine-grained controls of CORS, use the S3
11156+
API directly.
11157+
example: true
11158+
acl:
11159+
type: string
11160+
enum:
11161+
- private
11162+
- public-read
11163+
- authenticated-read
11164+
description: >
11165+
The Access Control Level of the bucket, as a canned ACL string.
11166+
For more fine-grained control of ACLs, use the S3 API directly.
11167+
example: private
11168+
responses:
11169+
'200':
11170+
description: Access controls updated.
11171+
content:
11172+
application/json:
11173+
schema:
11174+
type: object
11175+
default:
11176+
$ref: '#/components/responses/ErrorResponse'
11177+
x-code-samples:
11178+
- lang: Shell
11179+
source: >
11180+
curl -H "Content-Type: application/json" \
11181+
-H "Authorization: Bearer $TOKEN" \
11182+
-X POST -d '{
11183+
"cors_enabled": true,
11184+
"acl": "private"
11185+
}' \
11186+
https://api.linode.com/v4/object-storage/buckets/us-east-1/example-bucket/access
1112411187
put:
1112511188
operationId: modifyObjectStorageBucketAccess
1112611189
x-linode-cli-skip: true

0 commit comments

Comments
 (0)