@nebius/js-sdk - v0.2.103
    Preparing search index...

    Interface DevlabSpec

    DevlabSpec defines an interactive workload that will be run.

    interface DevlabSpec {
        "[customJson]"?: () => unknown;
        "[unknownFieldsSymbol]"?: Uint8Array<ArrayBufferLike>;
        $type: "nebius.ai.v1.DevlabSpec";
        args: string;
        authTokenMysteryboxSecret?: DevlabSpec_MysteryBoxSecretRef;
        authTokenSecretstashSecret?: DevlabSpec_MysteryBoxSecretRef;
        containerCommand: string;
        cpu: string[];
        disk?: DevlabSpec_DiskSpec;
        environmentVariables: DevlabSpec_EnvironmentVariable[];
        gpu: string[];
        image: string;
        injectedFiles: DevlabSpec_FileInjection[];
        platform: string;
        ports: DevlabSpec_Port[];
        preset: string;
        primaryRoute?: DevlabSpec_PrimaryRoute;
        publicIp: boolean;
        registryCredentials?: DevlabSpec_RegistryCredentials;
        shmSizeBytes: Long;
        sshAuthorizedKeys: string[];
        subnetId: string;
        template?: DevlabSpec_Template;
        volumes: DevlabSpec_VolumeMount[];
        workingDir: string;
        workspace?: DevlabSpec_Workspace;
        [key: symbol]: Uint8Array<ArrayBufferLike> | (() => unknown) | undefined;
    }

    Indexable

    • [key: symbol]: Uint8Array<ArrayBufferLike> | (() => unknown) | undefined

      DevlabSpec defines an interactive workload that will be run.

      • Uint8Array<ArrayBufferLike>
      • () => unknown
          • (): unknown
          • DevlabSpec defines an interactive workload that will be run.

            Returns unknown

      • undefined
    Index
    "[customJson]"?: () => unknown

    Returns a safe value for JSON logs.

    Type Declaration

      • (): unknown
      • Returns a safe value for JSON logs.

        Returns unknown

    "[unknownFieldsSymbol]"?: Uint8Array<ArrayBufferLike>

    Preserves protobuf fields that this SDK version does not recognize.

    $type: "nebius.ai.v1.DevlabSpec"

    Contains the fully qualified protobuf type name.

    args: string

    The arguments to pass to the entrypoint command.

    authTokenMysteryboxSecret?: DevlabSpec_MysteryBoxSecretRef

    The SecretStash secret that contains the authentication token under the AUTH_TOKEN payload key. This field enables an authentication proxy for the Devlab's HTTP ports. The proxy rejects requests without an Authorization: Bearer <token> header that contains the matching token. To disable the bearer-token check, omit the secret reference. Read methods return the reference in this field.

    authTokenSecretstashSecret?: DevlabSpec_MysteryBoxSecretRef

    Preferred field for the SecretStash secret that contains AUTH_TOKEN. This secret enables bearer-token authentication for the Devlab's HTTP ports. If you set both secret reference fields, use the same reference in both. Read methods return the reference in auth_token_mysterybox_secret.

    containerCommand: string

    The entrypoint command for the Devlab's container.

    cpu: string[]

    CPU family and vCPU count, such as ["amd:16"]. Devlabs accept one entry, including template-based Devlabs. Mutually exclusive with gpu. Omit platform and preset in Create. Reads include the saved platform and preset. The caller still selects the disk.

    Disk spec for the main disk of the Devlab runtime VM.

    environmentVariables: DevlabSpec_EnvironmentVariable[]

    Specifies the environment variables for the Devlab's container.

    gpu: string[]

    GPU model and optional count, such as ["H100:8"]. An omitted count means one GPU. Devlabs accept one entry, including template-based Devlabs. Mutually exclusive with cpu. Omit platform and preset in Create. Reads include the saved platform and preset. The caller still selects the disk.

    image: string

    The Docker image to use for the Devlab's container.

    Required unless template is set: the template declares the image.

    injectedFiles: DevlabSpec_FileInjection[]

    Small config files injected into the container before the user process starts. Intended for configs, not datasets. Read methods return target paths. File content is returned only by Get with view SECRET.

    platform: string

    Compute platform that the Devlab will be run on. Reads return the saved platform for a selector-based Devlab.

    Specifies the ports that the Devlab exposes.

    preset: string

    Compute preset that the Devlab will be run on. Reads return the saved preset for a selector-based Devlab.

    Primary web route exposed through the managed HTTPS endpoint.

    Required unless template is set: the template declares the primary web UI port.

    publicIp: boolean

    Whether to assign a public IP to the Devlab runtime VM.

    registryCredentials?: DevlabSpec_RegistryCredentials

    Registry credentials for private Docker registry.

    shmSizeBytes: Long

    Shared memory size in bytes for the Devlab's container.

    sshAuthorizedKeys: string[]

    Public keys to be authorized for SSH access to the Devlab.

    subnetId: string

    Subnet ID where the Devlab will be deployed. If omitted, the service uses the project's default subnet in the workload region.

    Template that defines the Devlab's container.

    When set, the template declares the container shape: image, entrypoint command, arguments, working directory, ports, optional shared memory size, the primary web route, and the default workspace path. The spec must leave image, container command, arguments, working directory, and primary route empty. Environment variables and ports extend the template-declared ones, workspace.container_path may override the template default, and shm_size_bytes may be set only when the template leaves it unset.

    The template is consumed at creation time: read methods return the rendered container shape instead of the template reference.

    Extra volumes to be mounted into the Devlab container.

    workingDir: string

    The working directory for the Devlab's container.

    Primary workspace storage for user state.