Table of Contents

Class Sandbox

Namespace
OpenShell
Assembly
OpenShell.Sdk.dll

A sandbox as reported by the gateway.

public sealed record Sandbox : IEquatable<Sandbox>
Inheritance
Sandbox
Implements
Inherited Members

Properties

Annotations

User annotations.

public IReadOnlyDictionary<string, string> Annotations { get; init; }

Property Value

IReadOnlyDictionary<string, string>

Conditions

Status conditions.

public IReadOnlyList<SandboxCondition> Conditions { get; init; }

Property Value

IReadOnlyList<SandboxCondition>

CreatedAt

Creation time.

public DateTimeOffset? CreatedAt { get; init; }

Property Value

DateTimeOffset?

CurrentPolicyVersion

Currently active policy version.

public uint CurrentPolicyVersion { get; init; }

Property Value

uint

DeletedAt

Deletion time, when deletion is in progress.

public DateTimeOffset? DeletedAt { get; init; }

Property Value

DateTimeOffset?

EndpointStatuses

What the supervisor last observed for each declared endpoint.

public IReadOnlyList<EndpointStatus> EndpointStatuses { get; init; }

Property Value

IReadOnlyList<EndpointStatus>

ExitCode

Exit code of the main process once it finished.

public int? ExitCode { get; init; }

Property Value

int?

HostKeyFingerprint

SSH host key fingerprint, when known.

public string? HostKeyFingerprint { get; init; }

Property Value

string

Id

Immutable identifier.

public required string Id { get; init; }

Property Value

string

Image

Image from the desired spec, when set.

public string? Image { get; init; }

Property Value

string

Labels

User labels.

public IReadOnlyDictionary<string, string> Labels { get; init; }

Property Value

IReadOnlyDictionary<string, string>

LastTokenGrantFailure

The latest gateway-managed token grant that failed in this sandbox; null when there is none.

public TokenGrantFailureObservation? LastTokenGrantFailure { get; init; }

Property Value

TokenGrantFailureObservation

Name

Canonical name within the workspace.

public required string Name { get; init; }

Property Value

string

Phase

Current phase.

public SandboxPhase Phase { get; init; }

Property Value

SandboxPhase

ResourceVersion

Optimistic-concurrency version.

public ulong ResourceVersion { get; init; }

Property Value

ulong

RestartCount

Number of main-process restarts.

public uint RestartCount { get; init; }

Property Value

uint

ServiceUrls

Exposed service URLs by service name; the unnamed service uses the empty key.

public IReadOnlyDictionary<string, string> ServiceUrls { get; init; }

Property Value

IReadOnlyDictionary<string, string>

Workspace

Owning workspace.

public required string Workspace { get; init; }

Property Value

string