Reference
Create credentials
Short-lived S3 credentials that reach only this namespace's folder, so a daemon or CLI can use the store directly without a key for the whole bucket.
POST
bearerheader
AuthorizationBearer <token>namespace*stringA namespace of your organization, such as prod/app, or <org>:<namespace> for a public namespace of another one. Encode / as %2F.
application/json- body
access*stringwrite needs a key with the write role.
Value in
"read""write"The credentials.
application/json- response
store*stringThe namespace's folder in the bucket, as s3://<bucket>/<prefix>.
region*stringendpoint*|The S3 endpoint, for S3-compatible stores. Null for AWS.
accessKeyId*stringsecretAccessKey*stringsessionToken*stringexpiresAt*stringAsk again before then. At least 15 minutes ahead.
Format
date-timeaccess*AccessValue in
"read""write"heads*|When the cache servers own this namespace's branch heads: change heads through them. These credentials then cannot write refs/.
curl -X POST 'https://example.com/v1/namespaces/string/credentials' \ -H 'Content-Type: application/json' \ -d '{ "access": "read"}'Example Response
{ "store": "string", "region": "string", "endpoint": "string", "accessKeyId": "string", "secretAccessKey": "string", "sessionToken": "string", "expiresAt": "2019-08-24T14:15:22Z", "access": "read", "heads": { "nodes": [ "string" ], "folder": "string", "pass": "string" }}