Create a scoped access token
Return a bearer token for the access endpoint of the sandbox. It allows the given actions on this sandbox only, for 15 minutes, and only while the caller keeps its access: a change to the roles or the API keys of the caller ends it. Use it where access_credentials of the sandbox does not list the credential that you hold, for example from the console. Needs read access to the sandbox.
Authorization
apiKey API key starting with tektona_. Create one at app-dev.tektona.ai under API Keys.
In: header
Path Parameters
Sandbox ID (ULID)
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Actions that the token allows; defaults to all of them. Each one still needs the access level of the caller on the sandbox.
items <= 6Response Body
application/json
application/problem+json
curl -X POST "https://example.com/v1/sandboxes/string/access-tokens" \ -H "Content-Type: application/json" \ -d '{}'{ "access_endpoint": "https://fr-par-1.access.sandbox.tektona.app", "actions": [ "string" ], "expires_at": "2019-08-24T14:15:22Z", "token": "string"}{ "detail": "Property foo is required but is missing.", "errors": [ { "location": "string", "message": "string", "value": null } ], "instance": "https://example.com/error-log/abc123", "status": 400, "title": "Bad Request", "type": "https://example.com/errors/example"}Stop desktop environment PUT
Stop the desktop environment in a sandbox.
Create a signed file URL POST
Return a URL at the access endpoint of the sandbox that downloads (GET) or uploads (PUT) one file without other credentials, for at most 15 minutes. A GET URL with format downloads the tree at path as an archive instead, like GET files/archive without exclude. GET needs read access, PUT and user need write access. A change to the access of the caller or to the shares of the sandbox ends the URL. A PUT URL uploads once.