Here, we'll create a new Object Storage authentication key that you can use to list and create buckets in specific data centers (regions).
The workflow
-
Run the List regions operation, verify that each desired region includes
"Object Storage"
among itscapabilities
, and store theid
value for each.{ "data": [ { "capabilities": [ "Linodes", "NodeBalancers", "Block Storage", "Object Storage", <== The region offers support for Object Storage. "Placement Groups", "Block Storage Encryption", "Linode Interfaces" ], "country": "france", "id": "fr-pr-1", <== The region's "id" ... }
-
Run the Create an Object Storage key operation including this content in the request:
{ "label": "Regular OBJ Access - EU", "regions": [ "fr-pr-1" ] }
-
label
. Give the key an easily recognizable name. -
regions
. Include all of the regions you stored from step 1, where you want to use the key to access buckets.
-
-
Ensure that you omit the
bucket_access
array from the request. (This is used to create a limited access key). -
After you run the operation, store the
secret_key
from the response. This value is only revealed in the response for this operation.
The end result
You can use the key to manage all buckets in the regions
you named in the key.
You can also set up bucket policies for fine-grained control of access and permissions for your buckets.