Skip to content

Commit 9add031

Browse files
Merge pull request #351 from leslitagordita/get-object-acl
Add GET Object ACL
2 parents f716907 + 77e8d68 commit 9add031

File tree

1 file changed

+80
-0
lines changed

1 file changed

+80
-0
lines changed

openapi.yaml

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11161,6 +11161,8 @@ paths:
1116111161
- private
1116211162
- public-read
1116311163
- authenticated-read
11164+
- public-read-write
11165+
- custom
1116411166
description: >
1116511167
The Access Control Level of the bucket, as a canned ACL string.
1116611168
For more fine-grained control of ACLs, use the S3 API directly.
@@ -11223,6 +11225,8 @@ paths:
1122311225
- private
1122411226
- public-read
1122511227
- authenticated-read
11228+
- public-read-write
11229+
- custom
1122611230
description: >
1122711231
The Access Control Level of the bucket, as a canned ACL string.
1122811232
For more fine-grained control of ACLs, use the S3 API directly.
@@ -11246,6 +11250,82 @@ paths:
1124611250
"acl": "private"
1124711251
}' \
1124811252
https://api.linode.com/v4/object-storage/buckets/us-east-1/example-bucket/access
11253+
/object-storage/buckets/{clusterId}/{bucket}/object-acl:
11254+
parameters:
11255+
- name: clusterId
11256+
in: path
11257+
description: The ID of the cluster this bucket exists in.
11258+
required: true
11259+
schema:
11260+
type: string
11261+
- name: bucket
11262+
in: path
11263+
description: The bucket name.
11264+
required: true
11265+
schema:
11266+
type: string
11267+
get:
11268+
operationId: viewObjectStorageBucketAccess
11269+
x-linode-cli-skip: true
11270+
servers:
11271+
- url: https://api.linode.com/v4
11272+
summary: Object Storage Object ACL Config View
11273+
description: |
11274+
This Object Storage bucket's currently configured Access Control List (ACL).
11275+
ACLs define who can access your buckets and objects and specify the level of access
11276+
granted to those users.
11277+
11278+
11279+
This endpoint is available for convenience. It is recommended that instead you
11280+
use the more more [fully-featured S3 API](https://docs.ceph.com/docs/mimic/radosgw/s3/bucketops/#put-bucket-acl) directly.
11281+
tags:
11282+
- Object Storage
11283+
security:
11284+
- personalAccessToken: []
11285+
- oauth:
11286+
- object_storage:read_only
11287+
parameters:
11288+
- name: name
11289+
in: query
11290+
required: true
11291+
description: >
11292+
The `name` of the object for which to retrieve its Access Control List (ACL).
11293+
Use the [Object Storage Bucket Contents List](/docs/api/object-storage/#object-storage-bucket-contents-list)
11294+
endpoint to access all object names in a bucket.
11295+
schema:
11296+
type: string
11297+
responses:
11298+
'200':
11299+
description: The Object's canned ACL and policy.
11300+
content:
11301+
application/json:
11302+
schema:
11303+
type: object
11304+
properties:
11305+
acl:
11306+
type: string
11307+
enum:
11308+
- private
11309+
- public-read
11310+
- authenticated-read
11311+
- public-read-write
11312+
- custom
11313+
description: >
11314+
The Access Control Level of the bucket, as a canned ACL string.
11315+
For more fine-grained control of ACLs, use the S3 API directly.
11316+
example: public-read
11317+
acl_xml:
11318+
type: string
11319+
description: >
11320+
The full XML of the object's ACL policy.
11321+
example: "<AccessControlPolicy>...</AccessControlPolicy>"
11322+
default:
11323+
$ref: '#/components/responses/ErrorResponse'
11324+
x-code-samples:
11325+
- lang: Shell
11326+
source: >
11327+
curl -H "Authorization: Bearer $TOKEN" \
11328+
https://api.linode.com/v4/object-storage/buckets/us-east-1/example-bucket/object-acl?name=example.txt
1124911329
/object-storage/buckets/{clusterId}/{bucket}/object-list:
1125011330
parameters:
1125111331
- name: clusterId

0 commit comments

Comments
 (0)