Skip to main content
GET
Get a workspace

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-ankra-organisation-id
string

PAT organisation override.

Path Parameters

workspace_id
string<uuid>
required

The workspace.

Response

Successful response

An Ankra Workspace: a member's pod on the organisation's CI pool that commands for one repository run in.

cluster_id
string<uuid> | null
required

The cluster the workspace was placed on, once, at its first bring-up.

created_at
string<date-time>
required
expires_at
string<date-time> | null
required

When the platform removes the workspace if nothing uses it first.

id
string<uuid>
required
idle_ttl_hours
integer
required

How long the workspace lives unused.

image
string | null
required

The toolchain image its main container runs.

image_source
enum<string> | null
required

Where the image came from.

Available options:
repository_profile,
pipeline_stage,
pipeline_defaults,
null
kind
string
required

The workspace profile it was built from.

last_error
string | null
required

Why the workspace failed, or why the platform removed it.

last_used_at
string<date-time>
required
namespace
string | null
required

The Kubernetes namespace it runs in.

organisation_id
string<uuid>
required
pod_name
string | null
required

The pod commands run in.

repository_id
string<uuid>
required
sandbox_environment_id
string<uuid> | null
required

The sandbox environment that owns its namespace.

spec_hash
string | null
required

SHA-256 of the objects it was rendered from.

status
enum<string>
required
Available options:
provisioning,
ready,
failed,
tearing_down,
destroyed
updated_at
string<date-time>
required
user_id
string<uuid>
required

The member the workspace belongs to.