Storage

Create an S3 access key for this bucket only. The secret is shown only in this response

post/storage/buckets/{bucketId}/keys

Request

  • Base URL: https://hostingsurge.com/api/v1
  • URL: https://hostingsurge.com/api/v1/storage/buckets/{bucketId}/keys
  • Auth: one of:
    • HTTP bearer
    • API key in cookie __Host-hs_session

Path parameters

bucketIdstring uuid required

Request body

namestring required
permission'read' | 'read_write'
expiresInDaysinteger

omit for a key that does not expire

Response

Created

idstring uuid required
bucketIdstring uuid required
namestring required
accessKeyIdstring required

S3 access key id (not secret)

permission'read' | 'read_write' required
projectIdstring uuid nullable required

set when the key was created by connecting the bucket to a project

expiresAtstring nullable required

ISO-8601 timestamp

createdAtstring required

ISO-8601 timestamp

secretAccessKeystring required

shown only in this response: store it now

endpointstring required
regionstring required
bucketstring required

Changes

No recorded changes to this operation across all 1 revision of this API.