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

    Interface JobSpec

    JobSpec defines a job that will be run.

    interface JobSpec {
        "[customJson]"?: () => unknown;
        "[unknownFieldsSymbol]"?: Uint8Array<ArrayBufferLike>;
        $type: "nebius.ai.v1.JobSpec";
        args: string;
        containerCommand: string;
        disk?: JobSpec_DiskSpec;
        environmentVariables: JobSpec_EnvironmentVariable[];
        image: string;
        platform: string;
        ports: JobSpec_Port[];
        preemptible: boolean;
        preset: string;
        publicIp: boolean;
        registryCredentials?: JobSpec_RegistryCredentials;
        restartAttempts: Long;
        shmSizeBytes: Long;
        sshAuthorizedKeys: string[];
        subnetId: string;
        timeout?: Duration;
        volumes: JobSpec_VolumeMount[];
        workingDir: string;
        [key: symbol]: Uint8Array<ArrayBufferLike> | (() => unknown) | undefined;
    }

    Indexable

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

    Properties

    "[customJson]"?: () => unknown
    "[unknownFieldsSymbol]"?: Uint8Array<ArrayBufferLike>
    $type: "nebius.ai.v1.JobSpec"
    args: string

    The arguments to pass to the entrypoint command.

    containerCommand: string

    The entrypoint command for the job's container.

    Disk spec for the main disk of the job.

    environmentVariables: JobSpec_EnvironmentVariable[]

    Specifies the environment variables for the job's container.

    image: string

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

    platform: string

    Compute platform that the job will be run on.

    ports: JobSpec_Port[]

    Specifies the ports that the job exposes.

    preemptible: boolean

    Whether to use a preemptible VM for the job. Preemptible VMs are cheaper but can be stopped by the platform at any time.

    preset: string

    Compute preset that the job will be run on.

    publicIp: boolean

    Whether to assign a public IP to the job.

    registryCredentials?: JobSpec_RegistryCredentials

    Registry credentials for private Docker registry.

    restartAttempts: Long

    Restart attempts for the job.

    shmSizeBytes: Long

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

    sshAuthorizedKeys: string[]

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

    subnetId: string

    Subnet ID where the job will be deployed.

    timeout?: Duration

    Job timeout.

    Volumes to be mounted into the job's container.

    workingDir: string

    The working directory for the job's container.