CreateContainerRequest: {
    cpuLimit?: number;
    description?: string;
    environmentVariables?: Record<string, string>;
    healthCheck?: Container.v1beta1.ContainerHealthCheckSpec;
    httpOption?: ContainerHttpOption;
    localStorageLimit?: number;
    maxConcurrency?: number;
    maxScale?: number;
    memoryLimit?: number;
    minScale?: number;
    name: string;
    namespaceId: string;
    port?: number;
    privacy?: ContainerPrivacy;
    protocol?: ContainerProtocol;
    region?: Region;
    registryImage?: string;
    sandbox?: ContainerSandbox;
    scalingOption?: Container.v1beta1.ContainerScalingOption;
    secretEnvironmentVariables?: Container.v1beta1.Secret[];
    timeout?: string;
}

Type declaration

  • OptionalcpuLimit?: number

    CPU limit of the container in mvCPU.

  • Optionaldescription?: string

    Description of the container.

  • OptionalenvironmentVariables?: Record<string, string>

    Environment variables of the container.

  • OptionalhealthCheck?: Container.v1beta1.ContainerHealthCheckSpec

    Health check configuration of the container.

  • OptionalhttpOption?: ContainerHttpOption

    Possible values:

    • Redirected: Responds to HTTP request with a 301 redirect to ask the clients to use HTTPS.
    • Enabled: Serve both HTTP and HTTPS traffic.
  • OptionallocalStorageLimit?: number

    Local storage limit of the container (in MB).

  • OptionalmaxConcurrency?: number

    Number of maximum concurrent executions of the container.

  • OptionalmaxScale?: number

    Maximum number of instances to scale the container to.

  • OptionalmemoryLimit?: number

    Memory limit of the container in MB.

  • OptionalminScale?: number

    Minimum number of instances to scale the container to.

  • name: string

    Name of the container.

  • namespaceId: string

    UUID of the namespace the container belongs to.

  • Optionalport?: number

    Port the container listens on.

  • Optionalprivacy?: ContainerPrivacy

    Privacy setting of the container.

  • Optionalprotocol?: ContainerProtocol

    Protocol the container uses.

  • Optionalregion?: Region

    Region to target. If none is passed will use default region from the config.

  • OptionalregistryImage?: string

    Name of the registry image (e.g. "rg.fr-par.scw.cloud/something/image:tag").

  • Optionalsandbox?: ContainerSandbox

    Execution environment of the container.

  • OptionalscalingOption?: Container.v1beta1.ContainerScalingOption

    Possible values:

    • Concurrent_requests_threshold: Scale depending on the number of concurrent requests being processed per container instance.
    • Cpu_usage_threshold: Scale depending on the CPU usage of a container instance.
    • Memory_usage_threshold: Scale depending on the memory usage of a container instance.
  • OptionalsecretEnvironmentVariables?: Container.v1beta1.Secret[]

    Secret environment variables of the container.

  • Optionaltimeout?: string

    Processing time limit for the container.