gbox-sdk
    Preparing search index...

    Interface CreateLinux

    interface CreateLinux {
        config?: GboxClient.V1.BoxCreateLinuxParams.Config & {
            expiresIn?: `${number}h` | `${number}m` | `${number}s` | `${number}ms`;
        };
        timeout?: string;
        type: "linux";
        wait?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    config?: GboxClient.V1.BoxCreateLinuxParams.Config & {
        expiresIn?: `${number}h` | `${number}m` | `${number}s` | `${number}ms`;
    }

    Configuration for a Linux box instance

    timeout?: string

    Timeout for waiting the box to transition from pending to running state, default is 30s. If the box doesn't reach running state within this timeout, the API will return HTTP status code 408. The timed-out box will be automatically deleted and will not count towards your quota.

    Supported time units: ms (milliseconds), s (seconds), m (minutes), h (hours) Example formats: "500ms", "30s", "5m", "1h" Default: 30s Maximum allowed: 5m

    type: "linux"

    Box type is Linux

    wait?: boolean

    Wait for the box operation to be completed, default is true