ServicesLocationsHTTP APIUnknown

Storage_binding

POST
/api/locations/{location_id}/versions/{version_id}/storage-binding

Obtain renewable storage access for one exact Location version.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Path Parameters

location_id*string
Formatuuid
version_id*string
Formatuuid

Response Body

Success

application/json
  1. response
access*|
expiresAt*|
mode*locations.StorageMode
Value in"read_only""read_write"
rootUri*string
curl -X POST 'https://api.spiraldb.dev/api/locations/497f6eca-6276-4993-bfeb-53cbbbba6f08/versions/497f6eca-6276-4993-bfeb-53cbbbba6f08/storage-binding'
{  "access": {    "signed": {      "directRead": {        "credential": {          "awsSession": {            "accessKeyId": "string",            "endpoint": "string",            "expiresAtMicros": "string",            "region": "string",            "secretAccessKey": "string",            "sessionToken": "string"          },          "type": "awsSession"        },        "uri": "string"      },      "endpoint": "string",      "token": "string"    },    "type": "signed"  },  "expiresAt": "string",  "mode": "read_only",  "rootUri": "string"}