ibm.CodeEngineJob
Explore with Pulumi AI
Create, update, and delete code_engine_job with this resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const codeEngineJobInstance = new ibm.CodeEngineJob("codeEngineJobInstance", {
projectId: ibm_code_engine_project.code_engine_project_instance.project_id,
imageReference: "icr.io/codeengine/helloworld",
runEnvVariables: [
{
type: "literal",
name: "name",
value: "value",
},
{
type: "secret_full_reference",
name: "secret_env_var",
reference: "secret_name",
},
],
});
import pulumi
import pulumi_ibm as ibm
code_engine_job_instance = ibm.CodeEngineJob("codeEngineJobInstance",
project_id=ibm_code_engine_project["code_engine_project_instance"]["project_id"],
image_reference="icr.io/codeengine/helloworld",
run_env_variables=[
{
"type": "literal",
"name": "name",
"value": "value",
},
{
"type": "secret_full_reference",
"name": "secret_env_var",
"reference": "secret_name",
},
])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ibm.NewCodeEngineJob(ctx, "codeEngineJobInstance", &ibm.CodeEngineJobArgs{
ProjectId: pulumi.Any(ibm_code_engine_project.Code_engine_project_instance.Project_id),
ImageReference: pulumi.String("icr.io/codeengine/helloworld"),
RunEnvVariables: ibm.CodeEngineJobRunEnvVariableArray{
&ibm.CodeEngineJobRunEnvVariableArgs{
Type: pulumi.String("literal"),
Name: pulumi.String("name"),
Value: pulumi.String("value"),
},
&ibm.CodeEngineJobRunEnvVariableArgs{
Type: pulumi.String("secret_full_reference"),
Name: pulumi.String("secret_env_var"),
Reference: pulumi.String("secret_name"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var codeEngineJobInstance = new Ibm.CodeEngineJob("codeEngineJobInstance", new()
{
ProjectId = ibm_code_engine_project.Code_engine_project_instance.Project_id,
ImageReference = "icr.io/codeengine/helloworld",
RunEnvVariables = new[]
{
new Ibm.Inputs.CodeEngineJobRunEnvVariableArgs
{
Type = "literal",
Name = "name",
Value = "value",
},
new Ibm.Inputs.CodeEngineJobRunEnvVariableArgs
{
Type = "secret_full_reference",
Name = "secret_env_var",
Reference = "secret_name",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.CodeEngineJob;
import com.pulumi.ibm.CodeEngineJobArgs;
import com.pulumi.ibm.inputs.CodeEngineJobRunEnvVariableArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var codeEngineJobInstance = new CodeEngineJob("codeEngineJobInstance", CodeEngineJobArgs.builder()
.projectId(ibm_code_engine_project.code_engine_project_instance().project_id())
.imageReference("icr.io/codeengine/helloworld")
.runEnvVariables(
CodeEngineJobRunEnvVariableArgs.builder()
.type("literal")
.name("name")
.value("value")
.build(),
CodeEngineJobRunEnvVariableArgs.builder()
.type("secret_full_reference")
.name("secret_env_var")
.reference("secret_name")
.build())
.build());
}
}
resources:
codeEngineJobInstance:
type: ibm:CodeEngineJob
properties:
projectId: ${ibm_code_engine_project.code_engine_project_instance.project_id}
imageReference: icr.io/codeengine/helloworld
runEnvVariables:
- type: literal
name: name
value: value
- type: secret_full_reference
name: secret_env_var
reference: secret_name
Create CodeEngineJob Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CodeEngineJob(name: string, args: CodeEngineJobArgs, opts?: CustomResourceOptions);
@overload
def CodeEngineJob(resource_name: str,
args: CodeEngineJobArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CodeEngineJob(resource_name: str,
opts: Optional[ResourceOptions] = None,
project_id: Optional[str] = None,
image_reference: Optional[str] = None,
run_env_variables: Optional[Sequence[CodeEngineJobRunEnvVariableArgs]] = None,
run_mode: Optional[str] = None,
image_secret: Optional[str] = None,
run_arguments: Optional[Sequence[str]] = None,
run_as_user: Optional[float] = None,
run_commands: Optional[Sequence[str]] = None,
code_engine_job_id: Optional[str] = None,
name: Optional[str] = None,
run_service_account: Optional[str] = None,
run_volume_mounts: Optional[Sequence[CodeEngineJobRunVolumeMountArgs]] = None,
scale_array_spec: Optional[str] = None,
scale_cpu_limit: Optional[str] = None,
scale_ephemeral_storage_limit: Optional[str] = None,
scale_max_execution_time: Optional[float] = None,
scale_memory_limit: Optional[str] = None,
scale_retry_limit: Optional[float] = None)
func NewCodeEngineJob(ctx *Context, name string, args CodeEngineJobArgs, opts ...ResourceOption) (*CodeEngineJob, error)
public CodeEngineJob(string name, CodeEngineJobArgs args, CustomResourceOptions? opts = null)
public CodeEngineJob(String name, CodeEngineJobArgs args)
public CodeEngineJob(String name, CodeEngineJobArgs args, CustomResourceOptions options)
type: ibm:CodeEngineJob
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args CodeEngineJobArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args CodeEngineJobArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args CodeEngineJobArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CodeEngineJobArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CodeEngineJobArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var codeEngineJobResource = new Ibm.CodeEngineJob("codeEngineJobResource", new()
{
ProjectId = "string",
ImageReference = "string",
RunEnvVariables = new[]
{
new Ibm.Inputs.CodeEngineJobRunEnvVariableArgs
{
Key = "string",
Name = "string",
Prefix = "string",
Reference = "string",
Type = "string",
Value = "string",
},
},
RunMode = "string",
ImageSecret = "string",
RunArguments = new[]
{
"string",
},
RunAsUser = 0,
RunCommands = new[]
{
"string",
},
CodeEngineJobId = "string",
Name = "string",
RunServiceAccount = "string",
RunVolumeMounts = new[]
{
new Ibm.Inputs.CodeEngineJobRunVolumeMountArgs
{
MountPath = "string",
Name = "string",
Reference = "string",
Type = "string",
},
},
ScaleArraySpec = "string",
ScaleCpuLimit = "string",
ScaleEphemeralStorageLimit = "string",
ScaleMaxExecutionTime = 0,
ScaleMemoryLimit = "string",
ScaleRetryLimit = 0,
});
example, err := ibm.NewCodeEngineJob(ctx, "codeEngineJobResource", &ibm.CodeEngineJobArgs{
ProjectId: pulumi.String("string"),
ImageReference: pulumi.String("string"),
RunEnvVariables: ibm.CodeEngineJobRunEnvVariableArray{
&ibm.CodeEngineJobRunEnvVariableArgs{
Key: pulumi.String("string"),
Name: pulumi.String("string"),
Prefix: pulumi.String("string"),
Reference: pulumi.String("string"),
Type: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
RunMode: pulumi.String("string"),
ImageSecret: pulumi.String("string"),
RunArguments: pulumi.StringArray{
pulumi.String("string"),
},
RunAsUser: pulumi.Float64(0),
RunCommands: pulumi.StringArray{
pulumi.String("string"),
},
CodeEngineJobId: pulumi.String("string"),
Name: pulumi.String("string"),
RunServiceAccount: pulumi.String("string"),
RunVolumeMounts: ibm.CodeEngineJobRunVolumeMountArray{
&ibm.CodeEngineJobRunVolumeMountArgs{
MountPath: pulumi.String("string"),
Name: pulumi.String("string"),
Reference: pulumi.String("string"),
Type: pulumi.String("string"),
},
},
ScaleArraySpec: pulumi.String("string"),
ScaleCpuLimit: pulumi.String("string"),
ScaleEphemeralStorageLimit: pulumi.String("string"),
ScaleMaxExecutionTime: pulumi.Float64(0),
ScaleMemoryLimit: pulumi.String("string"),
ScaleRetryLimit: pulumi.Float64(0),
})
var codeEngineJobResource = new CodeEngineJob("codeEngineJobResource", CodeEngineJobArgs.builder()
.projectId("string")
.imageReference("string")
.runEnvVariables(CodeEngineJobRunEnvVariableArgs.builder()
.key("string")
.name("string")
.prefix("string")
.reference("string")
.type("string")
.value("string")
.build())
.runMode("string")
.imageSecret("string")
.runArguments("string")
.runAsUser(0)
.runCommands("string")
.codeEngineJobId("string")
.name("string")
.runServiceAccount("string")
.runVolumeMounts(CodeEngineJobRunVolumeMountArgs.builder()
.mountPath("string")
.name("string")
.reference("string")
.type("string")
.build())
.scaleArraySpec("string")
.scaleCpuLimit("string")
.scaleEphemeralStorageLimit("string")
.scaleMaxExecutionTime(0)
.scaleMemoryLimit("string")
.scaleRetryLimit(0)
.build());
code_engine_job_resource = ibm.CodeEngineJob("codeEngineJobResource",
project_id="string",
image_reference="string",
run_env_variables=[{
"key": "string",
"name": "string",
"prefix": "string",
"reference": "string",
"type": "string",
"value": "string",
}],
run_mode="string",
image_secret="string",
run_arguments=["string"],
run_as_user=0,
run_commands=["string"],
code_engine_job_id="string",
name="string",
run_service_account="string",
run_volume_mounts=[{
"mount_path": "string",
"name": "string",
"reference": "string",
"type": "string",
}],
scale_array_spec="string",
scale_cpu_limit="string",
scale_ephemeral_storage_limit="string",
scale_max_execution_time=0,
scale_memory_limit="string",
scale_retry_limit=0)
const codeEngineJobResource = new ibm.CodeEngineJob("codeEngineJobResource", {
projectId: "string",
imageReference: "string",
runEnvVariables: [{
key: "string",
name: "string",
prefix: "string",
reference: "string",
type: "string",
value: "string",
}],
runMode: "string",
imageSecret: "string",
runArguments: ["string"],
runAsUser: 0,
runCommands: ["string"],
codeEngineJobId: "string",
name: "string",
runServiceAccount: "string",
runVolumeMounts: [{
mountPath: "string",
name: "string",
reference: "string",
type: "string",
}],
scaleArraySpec: "string",
scaleCpuLimit: "string",
scaleEphemeralStorageLimit: "string",
scaleMaxExecutionTime: 0,
scaleMemoryLimit: "string",
scaleRetryLimit: 0,
});
type: ibm:CodeEngineJob
properties:
codeEngineJobId: string
imageReference: string
imageSecret: string
name: string
projectId: string
runArguments:
- string
runAsUser: 0
runCommands:
- string
runEnvVariables:
- key: string
name: string
prefix: string
reference: string
type: string
value: string
runMode: string
runServiceAccount: string
runVolumeMounts:
- mountPath: string
name: string
reference: string
type: string
scaleArraySpec: string
scaleCpuLimit: string
scaleEphemeralStorageLimit: string
scaleMaxExecutionTime: 0
scaleMemoryLimit: string
scaleRetryLimit: 0
CodeEngineJob Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The CodeEngineJob resource accepts the following input properties:
- Image
Reference string - The name of the image that is used for this job. The format is
REGISTRY/NAMESPACE/REPOSITORY:TAG
whereREGISTRY
andTAG
are optional. IfREGISTRY
is not specified, the default isdocker.io
. IfTAG
is not specified, the default islatest
. If the image reference points to a registry that requires authentication, make sure to also specify the propertyimage_secret
.- Constraints: The maximum length is
256
characters. The minimum length is1
character. The value must match regular expression/^([a-z0-9][a-z0-9\\-_.]+[a-z0-9][\/])?([a-z0-9][a-z0-9\\-_]+[a-z0-9][\/])?[a-z0-9][a-z0-9\\-_.\/]+a-z0-9?(@sha256:[a-fA-F0-9]{64})?$/
.
- Constraints: The maximum length is
- Project
Id string - The ID of the project.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/
.
- Constraints: The maximum length is
- Code
Engine stringJob Id - The unique identifier of the code_engine_job.
- Image
Secret string - The name of the image registry access secret. The image registry access secret is used to authenticate with a private registry when you download the container image. If the image reference points to a registry that requires authentication, the job / job runs will be created but submitted job runs will fail, until this property is provided, too. This property must not be set on a job run, which references a job template.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?(\\.a-z0-9?)*$/
.
- Constraints: The maximum length is
- Name string
- The name of the job.
- Constraints: The maximum length is
63
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?$/
.
- Constraints: The maximum length is
- Run
Arguments List<string> - Set arguments for the job that are passed to start job run containers. If not specified an empty string array will be applied and the arguments specified by the container image, will be used to start the container.
- Constraints: The list items must match regular expression
/^.*$/
. The maximum length is100
items. The minimum length is0
items.
- Constraints: The list items must match regular expression
- Run
As doubleUser - The user ID (UID) to run the job (e.g., 1001).
- Constraints: The default value is
0
.
- Constraints: The default value is
- Run
Commands List<string> - Set commands for the job that are passed to start job run containers. If not specified an empty string array will be applied and the command specified by the container image, will be used to start the container.
- Constraints: The list items must match regular expression
/^.*$/
. The maximum length is100
items. The minimum length is0
items.
- Constraints: The list items must match regular expression
- Run
Env List<CodeVariables Engine Job Run Env Variable> - References to config maps, secrets or literal values, which are exposed as environment variables in the job run.
- Constraints: The maximum length is
100
items. The minimum length is0
items. Nested schema for run_env_variables:
- Constraints: The maximum length is
- Run
Mode string - The mode for runs of the job. Valid values are
task
anddaemon
. Intask
mode, themax_execution_time
andretry_limit
properties apply. Indaemon
mode, since there is no timeout and failed instances are restarted indefinitely, themax_execution_time
andretry_limit
properties are not allowed.- Constraints: The default value is
task
. Allowable values are:task
,daemon
. The minimum length is0
characters. The value must match regular expression/^(task|daemon)$/
.
- Constraints: The default value is
- Run
Service stringAccount - The name of the service account. For built-in service accounts, you can use the shortened names
manager
,none
,reader
, andwriter
. This property must not be set on a job run, which references a job template.- Constraints: The default value is
default
. Allowable values are:default
,manager
,reader
,writer
,none
. The minimum length is0
characters. The value must match regular expression/^(manager|reader|writer|none|default)$/
.
- Constraints: The default value is
- Run
Volume List<CodeMounts Engine Job Run Volume Mount> - Optional mounts of config maps or secrets.
- Constraints: The maximum length is
100
items. The minimum length is0
items. Nested schema for run_volume_mounts:
- Constraints: The maximum length is
- Scale
Array stringSpec - Define a custom set of array indices as a comma-separated list containing single values and hyphen-separated ranges, such as 5,12-14,23,27. Each instance gets its array index value from the environment variable JOB_INDEX. The number of unique array indices that you specify with this parameter determines the number of job instances to run.
- Constraints: The default value is
0
. The maximum length is253
characters. The minimum length is1
character. The value must match regular expression/^(?:[1-9]\\d\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d|[1-9]\\d\\d\\d|[1-9]\\d\\d|[1-9]?\\d)(?:-(?:[1-9]\\d\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d|[1-9]\\d\\d\\d|[1-9]\\d\\d|[1-9]?\\d))?(?:,(?:[1-9]\\d\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d|[1-9]\\d\\d\\d|[1-9]\\d\\d|[1-9]?\\d)(?:-(?:[1-9]\\d\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d|[1-9]\\d\\d\\d|[1-9]\\d\\d|[1-9]?\\d))?)*$/
.
- Constraints: The default value is
- Scale
Cpu stringLimit - Optional amount of CPU set for the instance of the job. For valid values see Supported memory and CPU combinations.
- Constraints: The default value is
1
. The maximum length is10
characters. The minimum length is0
characters. The value must match regular expression/^([0-9.]+)([eEinumkKMGTPB]*)$/
.
- Constraints: The default value is
- Scale
Ephemeral stringStorage Limit - Optional amount of ephemeral storage to set for the instance of the job. The amount specified as ephemeral storage, must not exceed the amount of
scale_memory_limit
. The units for specifying ephemeral storage are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see Units of measurement.- Constraints: The default value is
400M
. The maximum length is10
characters. The minimum length is0
characters. The value must match regular expression/^([0-9.]+)([eEinumkKMGTPB]*)$/
.
- Constraints: The default value is
- Scale
Max doubleExecution Time - The maximum execution time in seconds for runs of the job. This property can only be specified if
run_mode
istask
.- Constraints: The default value is
7200
.
- Constraints: The default value is
- Scale
Memory stringLimit - Optional amount of memory set for the instance of the job. For valid values see Supported memory and CPU combinations. The units for specifying memory are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see Units of measurement.
- Constraints: The default value is
4G
. The maximum length is10
characters. The minimum length is0
characters. The value must match regular expression/^([0-9.]+)([eEinumkKMGTPB]*)$/
.
- Constraints: The default value is
- Scale
Retry doubleLimit - The number of times to rerun an instance of the job before the job is marked as failed. This property can only be specified if
run_mode
istask
.- Constraints: The default value is
3
.
- Constraints: The default value is
- Image
Reference string - The name of the image that is used for this job. The format is
REGISTRY/NAMESPACE/REPOSITORY:TAG
whereREGISTRY
andTAG
are optional. IfREGISTRY
is not specified, the default isdocker.io
. IfTAG
is not specified, the default islatest
. If the image reference points to a registry that requires authentication, make sure to also specify the propertyimage_secret
.- Constraints: The maximum length is
256
characters. The minimum length is1
character. The value must match regular expression/^([a-z0-9][a-z0-9\\-_.]+[a-z0-9][\/])?([a-z0-9][a-z0-9\\-_]+[a-z0-9][\/])?[a-z0-9][a-z0-9\\-_.\/]+a-z0-9?(@sha256:[a-fA-F0-9]{64})?$/
.
- Constraints: The maximum length is
- Project
Id string - The ID of the project.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/
.
- Constraints: The maximum length is
- Code
Engine stringJob Id - The unique identifier of the code_engine_job.
- Image
Secret string - The name of the image registry access secret. The image registry access secret is used to authenticate with a private registry when you download the container image. If the image reference points to a registry that requires authentication, the job / job runs will be created but submitted job runs will fail, until this property is provided, too. This property must not be set on a job run, which references a job template.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?(\\.a-z0-9?)*$/
.
- Constraints: The maximum length is
- Name string
- The name of the job.
- Constraints: The maximum length is
63
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?$/
.
- Constraints: The maximum length is
- Run
Arguments []string - Set arguments for the job that are passed to start job run containers. If not specified an empty string array will be applied and the arguments specified by the container image, will be used to start the container.
- Constraints: The list items must match regular expression
/^.*$/
. The maximum length is100
items. The minimum length is0
items.
- Constraints: The list items must match regular expression
- Run
As float64User - The user ID (UID) to run the job (e.g., 1001).
- Constraints: The default value is
0
.
- Constraints: The default value is
- Run
Commands []string - Set commands for the job that are passed to start job run containers. If not specified an empty string array will be applied and the command specified by the container image, will be used to start the container.
- Constraints: The list items must match regular expression
/^.*$/
. The maximum length is100
items. The minimum length is0
items.
- Constraints: The list items must match regular expression
- Run
Env []CodeVariables Engine Job Run Env Variable Args - References to config maps, secrets or literal values, which are exposed as environment variables in the job run.
- Constraints: The maximum length is
100
items. The minimum length is0
items. Nested schema for run_env_variables:
- Constraints: The maximum length is
- Run
Mode string - The mode for runs of the job. Valid values are
task
anddaemon
. Intask
mode, themax_execution_time
andretry_limit
properties apply. Indaemon
mode, since there is no timeout and failed instances are restarted indefinitely, themax_execution_time
andretry_limit
properties are not allowed.- Constraints: The default value is
task
. Allowable values are:task
,daemon
. The minimum length is0
characters. The value must match regular expression/^(task|daemon)$/
.
- Constraints: The default value is
- Run
Service stringAccount - The name of the service account. For built-in service accounts, you can use the shortened names
manager
,none
,reader
, andwriter
. This property must not be set on a job run, which references a job template.- Constraints: The default value is
default
. Allowable values are:default
,manager
,reader
,writer
,none
. The minimum length is0
characters. The value must match regular expression/^(manager|reader|writer|none|default)$/
.
- Constraints: The default value is
- Run
Volume []CodeMounts Engine Job Run Volume Mount Args - Optional mounts of config maps or secrets.
- Constraints: The maximum length is
100
items. The minimum length is0
items. Nested schema for run_volume_mounts:
- Constraints: The maximum length is
- Scale
Array stringSpec - Define a custom set of array indices as a comma-separated list containing single values and hyphen-separated ranges, such as 5,12-14,23,27. Each instance gets its array index value from the environment variable JOB_INDEX. The number of unique array indices that you specify with this parameter determines the number of job instances to run.
- Constraints: The default value is
0
. The maximum length is253
characters. The minimum length is1
character. The value must match regular expression/^(?:[1-9]\\d\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d|[1-9]\\d\\d\\d|[1-9]\\d\\d|[1-9]?\\d)(?:-(?:[1-9]\\d\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d|[1-9]\\d\\d\\d|[1-9]\\d\\d|[1-9]?\\d))?(?:,(?:[1-9]\\d\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d|[1-9]\\d\\d\\d|[1-9]\\d\\d|[1-9]?\\d)(?:-(?:[1-9]\\d\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d|[1-9]\\d\\d\\d|[1-9]\\d\\d|[1-9]?\\d))?)*$/
.
- Constraints: The default value is
- Scale
Cpu stringLimit - Optional amount of CPU set for the instance of the job. For valid values see Supported memory and CPU combinations.
- Constraints: The default value is
1
. The maximum length is10
characters. The minimum length is0
characters. The value must match regular expression/^([0-9.]+)([eEinumkKMGTPB]*)$/
.
- Constraints: The default value is
- Scale
Ephemeral stringStorage Limit - Optional amount of ephemeral storage to set for the instance of the job. The amount specified as ephemeral storage, must not exceed the amount of
scale_memory_limit
. The units for specifying ephemeral storage are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see Units of measurement.- Constraints: The default value is
400M
. The maximum length is10
characters. The minimum length is0
characters. The value must match regular expression/^([0-9.]+)([eEinumkKMGTPB]*)$/
.
- Constraints: The default value is
- Scale
Max float64Execution Time - The maximum execution time in seconds for runs of the job. This property can only be specified if
run_mode
istask
.- Constraints: The default value is
7200
.
- Constraints: The default value is
- Scale
Memory stringLimit - Optional amount of memory set for the instance of the job. For valid values see Supported memory and CPU combinations. The units for specifying memory are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see Units of measurement.
- Constraints: The default value is
4G
. The maximum length is10
characters. The minimum length is0
characters. The value must match regular expression/^([0-9.]+)([eEinumkKMGTPB]*)$/
.
- Constraints: The default value is
- Scale
Retry float64Limit - The number of times to rerun an instance of the job before the job is marked as failed. This property can only be specified if
run_mode
istask
.- Constraints: The default value is
3
.
- Constraints: The default value is
- image
Reference String - The name of the image that is used for this job. The format is
REGISTRY/NAMESPACE/REPOSITORY:TAG
whereREGISTRY
andTAG
are optional. IfREGISTRY
is not specified, the default isdocker.io
. IfTAG
is not specified, the default islatest
. If the image reference points to a registry that requires authentication, make sure to also specify the propertyimage_secret
.- Constraints: The maximum length is
256
characters. The minimum length is1
character. The value must match regular expression/^([a-z0-9][a-z0-9\\-_.]+[a-z0-9][\/])?([a-z0-9][a-z0-9\\-_]+[a-z0-9][\/])?[a-z0-9][a-z0-9\\-_.\/]+a-z0-9?(@sha256:[a-fA-F0-9]{64})?$/
.
- Constraints: The maximum length is
- project
Id String - The ID of the project.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/
.
- Constraints: The maximum length is
- code
Engine StringJob Id - The unique identifier of the code_engine_job.
- image
Secret String - The name of the image registry access secret. The image registry access secret is used to authenticate with a private registry when you download the container image. If the image reference points to a registry that requires authentication, the job / job runs will be created but submitted job runs will fail, until this property is provided, too. This property must not be set on a job run, which references a job template.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?(\\.a-z0-9?)*$/
.
- Constraints: The maximum length is
- name String
- The name of the job.
- Constraints: The maximum length is
63
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?$/
.
- Constraints: The maximum length is
- run
Arguments List<String> - Set arguments for the job that are passed to start job run containers. If not specified an empty string array will be applied and the arguments specified by the container image, will be used to start the container.
- Constraints: The list items must match regular expression
/^.*$/
. The maximum length is100
items. The minimum length is0
items.
- Constraints: The list items must match regular expression
- run
As DoubleUser - The user ID (UID) to run the job (e.g., 1001).
- Constraints: The default value is
0
.
- Constraints: The default value is
- run
Commands List<String> - Set commands for the job that are passed to start job run containers. If not specified an empty string array will be applied and the command specified by the container image, will be used to start the container.
- Constraints: The list items must match regular expression
/^.*$/
. The maximum length is100
items. The minimum length is0
items.
- Constraints: The list items must match regular expression
- run
Env List<CodeVariables Engine Job Run Env Variable> - References to config maps, secrets or literal values, which are exposed as environment variables in the job run.
- Constraints: The maximum length is
100
items. The minimum length is0
items. Nested schema for run_env_variables:
- Constraints: The maximum length is
- run
Mode String - The mode for runs of the job. Valid values are
task
anddaemon
. Intask
mode, themax_execution_time
andretry_limit
properties apply. Indaemon
mode, since there is no timeout and failed instances are restarted indefinitely, themax_execution_time
andretry_limit
properties are not allowed.- Constraints: The default value is
task
. Allowable values are:task
,daemon
. The minimum length is0
characters. The value must match regular expression/^(task|daemon)$/
.
- Constraints: The default value is
- run
Service StringAccount - The name of the service account. For built-in service accounts, you can use the shortened names
manager
,none
,reader
, andwriter
. This property must not be set on a job run, which references a job template.- Constraints: The default value is
default
. Allowable values are:default
,manager
,reader
,writer
,none
. The minimum length is0
characters. The value must match regular expression/^(manager|reader|writer|none|default)$/
.
- Constraints: The default value is
- run
Volume List<CodeMounts Engine Job Run Volume Mount> - Optional mounts of config maps or secrets.
- Constraints: The maximum length is
100
items. The minimum length is0
items. Nested schema for run_volume_mounts:
- Constraints: The maximum length is
- scale
Array StringSpec - Define a custom set of array indices as a comma-separated list containing single values and hyphen-separated ranges, such as 5,12-14,23,27. Each instance gets its array index value from the environment variable JOB_INDEX. The number of unique array indices that you specify with this parameter determines the number of job instances to run.
- Constraints: The default value is
0
. The maximum length is253
characters. The minimum length is1
character. The value must match regular expression/^(?:[1-9]\\d\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d|[1-9]\\d\\d\\d|[1-9]\\d\\d|[1-9]?\\d)(?:-(?:[1-9]\\d\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d|[1-9]\\d\\d\\d|[1-9]\\d\\d|[1-9]?\\d))?(?:,(?:[1-9]\\d\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d|[1-9]\\d\\d\\d|[1-9]\\d\\d|[1-9]?\\d)(?:-(?:[1-9]\\d\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d|[1-9]\\d\\d\\d|[1-9]\\d\\d|[1-9]?\\d))?)*$/
.
- Constraints: The default value is
- scale
Cpu StringLimit - Optional amount of CPU set for the instance of the job. For valid values see Supported memory and CPU combinations.
- Constraints: The default value is
1
. The maximum length is10
characters. The minimum length is0
characters. The value must match regular expression/^([0-9.]+)([eEinumkKMGTPB]*)$/
.
- Constraints: The default value is
- scale
Ephemeral StringStorage Limit - Optional amount of ephemeral storage to set for the instance of the job. The amount specified as ephemeral storage, must not exceed the amount of
scale_memory_limit
. The units for specifying ephemeral storage are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see Units of measurement.- Constraints: The default value is
400M
. The maximum length is10
characters. The minimum length is0
characters. The value must match regular expression/^([0-9.]+)([eEinumkKMGTPB]*)$/
.
- Constraints: The default value is
- scale
Max DoubleExecution Time - The maximum execution time in seconds for runs of the job. This property can only be specified if
run_mode
istask
.- Constraints: The default value is
7200
.
- Constraints: The default value is
- scale
Memory StringLimit - Optional amount of memory set for the instance of the job. For valid values see Supported memory and CPU combinations. The units for specifying memory are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see Units of measurement.
- Constraints: The default value is
4G
. The maximum length is10
characters. The minimum length is0
characters. The value must match regular expression/^([0-9.]+)([eEinumkKMGTPB]*)$/
.
- Constraints: The default value is
- scale
Retry DoubleLimit - The number of times to rerun an instance of the job before the job is marked as failed. This property can only be specified if
run_mode
istask
.- Constraints: The default value is
3
.
- Constraints: The default value is
- image
Reference string - The name of the image that is used for this job. The format is
REGISTRY/NAMESPACE/REPOSITORY:TAG
whereREGISTRY
andTAG
are optional. IfREGISTRY
is not specified, the default isdocker.io
. IfTAG
is not specified, the default islatest
. If the image reference points to a registry that requires authentication, make sure to also specify the propertyimage_secret
.- Constraints: The maximum length is
256
characters. The minimum length is1
character. The value must match regular expression/^([a-z0-9][a-z0-9\\-_.]+[a-z0-9][\/])?([a-z0-9][a-z0-9\\-_]+[a-z0-9][\/])?[a-z0-9][a-z0-9\\-_.\/]+a-z0-9?(@sha256:[a-fA-F0-9]{64})?$/
.
- Constraints: The maximum length is
- project
Id string - The ID of the project.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/
.
- Constraints: The maximum length is
- code
Engine stringJob Id - The unique identifier of the code_engine_job.
- image
Secret string - The name of the image registry access secret. The image registry access secret is used to authenticate with a private registry when you download the container image. If the image reference points to a registry that requires authentication, the job / job runs will be created but submitted job runs will fail, until this property is provided, too. This property must not be set on a job run, which references a job template.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?(\\.a-z0-9?)*$/
.
- Constraints: The maximum length is
- name string
- The name of the job.
- Constraints: The maximum length is
63
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?$/
.
- Constraints: The maximum length is
- run
Arguments string[] - Set arguments for the job that are passed to start job run containers. If not specified an empty string array will be applied and the arguments specified by the container image, will be used to start the container.
- Constraints: The list items must match regular expression
/^.*$/
. The maximum length is100
items. The minimum length is0
items.
- Constraints: The list items must match regular expression
- run
As numberUser - The user ID (UID) to run the job (e.g., 1001).
- Constraints: The default value is
0
.
- Constraints: The default value is
- run
Commands string[] - Set commands for the job that are passed to start job run containers. If not specified an empty string array will be applied and the command specified by the container image, will be used to start the container.
- Constraints: The list items must match regular expression
/^.*$/
. The maximum length is100
items. The minimum length is0
items.
- Constraints: The list items must match regular expression
- run
Env CodeVariables Engine Job Run Env Variable[] - References to config maps, secrets or literal values, which are exposed as environment variables in the job run.
- Constraints: The maximum length is
100
items. The minimum length is0
items. Nested schema for run_env_variables:
- Constraints: The maximum length is
- run
Mode string - The mode for runs of the job. Valid values are
task
anddaemon
. Intask
mode, themax_execution_time
andretry_limit
properties apply. Indaemon
mode, since there is no timeout and failed instances are restarted indefinitely, themax_execution_time
andretry_limit
properties are not allowed.- Constraints: The default value is
task
. Allowable values are:task
,daemon
. The minimum length is0
characters. The value must match regular expression/^(task|daemon)$/
.
- Constraints: The default value is
- run
Service stringAccount - The name of the service account. For built-in service accounts, you can use the shortened names
manager
,none
,reader
, andwriter
. This property must not be set on a job run, which references a job template.- Constraints: The default value is
default
. Allowable values are:default
,manager
,reader
,writer
,none
. The minimum length is0
characters. The value must match regular expression/^(manager|reader|writer|none|default)$/
.
- Constraints: The default value is
- run
Volume CodeMounts Engine Job Run Volume Mount[] - Optional mounts of config maps or secrets.
- Constraints: The maximum length is
100
items. The minimum length is0
items. Nested schema for run_volume_mounts:
- Constraints: The maximum length is
- scale
Array stringSpec - Define a custom set of array indices as a comma-separated list containing single values and hyphen-separated ranges, such as 5,12-14,23,27. Each instance gets its array index value from the environment variable JOB_INDEX. The number of unique array indices that you specify with this parameter determines the number of job instances to run.
- Constraints: The default value is
0
. The maximum length is253
characters. The minimum length is1
character. The value must match regular expression/^(?:[1-9]\\d\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d|[1-9]\\d\\d\\d|[1-9]\\d\\d|[1-9]?\\d)(?:-(?:[1-9]\\d\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d|[1-9]\\d\\d\\d|[1-9]\\d\\d|[1-9]?\\d))?(?:,(?:[1-9]\\d\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d|[1-9]\\d\\d\\d|[1-9]\\d\\d|[1-9]?\\d)(?:-(?:[1-9]\\d\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d|[1-9]\\d\\d\\d|[1-9]\\d\\d|[1-9]?\\d))?)*$/
.
- Constraints: The default value is
- scale
Cpu stringLimit - Optional amount of CPU set for the instance of the job. For valid values see Supported memory and CPU combinations.
- Constraints: The default value is
1
. The maximum length is10
characters. The minimum length is0
characters. The value must match regular expression/^([0-9.]+)([eEinumkKMGTPB]*)$/
.
- Constraints: The default value is
- scale
Ephemeral stringStorage Limit - Optional amount of ephemeral storage to set for the instance of the job. The amount specified as ephemeral storage, must not exceed the amount of
scale_memory_limit
. The units for specifying ephemeral storage are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see Units of measurement.- Constraints: The default value is
400M
. The maximum length is10
characters. The minimum length is0
characters. The value must match regular expression/^([0-9.]+)([eEinumkKMGTPB]*)$/
.
- Constraints: The default value is
- scale
Max numberExecution Time - The maximum execution time in seconds for runs of the job. This property can only be specified if
run_mode
istask
.- Constraints: The default value is
7200
.
- Constraints: The default value is
- scale
Memory stringLimit - Optional amount of memory set for the instance of the job. For valid values see Supported memory and CPU combinations. The units for specifying memory are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see Units of measurement.
- Constraints: The default value is
4G
. The maximum length is10
characters. The minimum length is0
characters. The value must match regular expression/^([0-9.]+)([eEinumkKMGTPB]*)$/
.
- Constraints: The default value is
- scale
Retry numberLimit - The number of times to rerun an instance of the job before the job is marked as failed. This property can only be specified if
run_mode
istask
.- Constraints: The default value is
3
.
- Constraints: The default value is
- image_
reference str - The name of the image that is used for this job. The format is
REGISTRY/NAMESPACE/REPOSITORY:TAG
whereREGISTRY
andTAG
are optional. IfREGISTRY
is not specified, the default isdocker.io
. IfTAG
is not specified, the default islatest
. If the image reference points to a registry that requires authentication, make sure to also specify the propertyimage_secret
.- Constraints: The maximum length is
256
characters. The minimum length is1
character. The value must match regular expression/^([a-z0-9][a-z0-9\\-_.]+[a-z0-9][\/])?([a-z0-9][a-z0-9\\-_]+[a-z0-9][\/])?[a-z0-9][a-z0-9\\-_.\/]+a-z0-9?(@sha256:[a-fA-F0-9]{64})?$/
.
- Constraints: The maximum length is
- project_
id str - The ID of the project.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/
.
- Constraints: The maximum length is
- code_
engine_ strjob_ id - The unique identifier of the code_engine_job.
- image_
secret str - The name of the image registry access secret. The image registry access secret is used to authenticate with a private registry when you download the container image. If the image reference points to a registry that requires authentication, the job / job runs will be created but submitted job runs will fail, until this property is provided, too. This property must not be set on a job run, which references a job template.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?(\\.a-z0-9?)*$/
.
- Constraints: The maximum length is
- name str
- The name of the job.
- Constraints: The maximum length is
63
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?$/
.
- Constraints: The maximum length is
- run_
arguments Sequence[str] - Set arguments for the job that are passed to start job run containers. If not specified an empty string array will be applied and the arguments specified by the container image, will be used to start the container.
- Constraints: The list items must match regular expression
/^.*$/
. The maximum length is100
items. The minimum length is0
items.
- Constraints: The list items must match regular expression
- run_
as_ floatuser - The user ID (UID) to run the job (e.g., 1001).
- Constraints: The default value is
0
.
- Constraints: The default value is
- run_
commands Sequence[str] - Set commands for the job that are passed to start job run containers. If not specified an empty string array will be applied and the command specified by the container image, will be used to start the container.
- Constraints: The list items must match regular expression
/^.*$/
. The maximum length is100
items. The minimum length is0
items.
- Constraints: The list items must match regular expression
- run_
env_ Sequence[Codevariables Engine Job Run Env Variable Args] - References to config maps, secrets or literal values, which are exposed as environment variables in the job run.
- Constraints: The maximum length is
100
items. The minimum length is0
items. Nested schema for run_env_variables:
- Constraints: The maximum length is
- run_
mode str - The mode for runs of the job. Valid values are
task
anddaemon
. Intask
mode, themax_execution_time
andretry_limit
properties apply. Indaemon
mode, since there is no timeout and failed instances are restarted indefinitely, themax_execution_time
andretry_limit
properties are not allowed.- Constraints: The default value is
task
. Allowable values are:task
,daemon
. The minimum length is0
characters. The value must match regular expression/^(task|daemon)$/
.
- Constraints: The default value is
- run_
service_ straccount - The name of the service account. For built-in service accounts, you can use the shortened names
manager
,none
,reader
, andwriter
. This property must not be set on a job run, which references a job template.- Constraints: The default value is
default
. Allowable values are:default
,manager
,reader
,writer
,none
. The minimum length is0
characters. The value must match regular expression/^(manager|reader|writer|none|default)$/
.
- Constraints: The default value is
- run_
volume_ Sequence[Codemounts Engine Job Run Volume Mount Args] - Optional mounts of config maps or secrets.
- Constraints: The maximum length is
100
items. The minimum length is0
items. Nested schema for run_volume_mounts:
- Constraints: The maximum length is
- scale_
array_ strspec - Define a custom set of array indices as a comma-separated list containing single values and hyphen-separated ranges, such as 5,12-14,23,27. Each instance gets its array index value from the environment variable JOB_INDEX. The number of unique array indices that you specify with this parameter determines the number of job instances to run.
- Constraints: The default value is
0
. The maximum length is253
characters. The minimum length is1
character. The value must match regular expression/^(?:[1-9]\\d\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d|[1-9]\\d\\d\\d|[1-9]\\d\\d|[1-9]?\\d)(?:-(?:[1-9]\\d\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d|[1-9]\\d\\d\\d|[1-9]\\d\\d|[1-9]?\\d))?(?:,(?:[1-9]\\d\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d|[1-9]\\d\\d\\d|[1-9]\\d\\d|[1-9]?\\d)(?:-(?:[1-9]\\d\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d|[1-9]\\d\\d\\d|[1-9]\\d\\d|[1-9]?\\d))?)*$/
.
- Constraints: The default value is
- scale_
cpu_ strlimit - Optional amount of CPU set for the instance of the job. For valid values see Supported memory and CPU combinations.
- Constraints: The default value is
1
. The maximum length is10
characters. The minimum length is0
characters. The value must match regular expression/^([0-9.]+)([eEinumkKMGTPB]*)$/
.
- Constraints: The default value is
- scale_
ephemeral_ strstorage_ limit - Optional amount of ephemeral storage to set for the instance of the job. The amount specified as ephemeral storage, must not exceed the amount of
scale_memory_limit
. The units for specifying ephemeral storage are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see Units of measurement.- Constraints: The default value is
400M
. The maximum length is10
characters. The minimum length is0
characters. The value must match regular expression/^([0-9.]+)([eEinumkKMGTPB]*)$/
.
- Constraints: The default value is
- scale_
max_ floatexecution_ time - The maximum execution time in seconds for runs of the job. This property can only be specified if
run_mode
istask
.- Constraints: The default value is
7200
.
- Constraints: The default value is
- scale_
memory_ strlimit - Optional amount of memory set for the instance of the job. For valid values see Supported memory and CPU combinations. The units for specifying memory are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see Units of measurement.
- Constraints: The default value is
4G
. The maximum length is10
characters. The minimum length is0
characters. The value must match regular expression/^([0-9.]+)([eEinumkKMGTPB]*)$/
.
- Constraints: The default value is
- scale_
retry_ floatlimit - The number of times to rerun an instance of the job before the job is marked as failed. This property can only be specified if
run_mode
istask
.- Constraints: The default value is
3
.
- Constraints: The default value is
- image
Reference String - The name of the image that is used for this job. The format is
REGISTRY/NAMESPACE/REPOSITORY:TAG
whereREGISTRY
andTAG
are optional. IfREGISTRY
is not specified, the default isdocker.io
. IfTAG
is not specified, the default islatest
. If the image reference points to a registry that requires authentication, make sure to also specify the propertyimage_secret
.- Constraints: The maximum length is
256
characters. The minimum length is1
character. The value must match regular expression/^([a-z0-9][a-z0-9\\-_.]+[a-z0-9][\/])?([a-z0-9][a-z0-9\\-_]+[a-z0-9][\/])?[a-z0-9][a-z0-9\\-_.\/]+a-z0-9?(@sha256:[a-fA-F0-9]{64})?$/
.
- Constraints: The maximum length is
- project
Id String - The ID of the project.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/
.
- Constraints: The maximum length is
- code
Engine StringJob Id - The unique identifier of the code_engine_job.
- image
Secret String - The name of the image registry access secret. The image registry access secret is used to authenticate with a private registry when you download the container image. If the image reference points to a registry that requires authentication, the job / job runs will be created but submitted job runs will fail, until this property is provided, too. This property must not be set on a job run, which references a job template.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?(\\.a-z0-9?)*$/
.
- Constraints: The maximum length is
- name String
- The name of the job.
- Constraints: The maximum length is
63
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?$/
.
- Constraints: The maximum length is
- run
Arguments List<String> - Set arguments for the job that are passed to start job run containers. If not specified an empty string array will be applied and the arguments specified by the container image, will be used to start the container.
- Constraints: The list items must match regular expression
/^.*$/
. The maximum length is100
items. The minimum length is0
items.
- Constraints: The list items must match regular expression
- run
As NumberUser - The user ID (UID) to run the job (e.g., 1001).
- Constraints: The default value is
0
.
- Constraints: The default value is
- run
Commands List<String> - Set commands for the job that are passed to start job run containers. If not specified an empty string array will be applied and the command specified by the container image, will be used to start the container.
- Constraints: The list items must match regular expression
/^.*$/
. The maximum length is100
items. The minimum length is0
items.
- Constraints: The list items must match regular expression
- run
Env List<Property Map>Variables - References to config maps, secrets or literal values, which are exposed as environment variables in the job run.
- Constraints: The maximum length is
100
items. The minimum length is0
items. Nested schema for run_env_variables:
- Constraints: The maximum length is
- run
Mode String - The mode for runs of the job. Valid values are
task
anddaemon
. Intask
mode, themax_execution_time
andretry_limit
properties apply. Indaemon
mode, since there is no timeout and failed instances are restarted indefinitely, themax_execution_time
andretry_limit
properties are not allowed.- Constraints: The default value is
task
. Allowable values are:task
,daemon
. The minimum length is0
characters. The value must match regular expression/^(task|daemon)$/
.
- Constraints: The default value is
- run
Service StringAccount - The name of the service account. For built-in service accounts, you can use the shortened names
manager
,none
,reader
, andwriter
. This property must not be set on a job run, which references a job template.- Constraints: The default value is
default
. Allowable values are:default
,manager
,reader
,writer
,none
. The minimum length is0
characters. The value must match regular expression/^(manager|reader|writer|none|default)$/
.
- Constraints: The default value is
- run
Volume List<Property Map>Mounts - Optional mounts of config maps or secrets.
- Constraints: The maximum length is
100
items. The minimum length is0
items. Nested schema for run_volume_mounts:
- Constraints: The maximum length is
- scale
Array StringSpec - Define a custom set of array indices as a comma-separated list containing single values and hyphen-separated ranges, such as 5,12-14,23,27. Each instance gets its array index value from the environment variable JOB_INDEX. The number of unique array indices that you specify with this parameter determines the number of job instances to run.
- Constraints: The default value is
0
. The maximum length is253
characters. The minimum length is1
character. The value must match regular expression/^(?:[1-9]\\d\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d|[1-9]\\d\\d\\d|[1-9]\\d\\d|[1-9]?\\d)(?:-(?:[1-9]\\d\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d|[1-9]\\d\\d\\d|[1-9]\\d\\d|[1-9]?\\d))?(?:,(?:[1-9]\\d\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d|[1-9]\\d\\d\\d|[1-9]\\d\\d|[1-9]?\\d)(?:-(?:[1-9]\\d\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d|[1-9]\\d\\d\\d|[1-9]\\d\\d|[1-9]?\\d))?)*$/
.
- Constraints: The default value is
- scale
Cpu StringLimit - Optional amount of CPU set for the instance of the job. For valid values see Supported memory and CPU combinations.
- Constraints: The default value is
1
. The maximum length is10
characters. The minimum length is0
characters. The value must match regular expression/^([0-9.]+)([eEinumkKMGTPB]*)$/
.
- Constraints: The default value is
- scale
Ephemeral StringStorage Limit - Optional amount of ephemeral storage to set for the instance of the job. The amount specified as ephemeral storage, must not exceed the amount of
scale_memory_limit
. The units for specifying ephemeral storage are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see Units of measurement.- Constraints: The default value is
400M
. The maximum length is10
characters. The minimum length is0
characters. The value must match regular expression/^([0-9.]+)([eEinumkKMGTPB]*)$/
.
- Constraints: The default value is
- scale
Max NumberExecution Time - The maximum execution time in seconds for runs of the job. This property can only be specified if
run_mode
istask
.- Constraints: The default value is
7200
.
- Constraints: The default value is
- scale
Memory StringLimit - Optional amount of memory set for the instance of the job. For valid values see Supported memory and CPU combinations. The units for specifying memory are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see Units of measurement.
- Constraints: The default value is
4G
. The maximum length is10
characters. The minimum length is0
characters. The value must match regular expression/^([0-9.]+)([eEinumkKMGTPB]*)$/
.
- Constraints: The default value is
- scale
Retry NumberLimit - The number of times to rerun an instance of the job before the job is marked as failed. This property can only be specified if
run_mode
istask
.- Constraints: The default value is
3
.
- Constraints: The default value is
Outputs
All input properties are implicitly available as output properties. Additionally, the CodeEngineJob resource produces the following output properties:
- Build string
- (String) Reference to a build that is associated with the job.
- Build
Run string - (String) Reference to a build run that is associated with the job.
- Computed
Env List<CodeVariables Engine Job Computed Env Variable> - (List) References to config maps, secrets or literal values, which are defined and set by Code Engine and are exposed as environment variables in the job run.
- Constraints: The maximum length is
100
items. The minimum length is0
items. Nested schema for computed_env_variables:
- Constraints: The maximum length is
- Created
At string - (String) The timestamp when the resource was created.
- Entity
Tag string - (String) The version of the job instance, which is used to achieve optimistic locking.
- Constraints: The maximum length is
63
characters. The minimum length is1
character. The value must match regular expression/^[\\*\\-a-z0-9]+$/
.
- Constraints: The maximum length is
- Etag string
- ETag identifier for code_engine_job.
- Href string
- (String) When you provision a new job, a URL is created identifying the location of the instance.
- Constraints: The maximum length is
2048
characters. The minimum length is0
characters. The value must match regular expression/(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/
.
- Constraints: The maximum length is
- Id string
- The provider-assigned unique ID for this managed resource.
- Job
Id string - (String) The identifier of the resource.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/
.
- Constraints: The maximum length is
- Region string
- (String) The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.
- Resource
Type string - (String) The type of the job.
- Constraints: Allowable values are:
job_v2
.
- Constraints: Allowable values are:
- Build string
- (String) Reference to a build that is associated with the job.
- Build
Run string - (String) Reference to a build run that is associated with the job.
- Computed
Env []CodeVariables Engine Job Computed Env Variable - (List) References to config maps, secrets or literal values, which are defined and set by Code Engine and are exposed as environment variables in the job run.
- Constraints: The maximum length is
100
items. The minimum length is0
items. Nested schema for computed_env_variables:
- Constraints: The maximum length is
- Created
At string - (String) The timestamp when the resource was created.
- Entity
Tag string - (String) The version of the job instance, which is used to achieve optimistic locking.
- Constraints: The maximum length is
63
characters. The minimum length is1
character. The value must match regular expression/^[\\*\\-a-z0-9]+$/
.
- Constraints: The maximum length is
- Etag string
- ETag identifier for code_engine_job.
- Href string
- (String) When you provision a new job, a URL is created identifying the location of the instance.
- Constraints: The maximum length is
2048
characters. The minimum length is0
characters. The value must match regular expression/(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/
.
- Constraints: The maximum length is
- Id string
- The provider-assigned unique ID for this managed resource.
- Job
Id string - (String) The identifier of the resource.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/
.
- Constraints: The maximum length is
- Region string
- (String) The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.
- Resource
Type string - (String) The type of the job.
- Constraints: Allowable values are:
job_v2
.
- Constraints: Allowable values are:
- build String
- (String) Reference to a build that is associated with the job.
- build
Run String - (String) Reference to a build run that is associated with the job.
- computed
Env List<CodeVariables Engine Job Computed Env Variable> - (List) References to config maps, secrets or literal values, which are defined and set by Code Engine and are exposed as environment variables in the job run.
- Constraints: The maximum length is
100
items. The minimum length is0
items. Nested schema for computed_env_variables:
- Constraints: The maximum length is
- created
At String - (String) The timestamp when the resource was created.
- entity
Tag String - (String) The version of the job instance, which is used to achieve optimistic locking.
- Constraints: The maximum length is
63
characters. The minimum length is1
character. The value must match regular expression/^[\\*\\-a-z0-9]+$/
.
- Constraints: The maximum length is
- etag String
- ETag identifier for code_engine_job.
- href String
- (String) When you provision a new job, a URL is created identifying the location of the instance.
- Constraints: The maximum length is
2048
characters. The minimum length is0
characters. The value must match regular expression/(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/
.
- Constraints: The maximum length is
- id String
- The provider-assigned unique ID for this managed resource.
- job
Id String - (String) The identifier of the resource.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/
.
- Constraints: The maximum length is
- region String
- (String) The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.
- resource
Type String - (String) The type of the job.
- Constraints: Allowable values are:
job_v2
.
- Constraints: Allowable values are:
- build string
- (String) Reference to a build that is associated with the job.
- build
Run string - (String) Reference to a build run that is associated with the job.
- computed
Env CodeVariables Engine Job Computed Env Variable[] - (List) References to config maps, secrets or literal values, which are defined and set by Code Engine and are exposed as environment variables in the job run.
- Constraints: The maximum length is
100
items. The minimum length is0
items. Nested schema for computed_env_variables:
- Constraints: The maximum length is
- created
At string - (String) The timestamp when the resource was created.
- entity
Tag string - (String) The version of the job instance, which is used to achieve optimistic locking.
- Constraints: The maximum length is
63
characters. The minimum length is1
character. The value must match regular expression/^[\\*\\-a-z0-9]+$/
.
- Constraints: The maximum length is
- etag string
- ETag identifier for code_engine_job.
- href string
- (String) When you provision a new job, a URL is created identifying the location of the instance.
- Constraints: The maximum length is
2048
characters. The minimum length is0
characters. The value must match regular expression/(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/
.
- Constraints: The maximum length is
- id string
- The provider-assigned unique ID for this managed resource.
- job
Id string - (String) The identifier of the resource.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/
.
- Constraints: The maximum length is
- region string
- (String) The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.
- resource
Type string - (String) The type of the job.
- Constraints: Allowable values are:
job_v2
.
- Constraints: Allowable values are:
- build str
- (String) Reference to a build that is associated with the job.
- build_
run str - (String) Reference to a build run that is associated with the job.
- computed_
env_ Sequence[Codevariables Engine Job Computed Env Variable] - (List) References to config maps, secrets or literal values, which are defined and set by Code Engine and are exposed as environment variables in the job run.
- Constraints: The maximum length is
100
items. The minimum length is0
items. Nested schema for computed_env_variables:
- Constraints: The maximum length is
- created_
at str - (String) The timestamp when the resource was created.
- entity_
tag str - (String) The version of the job instance, which is used to achieve optimistic locking.
- Constraints: The maximum length is
63
characters. The minimum length is1
character. The value must match regular expression/^[\\*\\-a-z0-9]+$/
.
- Constraints: The maximum length is
- etag str
- ETag identifier for code_engine_job.
- href str
- (String) When you provision a new job, a URL is created identifying the location of the instance.
- Constraints: The maximum length is
2048
characters. The minimum length is0
characters. The value must match regular expression/(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/
.
- Constraints: The maximum length is
- id str
- The provider-assigned unique ID for this managed resource.
- job_
id str - (String) The identifier of the resource.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/
.
- Constraints: The maximum length is
- region str
- (String) The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.
- resource_
type str - (String) The type of the job.
- Constraints: Allowable values are:
job_v2
.
- Constraints: Allowable values are:
- build String
- (String) Reference to a build that is associated with the job.
- build
Run String - (String) Reference to a build run that is associated with the job.
- computed
Env List<Property Map>Variables - (List) References to config maps, secrets or literal values, which are defined and set by Code Engine and are exposed as environment variables in the job run.
- Constraints: The maximum length is
100
items. The minimum length is0
items. Nested schema for computed_env_variables:
- Constraints: The maximum length is
- created
At String - (String) The timestamp when the resource was created.
- entity
Tag String - (String) The version of the job instance, which is used to achieve optimistic locking.
- Constraints: The maximum length is
63
characters. The minimum length is1
character. The value must match regular expression/^[\\*\\-a-z0-9]+$/
.
- Constraints: The maximum length is
- etag String
- ETag identifier for code_engine_job.
- href String
- (String) When you provision a new job, a URL is created identifying the location of the instance.
- Constraints: The maximum length is
2048
characters. The minimum length is0
characters. The value must match regular expression/(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/
.
- Constraints: The maximum length is
- id String
- The provider-assigned unique ID for this managed resource.
- job
Id String - (String) The identifier of the resource.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/
.
- Constraints: The maximum length is
- region String
- (String) The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.
- resource
Type String - (String) The type of the job.
- Constraints: Allowable values are:
job_v2
.
- Constraints: Allowable values are:
Look up Existing CodeEngineJob Resource
Get an existing CodeEngineJob resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: CodeEngineJobState, opts?: CustomResourceOptions): CodeEngineJob
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
build: Optional[str] = None,
build_run: Optional[str] = None,
code_engine_job_id: Optional[str] = None,
computed_env_variables: Optional[Sequence[CodeEngineJobComputedEnvVariableArgs]] = None,
created_at: Optional[str] = None,
entity_tag: Optional[str] = None,
etag: Optional[str] = None,
href: Optional[str] = None,
image_reference: Optional[str] = None,
image_secret: Optional[str] = None,
job_id: Optional[str] = None,
name: Optional[str] = None,
project_id: Optional[str] = None,
region: Optional[str] = None,
resource_type: Optional[str] = None,
run_arguments: Optional[Sequence[str]] = None,
run_as_user: Optional[float] = None,
run_commands: Optional[Sequence[str]] = None,
run_env_variables: Optional[Sequence[CodeEngineJobRunEnvVariableArgs]] = None,
run_mode: Optional[str] = None,
run_service_account: Optional[str] = None,
run_volume_mounts: Optional[Sequence[CodeEngineJobRunVolumeMountArgs]] = None,
scale_array_spec: Optional[str] = None,
scale_cpu_limit: Optional[str] = None,
scale_ephemeral_storage_limit: Optional[str] = None,
scale_max_execution_time: Optional[float] = None,
scale_memory_limit: Optional[str] = None,
scale_retry_limit: Optional[float] = None) -> CodeEngineJob
func GetCodeEngineJob(ctx *Context, name string, id IDInput, state *CodeEngineJobState, opts ...ResourceOption) (*CodeEngineJob, error)
public static CodeEngineJob Get(string name, Input<string> id, CodeEngineJobState? state, CustomResourceOptions? opts = null)
public static CodeEngineJob get(String name, Output<String> id, CodeEngineJobState state, CustomResourceOptions options)
resources: _: type: ibm:CodeEngineJob get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Build string
- (String) Reference to a build that is associated with the job.
- Build
Run string - (String) Reference to a build run that is associated with the job.
- Code
Engine stringJob Id - The unique identifier of the code_engine_job.
- Computed
Env List<CodeVariables Engine Job Computed Env Variable> - (List) References to config maps, secrets or literal values, which are defined and set by Code Engine and are exposed as environment variables in the job run.
- Constraints: The maximum length is
100
items. The minimum length is0
items. Nested schema for computed_env_variables:
- Constraints: The maximum length is
- Created
At string - (String) The timestamp when the resource was created.
- Entity
Tag string - (String) The version of the job instance, which is used to achieve optimistic locking.
- Constraints: The maximum length is
63
characters. The minimum length is1
character. The value must match regular expression/^[\\*\\-a-z0-9]+$/
.
- Constraints: The maximum length is
- Etag string
- ETag identifier for code_engine_job.
- Href string
- (String) When you provision a new job, a URL is created identifying the location of the instance.
- Constraints: The maximum length is
2048
characters. The minimum length is0
characters. The value must match regular expression/(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/
.
- Constraints: The maximum length is
- Image
Reference string - The name of the image that is used for this job. The format is
REGISTRY/NAMESPACE/REPOSITORY:TAG
whereREGISTRY
andTAG
are optional. IfREGISTRY
is not specified, the default isdocker.io
. IfTAG
is not specified, the default islatest
. If the image reference points to a registry that requires authentication, make sure to also specify the propertyimage_secret
.- Constraints: The maximum length is
256
characters. The minimum length is1
character. The value must match regular expression/^([a-z0-9][a-z0-9\\-_.]+[a-z0-9][\/])?([a-z0-9][a-z0-9\\-_]+[a-z0-9][\/])?[a-z0-9][a-z0-9\\-_.\/]+a-z0-9?(@sha256:[a-fA-F0-9]{64})?$/
.
- Constraints: The maximum length is
- Image
Secret string - The name of the image registry access secret. The image registry access secret is used to authenticate with a private registry when you download the container image. If the image reference points to a registry that requires authentication, the job / job runs will be created but submitted job runs will fail, until this property is provided, too. This property must not be set on a job run, which references a job template.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?(\\.a-z0-9?)*$/
.
- Constraints: The maximum length is
- Job
Id string - (String) The identifier of the resource.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/
.
- Constraints: The maximum length is
- Name string
- The name of the job.
- Constraints: The maximum length is
63
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?$/
.
- Constraints: The maximum length is
- Project
Id string - The ID of the project.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/
.
- Constraints: The maximum length is
- Region string
- (String) The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.
- Resource
Type string - (String) The type of the job.
- Constraints: Allowable values are:
job_v2
.
- Constraints: Allowable values are:
- Run
Arguments List<string> - Set arguments for the job that are passed to start job run containers. If not specified an empty string array will be applied and the arguments specified by the container image, will be used to start the container.
- Constraints: The list items must match regular expression
/^.*$/
. The maximum length is100
items. The minimum length is0
items.
- Constraints: The list items must match regular expression
- Run
As doubleUser - The user ID (UID) to run the job (e.g., 1001).
- Constraints: The default value is
0
.
- Constraints: The default value is
- Run
Commands List<string> - Set commands for the job that are passed to start job run containers. If not specified an empty string array will be applied and the command specified by the container image, will be used to start the container.
- Constraints: The list items must match regular expression
/^.*$/
. The maximum length is100
items. The minimum length is0
items.
- Constraints: The list items must match regular expression
- Run
Env List<CodeVariables Engine Job Run Env Variable> - References to config maps, secrets or literal values, which are exposed as environment variables in the job run.
- Constraints: The maximum length is
100
items. The minimum length is0
items. Nested schema for run_env_variables:
- Constraints: The maximum length is
- Run
Mode string - The mode for runs of the job. Valid values are
task
anddaemon
. Intask
mode, themax_execution_time
andretry_limit
properties apply. Indaemon
mode, since there is no timeout and failed instances are restarted indefinitely, themax_execution_time
andretry_limit
properties are not allowed.- Constraints: The default value is
task
. Allowable values are:task
,daemon
. The minimum length is0
characters. The value must match regular expression/^(task|daemon)$/
.
- Constraints: The default value is
- Run
Service stringAccount - The name of the service account. For built-in service accounts, you can use the shortened names
manager
,none
,reader
, andwriter
. This property must not be set on a job run, which references a job template.- Constraints: The default value is
default
. Allowable values are:default
,manager
,reader
,writer
,none
. The minimum length is0
characters. The value must match regular expression/^(manager|reader|writer|none|default)$/
.
- Constraints: The default value is
- Run
Volume List<CodeMounts Engine Job Run Volume Mount> - Optional mounts of config maps or secrets.
- Constraints: The maximum length is
100
items. The minimum length is0
items. Nested schema for run_volume_mounts:
- Constraints: The maximum length is
- Scale
Array stringSpec - Define a custom set of array indices as a comma-separated list containing single values and hyphen-separated ranges, such as 5,12-14,23,27. Each instance gets its array index value from the environment variable JOB_INDEX. The number of unique array indices that you specify with this parameter determines the number of job instances to run.
- Constraints: The default value is
0
. The maximum length is253
characters. The minimum length is1
character. The value must match regular expression/^(?:[1-9]\\d\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d|[1-9]\\d\\d\\d|[1-9]\\d\\d|[1-9]?\\d)(?:-(?:[1-9]\\d\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d|[1-9]\\d\\d\\d|[1-9]\\d\\d|[1-9]?\\d))?(?:,(?:[1-9]\\d\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d|[1-9]\\d\\d\\d|[1-9]\\d\\d|[1-9]?\\d)(?:-(?:[1-9]\\d\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d|[1-9]\\d\\d\\d|[1-9]\\d\\d|[1-9]?\\d))?)*$/
.
- Constraints: The default value is
- Scale
Cpu stringLimit - Optional amount of CPU set for the instance of the job. For valid values see Supported memory and CPU combinations.
- Constraints: The default value is
1
. The maximum length is10
characters. The minimum length is0
characters. The value must match regular expression/^([0-9.]+)([eEinumkKMGTPB]*)$/
.
- Constraints: The default value is
- Scale
Ephemeral stringStorage Limit - Optional amount of ephemeral storage to set for the instance of the job. The amount specified as ephemeral storage, must not exceed the amount of
scale_memory_limit
. The units for specifying ephemeral storage are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see Units of measurement.- Constraints: The default value is
400M
. The maximum length is10
characters. The minimum length is0
characters. The value must match regular expression/^([0-9.]+)([eEinumkKMGTPB]*)$/
.
- Constraints: The default value is
- Scale
Max doubleExecution Time - The maximum execution time in seconds for runs of the job. This property can only be specified if
run_mode
istask
.- Constraints: The default value is
7200
.
- Constraints: The default value is
- Scale
Memory stringLimit - Optional amount of memory set for the instance of the job. For valid values see Supported memory and CPU combinations. The units for specifying memory are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see Units of measurement.
- Constraints: The default value is
4G
. The maximum length is10
characters. The minimum length is0
characters. The value must match regular expression/^([0-9.]+)([eEinumkKMGTPB]*)$/
.
- Constraints: The default value is
- Scale
Retry doubleLimit - The number of times to rerun an instance of the job before the job is marked as failed. This property can only be specified if
run_mode
istask
.- Constraints: The default value is
3
.
- Constraints: The default value is
- Build string
- (String) Reference to a build that is associated with the job.
- Build
Run string - (String) Reference to a build run that is associated with the job.
- Code
Engine stringJob Id - The unique identifier of the code_engine_job.
- Computed
Env []CodeVariables Engine Job Computed Env Variable Args - (List) References to config maps, secrets or literal values, which are defined and set by Code Engine and are exposed as environment variables in the job run.
- Constraints: The maximum length is
100
items. The minimum length is0
items. Nested schema for computed_env_variables:
- Constraints: The maximum length is
- Created
At string - (String) The timestamp when the resource was created.
- Entity
Tag string - (String) The version of the job instance, which is used to achieve optimistic locking.
- Constraints: The maximum length is
63
characters. The minimum length is1
character. The value must match regular expression/^[\\*\\-a-z0-9]+$/
.
- Constraints: The maximum length is
- Etag string
- ETag identifier for code_engine_job.
- Href string
- (String) When you provision a new job, a URL is created identifying the location of the instance.
- Constraints: The maximum length is
2048
characters. The minimum length is0
characters. The value must match regular expression/(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/
.
- Constraints: The maximum length is
- Image
Reference string - The name of the image that is used for this job. The format is
REGISTRY/NAMESPACE/REPOSITORY:TAG
whereREGISTRY
andTAG
are optional. IfREGISTRY
is not specified, the default isdocker.io
. IfTAG
is not specified, the default islatest
. If the image reference points to a registry that requires authentication, make sure to also specify the propertyimage_secret
.- Constraints: The maximum length is
256
characters. The minimum length is1
character. The value must match regular expression/^([a-z0-9][a-z0-9\\-_.]+[a-z0-9][\/])?([a-z0-9][a-z0-9\\-_]+[a-z0-9][\/])?[a-z0-9][a-z0-9\\-_.\/]+a-z0-9?(@sha256:[a-fA-F0-9]{64})?$/
.
- Constraints: The maximum length is
- Image
Secret string - The name of the image registry access secret. The image registry access secret is used to authenticate with a private registry when you download the container image. If the image reference points to a registry that requires authentication, the job / job runs will be created but submitted job runs will fail, until this property is provided, too. This property must not be set on a job run, which references a job template.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?(\\.a-z0-9?)*$/
.
- Constraints: The maximum length is
- Job
Id string - (String) The identifier of the resource.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/
.
- Constraints: The maximum length is
- Name string
- The name of the job.
- Constraints: The maximum length is
63
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?$/
.
- Constraints: The maximum length is
- Project
Id string - The ID of the project.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/
.
- Constraints: The maximum length is
- Region string
- (String) The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.
- Resource
Type string - (String) The type of the job.
- Constraints: Allowable values are:
job_v2
.
- Constraints: Allowable values are:
- Run
Arguments []string - Set arguments for the job that are passed to start job run containers. If not specified an empty string array will be applied and the arguments specified by the container image, will be used to start the container.
- Constraints: The list items must match regular expression
/^.*$/
. The maximum length is100
items. The minimum length is0
items.
- Constraints: The list items must match regular expression
- Run
As float64User - The user ID (UID) to run the job (e.g., 1001).
- Constraints: The default value is
0
.
- Constraints: The default value is
- Run
Commands []string - Set commands for the job that are passed to start job run containers. If not specified an empty string array will be applied and the command specified by the container image, will be used to start the container.
- Constraints: The list items must match regular expression
/^.*$/
. The maximum length is100
items. The minimum length is0
items.
- Constraints: The list items must match regular expression
- Run
Env []CodeVariables Engine Job Run Env Variable Args - References to config maps, secrets or literal values, which are exposed as environment variables in the job run.
- Constraints: The maximum length is
100
items. The minimum length is0
items. Nested schema for run_env_variables:
- Constraints: The maximum length is
- Run
Mode string - The mode for runs of the job. Valid values are
task
anddaemon
. Intask
mode, themax_execution_time
andretry_limit
properties apply. Indaemon
mode, since there is no timeout and failed instances are restarted indefinitely, themax_execution_time
andretry_limit
properties are not allowed.- Constraints: The default value is
task
. Allowable values are:task
,daemon
. The minimum length is0
characters. The value must match regular expression/^(task|daemon)$/
.
- Constraints: The default value is
- Run
Service stringAccount - The name of the service account. For built-in service accounts, you can use the shortened names
manager
,none
,reader
, andwriter
. This property must not be set on a job run, which references a job template.- Constraints: The default value is
default
. Allowable values are:default
,manager
,reader
,writer
,none
. The minimum length is0
characters. The value must match regular expression/^(manager|reader|writer|none|default)$/
.
- Constraints: The default value is
- Run
Volume []CodeMounts Engine Job Run Volume Mount Args - Optional mounts of config maps or secrets.
- Constraints: The maximum length is
100
items. The minimum length is0
items. Nested schema for run_volume_mounts:
- Constraints: The maximum length is
- Scale
Array stringSpec - Define a custom set of array indices as a comma-separated list containing single values and hyphen-separated ranges, such as 5,12-14,23,27. Each instance gets its array index value from the environment variable JOB_INDEX. The number of unique array indices that you specify with this parameter determines the number of job instances to run.
- Constraints: The default value is
0
. The maximum length is253
characters. The minimum length is1
character. The value must match regular expression/^(?:[1-9]\\d\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d|[1-9]\\d\\d\\d|[1-9]\\d\\d|[1-9]?\\d)(?:-(?:[1-9]\\d\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d|[1-9]\\d\\d\\d|[1-9]\\d\\d|[1-9]?\\d))?(?:,(?:[1-9]\\d\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d|[1-9]\\d\\d\\d|[1-9]\\d\\d|[1-9]?\\d)(?:-(?:[1-9]\\d\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d|[1-9]\\d\\d\\d|[1-9]\\d\\d|[1-9]?\\d))?)*$/
.
- Constraints: The default value is
- Scale
Cpu stringLimit - Optional amount of CPU set for the instance of the job. For valid values see Supported memory and CPU combinations.
- Constraints: The default value is
1
. The maximum length is10
characters. The minimum length is0
characters. The value must match regular expression/^([0-9.]+)([eEinumkKMGTPB]*)$/
.
- Constraints: The default value is
- Scale
Ephemeral stringStorage Limit - Optional amount of ephemeral storage to set for the instance of the job. The amount specified as ephemeral storage, must not exceed the amount of
scale_memory_limit
. The units for specifying ephemeral storage are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see Units of measurement.- Constraints: The default value is
400M
. The maximum length is10
characters. The minimum length is0
characters. The value must match regular expression/^([0-9.]+)([eEinumkKMGTPB]*)$/
.
- Constraints: The default value is
- Scale
Max float64Execution Time - The maximum execution time in seconds for runs of the job. This property can only be specified if
run_mode
istask
.- Constraints: The default value is
7200
.
- Constraints: The default value is
- Scale
Memory stringLimit - Optional amount of memory set for the instance of the job. For valid values see Supported memory and CPU combinations. The units for specifying memory are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see Units of measurement.
- Constraints: The default value is
4G
. The maximum length is10
characters. The minimum length is0
characters. The value must match regular expression/^([0-9.]+)([eEinumkKMGTPB]*)$/
.
- Constraints: The default value is
- Scale
Retry float64Limit - The number of times to rerun an instance of the job before the job is marked as failed. This property can only be specified if
run_mode
istask
.- Constraints: The default value is
3
.
- Constraints: The default value is
- build String
- (String) Reference to a build that is associated with the job.
- build
Run String - (String) Reference to a build run that is associated with the job.
- code
Engine StringJob Id - The unique identifier of the code_engine_job.
- computed
Env List<CodeVariables Engine Job Computed Env Variable> - (List) References to config maps, secrets or literal values, which are defined and set by Code Engine and are exposed as environment variables in the job run.
- Constraints: The maximum length is
100
items. The minimum length is0
items. Nested schema for computed_env_variables:
- Constraints: The maximum length is
- created
At String - (String) The timestamp when the resource was created.
- entity
Tag String - (String) The version of the job instance, which is used to achieve optimistic locking.
- Constraints: The maximum length is
63
characters. The minimum length is1
character. The value must match regular expression/^[\\*\\-a-z0-9]+$/
.
- Constraints: The maximum length is
- etag String
- ETag identifier for code_engine_job.
- href String
- (String) When you provision a new job, a URL is created identifying the location of the instance.
- Constraints: The maximum length is
2048
characters. The minimum length is0
characters. The value must match regular expression/(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/
.
- Constraints: The maximum length is
- image
Reference String - The name of the image that is used for this job. The format is
REGISTRY/NAMESPACE/REPOSITORY:TAG
whereREGISTRY
andTAG
are optional. IfREGISTRY
is not specified, the default isdocker.io
. IfTAG
is not specified, the default islatest
. If the image reference points to a registry that requires authentication, make sure to also specify the propertyimage_secret
.- Constraints: The maximum length is
256
characters. The minimum length is1
character. The value must match regular expression/^([a-z0-9][a-z0-9\\-_.]+[a-z0-9][\/])?([a-z0-9][a-z0-9\\-_]+[a-z0-9][\/])?[a-z0-9][a-z0-9\\-_.\/]+a-z0-9?(@sha256:[a-fA-F0-9]{64})?$/
.
- Constraints: The maximum length is
- image
Secret String - The name of the image registry access secret. The image registry access secret is used to authenticate with a private registry when you download the container image. If the image reference points to a registry that requires authentication, the job / job runs will be created but submitted job runs will fail, until this property is provided, too. This property must not be set on a job run, which references a job template.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?(\\.a-z0-9?)*$/
.
- Constraints: The maximum length is
- job
Id String - (String) The identifier of the resource.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/
.
- Constraints: The maximum length is
- name String
- The name of the job.
- Constraints: The maximum length is
63
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?$/
.
- Constraints: The maximum length is
- project
Id String - The ID of the project.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/
.
- Constraints: The maximum length is
- region String
- (String) The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.
- resource
Type String - (String) The type of the job.
- Constraints: Allowable values are:
job_v2
.
- Constraints: Allowable values are:
- run
Arguments List<String> - Set arguments for the job that are passed to start job run containers. If not specified an empty string array will be applied and the arguments specified by the container image, will be used to start the container.
- Constraints: The list items must match regular expression
/^.*$/
. The maximum length is100
items. The minimum length is0
items.
- Constraints: The list items must match regular expression
- run
As DoubleUser - The user ID (UID) to run the job (e.g., 1001).
- Constraints: The default value is
0
.
- Constraints: The default value is
- run
Commands List<String> - Set commands for the job that are passed to start job run containers. If not specified an empty string array will be applied and the command specified by the container image, will be used to start the container.
- Constraints: The list items must match regular expression
/^.*$/
. The maximum length is100
items. The minimum length is0
items.
- Constraints: The list items must match regular expression
- run
Env List<CodeVariables Engine Job Run Env Variable> - References to config maps, secrets or literal values, which are exposed as environment variables in the job run.
- Constraints: The maximum length is
100
items. The minimum length is0
items. Nested schema for run_env_variables:
- Constraints: The maximum length is
- run
Mode String - The mode for runs of the job. Valid values are
task
anddaemon
. Intask
mode, themax_execution_time
andretry_limit
properties apply. Indaemon
mode, since there is no timeout and failed instances are restarted indefinitely, themax_execution_time
andretry_limit
properties are not allowed.- Constraints: The default value is
task
. Allowable values are:task
,daemon
. The minimum length is0
characters. The value must match regular expression/^(task|daemon)$/
.
- Constraints: The default value is
- run
Service StringAccount - The name of the service account. For built-in service accounts, you can use the shortened names
manager
,none
,reader
, andwriter
. This property must not be set on a job run, which references a job template.- Constraints: The default value is
default
. Allowable values are:default
,manager
,reader
,writer
,none
. The minimum length is0
characters. The value must match regular expression/^(manager|reader|writer|none|default)$/
.
- Constraints: The default value is
- run
Volume List<CodeMounts Engine Job Run Volume Mount> - Optional mounts of config maps or secrets.
- Constraints: The maximum length is
100
items. The minimum length is0
items. Nested schema for run_volume_mounts:
- Constraints: The maximum length is
- scale
Array StringSpec - Define a custom set of array indices as a comma-separated list containing single values and hyphen-separated ranges, such as 5,12-14,23,27. Each instance gets its array index value from the environment variable JOB_INDEX. The number of unique array indices that you specify with this parameter determines the number of job instances to run.
- Constraints: The default value is
0
. The maximum length is253
characters. The minimum length is1
character. The value must match regular expression/^(?:[1-9]\\d\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d|[1-9]\\d\\d\\d|[1-9]\\d\\d|[1-9]?\\d)(?:-(?:[1-9]\\d\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d|[1-9]\\d\\d\\d|[1-9]\\d\\d|[1-9]?\\d))?(?:,(?:[1-9]\\d\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d|[1-9]\\d\\d\\d|[1-9]\\d\\d|[1-9]?\\d)(?:-(?:[1-9]\\d\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d|[1-9]\\d\\d\\d|[1-9]\\d\\d|[1-9]?\\d))?)*$/
.
- Constraints: The default value is
- scale
Cpu StringLimit - Optional amount of CPU set for the instance of the job. For valid values see Supported memory and CPU combinations.
- Constraints: The default value is
1
. The maximum length is10
characters. The minimum length is0
characters. The value must match regular expression/^([0-9.]+)([eEinumkKMGTPB]*)$/
.
- Constraints: The default value is
- scale
Ephemeral StringStorage Limit - Optional amount of ephemeral storage to set for the instance of the job. The amount specified as ephemeral storage, must not exceed the amount of
scale_memory_limit
. The units for specifying ephemeral storage are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see Units of measurement.- Constraints: The default value is
400M
. The maximum length is10
characters. The minimum length is0
characters. The value must match regular expression/^([0-9.]+)([eEinumkKMGTPB]*)$/
.
- Constraints: The default value is
- scale
Max DoubleExecution Time - The maximum execution time in seconds for runs of the job. This property can only be specified if
run_mode
istask
.- Constraints: The default value is
7200
.
- Constraints: The default value is
- scale
Memory StringLimit - Optional amount of memory set for the instance of the job. For valid values see Supported memory and CPU combinations. The units for specifying memory are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see Units of measurement.
- Constraints: The default value is
4G
. The maximum length is10
characters. The minimum length is0
characters. The value must match regular expression/^([0-9.]+)([eEinumkKMGTPB]*)$/
.
- Constraints: The default value is
- scale
Retry DoubleLimit - The number of times to rerun an instance of the job before the job is marked as failed. This property can only be specified if
run_mode
istask
.- Constraints: The default value is
3
.
- Constraints: The default value is
- build string
- (String) Reference to a build that is associated with the job.
- build
Run string - (String) Reference to a build run that is associated with the job.
- code
Engine stringJob Id - The unique identifier of the code_engine_job.
- computed
Env CodeVariables Engine Job Computed Env Variable[] - (List) References to config maps, secrets or literal values, which are defined and set by Code Engine and are exposed as environment variables in the job run.
- Constraints: The maximum length is
100
items. The minimum length is0
items. Nested schema for computed_env_variables:
- Constraints: The maximum length is
- created
At string - (String) The timestamp when the resource was created.
- entity
Tag string - (String) The version of the job instance, which is used to achieve optimistic locking.
- Constraints: The maximum length is
63
characters. The minimum length is1
character. The value must match regular expression/^[\\*\\-a-z0-9]+$/
.
- Constraints: The maximum length is
- etag string
- ETag identifier for code_engine_job.
- href string
- (String) When you provision a new job, a URL is created identifying the location of the instance.
- Constraints: The maximum length is
2048
characters. The minimum length is0
characters. The value must match regular expression/(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/
.
- Constraints: The maximum length is
- image
Reference string - The name of the image that is used for this job. The format is
REGISTRY/NAMESPACE/REPOSITORY:TAG
whereREGISTRY
andTAG
are optional. IfREGISTRY
is not specified, the default isdocker.io
. IfTAG
is not specified, the default islatest
. If the image reference points to a registry that requires authentication, make sure to also specify the propertyimage_secret
.- Constraints: The maximum length is
256
characters. The minimum length is1
character. The value must match regular expression/^([a-z0-9][a-z0-9\\-_.]+[a-z0-9][\/])?([a-z0-9][a-z0-9\\-_]+[a-z0-9][\/])?[a-z0-9][a-z0-9\\-_.\/]+a-z0-9?(@sha256:[a-fA-F0-9]{64})?$/
.
- Constraints: The maximum length is
- image
Secret string - The name of the image registry access secret. The image registry access secret is used to authenticate with a private registry when you download the container image. If the image reference points to a registry that requires authentication, the job / job runs will be created but submitted job runs will fail, until this property is provided, too. This property must not be set on a job run, which references a job template.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?(\\.a-z0-9?)*$/
.
- Constraints: The maximum length is
- job
Id string - (String) The identifier of the resource.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/
.
- Constraints: The maximum length is
- name string
- The name of the job.
- Constraints: The maximum length is
63
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?$/
.
- Constraints: The maximum length is
- project
Id string - The ID of the project.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/
.
- Constraints: The maximum length is
- region string
- (String) The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.
- resource
Type string - (String) The type of the job.
- Constraints: Allowable values are:
job_v2
.
- Constraints: Allowable values are:
- run
Arguments string[] - Set arguments for the job that are passed to start job run containers. If not specified an empty string array will be applied and the arguments specified by the container image, will be used to start the container.
- Constraints: The list items must match regular expression
/^.*$/
. The maximum length is100
items. The minimum length is0
items.
- Constraints: The list items must match regular expression
- run
As numberUser - The user ID (UID) to run the job (e.g., 1001).
- Constraints: The default value is
0
.
- Constraints: The default value is
- run
Commands string[] - Set commands for the job that are passed to start job run containers. If not specified an empty string array will be applied and the command specified by the container image, will be used to start the container.
- Constraints: The list items must match regular expression
/^.*$/
. The maximum length is100
items. The minimum length is0
items.
- Constraints: The list items must match regular expression
- run
Env CodeVariables Engine Job Run Env Variable[] - References to config maps, secrets or literal values, which are exposed as environment variables in the job run.
- Constraints: The maximum length is
100
items. The minimum length is0
items. Nested schema for run_env_variables:
- Constraints: The maximum length is
- run
Mode string - The mode for runs of the job. Valid values are
task
anddaemon
. Intask
mode, themax_execution_time
andretry_limit
properties apply. Indaemon
mode, since there is no timeout and failed instances are restarted indefinitely, themax_execution_time
andretry_limit
properties are not allowed.- Constraints: The default value is
task
. Allowable values are:task
,daemon
. The minimum length is0
characters. The value must match regular expression/^(task|daemon)$/
.
- Constraints: The default value is
- run
Service stringAccount - The name of the service account. For built-in service accounts, you can use the shortened names
manager
,none
,reader
, andwriter
. This property must not be set on a job run, which references a job template.- Constraints: The default value is
default
. Allowable values are:default
,manager
,reader
,writer
,none
. The minimum length is0
characters. The value must match regular expression/^(manager|reader|writer|none|default)$/
.
- Constraints: The default value is
- run
Volume CodeMounts Engine Job Run Volume Mount[] - Optional mounts of config maps or secrets.
- Constraints: The maximum length is
100
items. The minimum length is0
items. Nested schema for run_volume_mounts:
- Constraints: The maximum length is
- scale
Array stringSpec - Define a custom set of array indices as a comma-separated list containing single values and hyphen-separated ranges, such as 5,12-14,23,27. Each instance gets its array index value from the environment variable JOB_INDEX. The number of unique array indices that you specify with this parameter determines the number of job instances to run.
- Constraints: The default value is
0
. The maximum length is253
characters. The minimum length is1
character. The value must match regular expression/^(?:[1-9]\\d\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d|[1-9]\\d\\d\\d|[1-9]\\d\\d|[1-9]?\\d)(?:-(?:[1-9]\\d\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d|[1-9]\\d\\d\\d|[1-9]\\d\\d|[1-9]?\\d))?(?:,(?:[1-9]\\d\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d|[1-9]\\d\\d\\d|[1-9]\\d\\d|[1-9]?\\d)(?:-(?:[1-9]\\d\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d|[1-9]\\d\\d\\d|[1-9]\\d\\d|[1-9]?\\d))?)*$/
.
- Constraints: The default value is
- scale
Cpu stringLimit - Optional amount of CPU set for the instance of the job. For valid values see Supported memory and CPU combinations.
- Constraints: The default value is
1
. The maximum length is10
characters. The minimum length is0
characters. The value must match regular expression/^([0-9.]+)([eEinumkKMGTPB]*)$/
.
- Constraints: The default value is
- scale
Ephemeral stringStorage Limit - Optional amount of ephemeral storage to set for the instance of the job. The amount specified as ephemeral storage, must not exceed the amount of
scale_memory_limit
. The units for specifying ephemeral storage are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see Units of measurement.- Constraints: The default value is
400M
. The maximum length is10
characters. The minimum length is0
characters. The value must match regular expression/^([0-9.]+)([eEinumkKMGTPB]*)$/
.
- Constraints: The default value is
- scale
Max numberExecution Time - The maximum execution time in seconds for runs of the job. This property can only be specified if
run_mode
istask
.- Constraints: The default value is
7200
.
- Constraints: The default value is
- scale
Memory stringLimit - Optional amount of memory set for the instance of the job. For valid values see Supported memory and CPU combinations. The units for specifying memory are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see Units of measurement.
- Constraints: The default value is
4G
. The maximum length is10
characters. The minimum length is0
characters. The value must match regular expression/^([0-9.]+)([eEinumkKMGTPB]*)$/
.
- Constraints: The default value is
- scale
Retry numberLimit - The number of times to rerun an instance of the job before the job is marked as failed. This property can only be specified if
run_mode
istask
.- Constraints: The default value is
3
.
- Constraints: The default value is
- build str
- (String) Reference to a build that is associated with the job.
- build_
run str - (String) Reference to a build run that is associated with the job.
- code_
engine_ strjob_ id - The unique identifier of the code_engine_job.
- computed_
env_ Sequence[Codevariables Engine Job Computed Env Variable Args] - (List) References to config maps, secrets or literal values, which are defined and set by Code Engine and are exposed as environment variables in the job run.
- Constraints: The maximum length is
100
items. The minimum length is0
items. Nested schema for computed_env_variables:
- Constraints: The maximum length is
- created_
at str - (String) The timestamp when the resource was created.
- entity_
tag str - (String) The version of the job instance, which is used to achieve optimistic locking.
- Constraints: The maximum length is
63
characters. The minimum length is1
character. The value must match regular expression/^[\\*\\-a-z0-9]+$/
.
- Constraints: The maximum length is
- etag str
- ETag identifier for code_engine_job.
- href str
- (String) When you provision a new job, a URL is created identifying the location of the instance.
- Constraints: The maximum length is
2048
characters. The minimum length is0
characters. The value must match regular expression/(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/
.
- Constraints: The maximum length is
- image_
reference str - The name of the image that is used for this job. The format is
REGISTRY/NAMESPACE/REPOSITORY:TAG
whereREGISTRY
andTAG
are optional. IfREGISTRY
is not specified, the default isdocker.io
. IfTAG
is not specified, the default islatest
. If the image reference points to a registry that requires authentication, make sure to also specify the propertyimage_secret
.- Constraints: The maximum length is
256
characters. The minimum length is1
character. The value must match regular expression/^([a-z0-9][a-z0-9\\-_.]+[a-z0-9][\/])?([a-z0-9][a-z0-9\\-_]+[a-z0-9][\/])?[a-z0-9][a-z0-9\\-_.\/]+a-z0-9?(@sha256:[a-fA-F0-9]{64})?$/
.
- Constraints: The maximum length is
- image_
secret str - The name of the image registry access secret. The image registry access secret is used to authenticate with a private registry when you download the container image. If the image reference points to a registry that requires authentication, the job / job runs will be created but submitted job runs will fail, until this property is provided, too. This property must not be set on a job run, which references a job template.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?(\\.a-z0-9?)*$/
.
- Constraints: The maximum length is
- job_
id str - (String) The identifier of the resource.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/
.
- Constraints: The maximum length is
- name str
- The name of the job.
- Constraints: The maximum length is
63
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?$/
.
- Constraints: The maximum length is
- project_
id str - The ID of the project.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/
.
- Constraints: The maximum length is
- region str
- (String) The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.
- resource_
type str - (String) The type of the job.
- Constraints: Allowable values are:
job_v2
.
- Constraints: Allowable values are:
- run_
arguments Sequence[str] - Set arguments for the job that are passed to start job run containers. If not specified an empty string array will be applied and the arguments specified by the container image, will be used to start the container.
- Constraints: The list items must match regular expression
/^.*$/
. The maximum length is100
items. The minimum length is0
items.
- Constraints: The list items must match regular expression
- run_
as_ floatuser - The user ID (UID) to run the job (e.g., 1001).
- Constraints: The default value is
0
.
- Constraints: The default value is
- run_
commands Sequence[str] - Set commands for the job that are passed to start job run containers. If not specified an empty string array will be applied and the command specified by the container image, will be used to start the container.
- Constraints: The list items must match regular expression
/^.*$/
. The maximum length is100
items. The minimum length is0
items.
- Constraints: The list items must match regular expression
- run_
env_ Sequence[Codevariables Engine Job Run Env Variable Args] - References to config maps, secrets or literal values, which are exposed as environment variables in the job run.
- Constraints: The maximum length is
100
items. The minimum length is0
items. Nested schema for run_env_variables:
- Constraints: The maximum length is
- run_
mode str - The mode for runs of the job. Valid values are
task
anddaemon
. Intask
mode, themax_execution_time
andretry_limit
properties apply. Indaemon
mode, since there is no timeout and failed instances are restarted indefinitely, themax_execution_time
andretry_limit
properties are not allowed.- Constraints: The default value is
task
. Allowable values are:task
,daemon
. The minimum length is0
characters. The value must match regular expression/^(task|daemon)$/
.
- Constraints: The default value is
- run_
service_ straccount - The name of the service account. For built-in service accounts, you can use the shortened names
manager
,none
,reader
, andwriter
. This property must not be set on a job run, which references a job template.- Constraints: The default value is
default
. Allowable values are:default
,manager
,reader
,writer
,none
. The minimum length is0
characters. The value must match regular expression/^(manager|reader|writer|none|default)$/
.
- Constraints: The default value is
- run_
volume_ Sequence[Codemounts Engine Job Run Volume Mount Args] - Optional mounts of config maps or secrets.
- Constraints: The maximum length is
100
items. The minimum length is0
items. Nested schema for run_volume_mounts:
- Constraints: The maximum length is
- scale_
array_ strspec - Define a custom set of array indices as a comma-separated list containing single values and hyphen-separated ranges, such as 5,12-14,23,27. Each instance gets its array index value from the environment variable JOB_INDEX. The number of unique array indices that you specify with this parameter determines the number of job instances to run.
- Constraints: The default value is
0
. The maximum length is253
characters. The minimum length is1
character. The value must match regular expression/^(?:[1-9]\\d\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d|[1-9]\\d\\d\\d|[1-9]\\d\\d|[1-9]?\\d)(?:-(?:[1-9]\\d\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d|[1-9]\\d\\d\\d|[1-9]\\d\\d|[1-9]?\\d))?(?:,(?:[1-9]\\d\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d|[1-9]\\d\\d\\d|[1-9]\\d\\d|[1-9]?\\d)(?:-(?:[1-9]\\d\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d|[1-9]\\d\\d\\d|[1-9]\\d\\d|[1-9]?\\d))?)*$/
.
- Constraints: The default value is
- scale_
cpu_ strlimit - Optional amount of CPU set for the instance of the job. For valid values see Supported memory and CPU combinations.
- Constraints: The default value is
1
. The maximum length is10
characters. The minimum length is0
characters. The value must match regular expression/^([0-9.]+)([eEinumkKMGTPB]*)$/
.
- Constraints: The default value is
- scale_
ephemeral_ strstorage_ limit - Optional amount of ephemeral storage to set for the instance of the job. The amount specified as ephemeral storage, must not exceed the amount of
scale_memory_limit
. The units for specifying ephemeral storage are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see Units of measurement.- Constraints: The default value is
400M
. The maximum length is10
characters. The minimum length is0
characters. The value must match regular expression/^([0-9.]+)([eEinumkKMGTPB]*)$/
.
- Constraints: The default value is
- scale_
max_ floatexecution_ time - The maximum execution time in seconds for runs of the job. This property can only be specified if
run_mode
istask
.- Constraints: The default value is
7200
.
- Constraints: The default value is
- scale_
memory_ strlimit - Optional amount of memory set for the instance of the job. For valid values see Supported memory and CPU combinations. The units for specifying memory are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see Units of measurement.
- Constraints: The default value is
4G
. The maximum length is10
characters. The minimum length is0
characters. The value must match regular expression/^([0-9.]+)([eEinumkKMGTPB]*)$/
.
- Constraints: The default value is
- scale_
retry_ floatlimit - The number of times to rerun an instance of the job before the job is marked as failed. This property can only be specified if
run_mode
istask
.- Constraints: The default value is
3
.
- Constraints: The default value is
- build String
- (String) Reference to a build that is associated with the job.
- build
Run String - (String) Reference to a build run that is associated with the job.
- code
Engine StringJob Id - The unique identifier of the code_engine_job.
- computed
Env List<Property Map>Variables - (List) References to config maps, secrets or literal values, which are defined and set by Code Engine and are exposed as environment variables in the job run.
- Constraints: The maximum length is
100
items. The minimum length is0
items. Nested schema for computed_env_variables:
- Constraints: The maximum length is
- created
At String - (String) The timestamp when the resource was created.
- entity
Tag String - (String) The version of the job instance, which is used to achieve optimistic locking.
- Constraints: The maximum length is
63
characters. The minimum length is1
character. The value must match regular expression/^[\\*\\-a-z0-9]+$/
.
- Constraints: The maximum length is
- etag String
- ETag identifier for code_engine_job.
- href String
- (String) When you provision a new job, a URL is created identifying the location of the instance.
- Constraints: The maximum length is
2048
characters. The minimum length is0
characters. The value must match regular expression/(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/
.
- Constraints: The maximum length is
- image
Reference String - The name of the image that is used for this job. The format is
REGISTRY/NAMESPACE/REPOSITORY:TAG
whereREGISTRY
andTAG
are optional. IfREGISTRY
is not specified, the default isdocker.io
. IfTAG
is not specified, the default islatest
. If the image reference points to a registry that requires authentication, make sure to also specify the propertyimage_secret
.- Constraints: The maximum length is
256
characters. The minimum length is1
character. The value must match regular expression/^([a-z0-9][a-z0-9\\-_.]+[a-z0-9][\/])?([a-z0-9][a-z0-9\\-_]+[a-z0-9][\/])?[a-z0-9][a-z0-9\\-_.\/]+a-z0-9?(@sha256:[a-fA-F0-9]{64})?$/
.
- Constraints: The maximum length is
- image
Secret String - The name of the image registry access secret. The image registry access secret is used to authenticate with a private registry when you download the container image. If the image reference points to a registry that requires authentication, the job / job runs will be created but submitted job runs will fail, until this property is provided, too. This property must not be set on a job run, which references a job template.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?(\\.a-z0-9?)*$/
.
- Constraints: The maximum length is
- job
Id String - (String) The identifier of the resource.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/
.
- Constraints: The maximum length is
- name String
- The name of the job.
- Constraints: The maximum length is
63
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?$/
.
- Constraints: The maximum length is
- project
Id String - The ID of the project.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/
.
- Constraints: The maximum length is
- region String
- (String) The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.
- resource
Type String - (String) The type of the job.
- Constraints: Allowable values are:
job_v2
.
- Constraints: Allowable values are:
- run
Arguments List<String> - Set arguments for the job that are passed to start job run containers. If not specified an empty string array will be applied and the arguments specified by the container image, will be used to start the container.
- Constraints: The list items must match regular expression
/^.*$/
. The maximum length is100
items. The minimum length is0
items.
- Constraints: The list items must match regular expression
- run
As NumberUser - The user ID (UID) to run the job (e.g., 1001).
- Constraints: The default value is
0
.
- Constraints: The default value is
- run
Commands List<String> - Set commands for the job that are passed to start job run containers. If not specified an empty string array will be applied and the command specified by the container image, will be used to start the container.
- Constraints: The list items must match regular expression
/^.*$/
. The maximum length is100
items. The minimum length is0
items.
- Constraints: The list items must match regular expression
- run
Env List<Property Map>Variables - References to config maps, secrets or literal values, which are exposed as environment variables in the job run.
- Constraints: The maximum length is
100
items. The minimum length is0
items. Nested schema for run_env_variables:
- Constraints: The maximum length is
- run
Mode String - The mode for runs of the job. Valid values are
task
anddaemon
. Intask
mode, themax_execution_time
andretry_limit
properties apply. Indaemon
mode, since there is no timeout and failed instances are restarted indefinitely, themax_execution_time
andretry_limit
properties are not allowed.- Constraints: The default value is
task
. Allowable values are:task
,daemon
. The minimum length is0
characters. The value must match regular expression/^(task|daemon)$/
.
- Constraints: The default value is
- run
Service StringAccount - The name of the service account. For built-in service accounts, you can use the shortened names
manager
,none
,reader
, andwriter
. This property must not be set on a job run, which references a job template.- Constraints: The default value is
default
. Allowable values are:default
,manager
,reader
,writer
,none
. The minimum length is0
characters. The value must match regular expression/^(manager|reader|writer|none|default)$/
.
- Constraints: The default value is
- run
Volume List<Property Map>Mounts - Optional mounts of config maps or secrets.
- Constraints: The maximum length is
100
items. The minimum length is0
items. Nested schema for run_volume_mounts:
- Constraints: The maximum length is
- scale
Array StringSpec - Define a custom set of array indices as a comma-separated list containing single values and hyphen-separated ranges, such as 5,12-14,23,27. Each instance gets its array index value from the environment variable JOB_INDEX. The number of unique array indices that you specify with this parameter determines the number of job instances to run.
- Constraints: The default value is
0
. The maximum length is253
characters. The minimum length is1
character. The value must match regular expression/^(?:[1-9]\\d\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d|[1-9]\\d\\d\\d|[1-9]\\d\\d|[1-9]?\\d)(?:-(?:[1-9]\\d\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d|[1-9]\\d\\d\\d|[1-9]\\d\\d|[1-9]?\\d))?(?:,(?:[1-9]\\d\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d|[1-9]\\d\\d\\d|[1-9]\\d\\d|[1-9]?\\d)(?:-(?:[1-9]\\d\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d\\d|[1-9]\\d\\d\\d\\d|[1-9]\\d\\d\\d|[1-9]\\d\\d|[1-9]?\\d))?)*$/
.
- Constraints: The default value is
- scale
Cpu StringLimit - Optional amount of CPU set for the instance of the job. For valid values see Supported memory and CPU combinations.
- Constraints: The default value is
1
. The maximum length is10
characters. The minimum length is0
characters. The value must match regular expression/^([0-9.]+)([eEinumkKMGTPB]*)$/
.
- Constraints: The default value is
- scale
Ephemeral StringStorage Limit - Optional amount of ephemeral storage to set for the instance of the job. The amount specified as ephemeral storage, must not exceed the amount of
scale_memory_limit
. The units for specifying ephemeral storage are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see Units of measurement.- Constraints: The default value is
400M
. The maximum length is10
characters. The minimum length is0
characters. The value must match regular expression/^([0-9.]+)([eEinumkKMGTPB]*)$/
.
- Constraints: The default value is
- scale
Max NumberExecution Time - The maximum execution time in seconds for runs of the job. This property can only be specified if
run_mode
istask
.- Constraints: The default value is
7200
.
- Constraints: The default value is
- scale
Memory StringLimit - Optional amount of memory set for the instance of the job. For valid values see Supported memory and CPU combinations. The units for specifying memory are Megabyte (M) or Gigabyte (G), whereas G and M are the shorthand expressions for GB and MB. For more information see Units of measurement.
- Constraints: The default value is
4G
. The maximum length is10
characters. The minimum length is0
characters. The value must match regular expression/^([0-9.]+)([eEinumkKMGTPB]*)$/
.
- Constraints: The default value is
- scale
Retry NumberLimit - The number of times to rerun an instance of the job before the job is marked as failed. This property can only be specified if
run_mode
istask
.- Constraints: The default value is
3
.
- Constraints: The default value is
Supporting Types
CodeEngineJobComputedEnvVariable, CodeEngineJobComputedEnvVariableArgs
- Key string
- (String) The key to reference as environment variable.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^[\\-._a-zA-Z0-9]+$/
.
- Constraints: The maximum length is
- Name string
- The name of the job.
- Constraints: The maximum length is
63
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?$/
.
- Constraints: The maximum length is
- Prefix string
- (String) A prefix that can be added to all keys of a full secret or config map reference.
- Constraints: The maximum length is
253
characters. The minimum length is0
characters. The value must match regular expression/^[a-zA-Z_][a-zA-Z0-9_]*$/
.
- Constraints: The maximum length is
- Reference string
- (String) The name of the secret or config map.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?(\\.a-z0-9?)*$/
.
- Constraints: The maximum length is
- Type string
- (String) Specify the type of the environment variable.
- Constraints: The default value is
literal
. Allowable values are:literal
,config_map_full_reference
,secret_full_reference
,config_map_key_reference
,secret_key_reference
. The value must match regular expression/^(literal|config_map_full_reference|secret_full_reference|config_map_key_reference|secret_key_reference)$/
.
- Constraints: The default value is
- Value string
- (String) The literal value of the environment variable.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^[\\-._a-zA-Z0-9]+$/
.
- Constraints: The maximum length is
- Key string
- (String) The key to reference as environment variable.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^[\\-._a-zA-Z0-9]+$/
.
- Constraints: The maximum length is
- Name string
- The name of the job.
- Constraints: The maximum length is
63
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?$/
.
- Constraints: The maximum length is
- Prefix string
- (String) A prefix that can be added to all keys of a full secret or config map reference.
- Constraints: The maximum length is
253
characters. The minimum length is0
characters. The value must match regular expression/^[a-zA-Z_][a-zA-Z0-9_]*$/
.
- Constraints: The maximum length is
- Reference string
- (String) The name of the secret or config map.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?(\\.a-z0-9?)*$/
.
- Constraints: The maximum length is
- Type string
- (String) Specify the type of the environment variable.
- Constraints: The default value is
literal
. Allowable values are:literal
,config_map_full_reference
,secret_full_reference
,config_map_key_reference
,secret_key_reference
. The value must match regular expression/^(literal|config_map_full_reference|secret_full_reference|config_map_key_reference|secret_key_reference)$/
.
- Constraints: The default value is
- Value string
- (String) The literal value of the environment variable.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^[\\-._a-zA-Z0-9]+$/
.
- Constraints: The maximum length is
- key String
- (String) The key to reference as environment variable.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^[\\-._a-zA-Z0-9]+$/
.
- Constraints: The maximum length is
- name String
- The name of the job.
- Constraints: The maximum length is
63
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?$/
.
- Constraints: The maximum length is
- prefix String
- (String) A prefix that can be added to all keys of a full secret or config map reference.
- Constraints: The maximum length is
253
characters. The minimum length is0
characters. The value must match regular expression/^[a-zA-Z_][a-zA-Z0-9_]*$/
.
- Constraints: The maximum length is
- reference String
- (String) The name of the secret or config map.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?(\\.a-z0-9?)*$/
.
- Constraints: The maximum length is
- type String
- (String) Specify the type of the environment variable.
- Constraints: The default value is
literal
. Allowable values are:literal
,config_map_full_reference
,secret_full_reference
,config_map_key_reference
,secret_key_reference
. The value must match regular expression/^(literal|config_map_full_reference|secret_full_reference|config_map_key_reference|secret_key_reference)$/
.
- Constraints: The default value is
- value String
- (String) The literal value of the environment variable.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^[\\-._a-zA-Z0-9]+$/
.
- Constraints: The maximum length is
- key string
- (String) The key to reference as environment variable.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^[\\-._a-zA-Z0-9]+$/
.
- Constraints: The maximum length is
- name string
- The name of the job.
- Constraints: The maximum length is
63
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?$/
.
- Constraints: The maximum length is
- prefix string
- (String) A prefix that can be added to all keys of a full secret or config map reference.
- Constraints: The maximum length is
253
characters. The minimum length is0
characters. The value must match regular expression/^[a-zA-Z_][a-zA-Z0-9_]*$/
.
- Constraints: The maximum length is
- reference string
- (String) The name of the secret or config map.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?(\\.a-z0-9?)*$/
.
- Constraints: The maximum length is
- type string
- (String) Specify the type of the environment variable.
- Constraints: The default value is
literal
. Allowable values are:literal
,config_map_full_reference
,secret_full_reference
,config_map_key_reference
,secret_key_reference
. The value must match regular expression/^(literal|config_map_full_reference|secret_full_reference|config_map_key_reference|secret_key_reference)$/
.
- Constraints: The default value is
- value string
- (String) The literal value of the environment variable.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^[\\-._a-zA-Z0-9]+$/
.
- Constraints: The maximum length is
- key str
- (String) The key to reference as environment variable.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^[\\-._a-zA-Z0-9]+$/
.
- Constraints: The maximum length is
- name str
- The name of the job.
- Constraints: The maximum length is
63
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?$/
.
- Constraints: The maximum length is
- prefix str
- (String) A prefix that can be added to all keys of a full secret or config map reference.
- Constraints: The maximum length is
253
characters. The minimum length is0
characters. The value must match regular expression/^[a-zA-Z_][a-zA-Z0-9_]*$/
.
- Constraints: The maximum length is
- reference str
- (String) The name of the secret or config map.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?(\\.a-z0-9?)*$/
.
- Constraints: The maximum length is
- type str
- (String) Specify the type of the environment variable.
- Constraints: The default value is
literal
. Allowable values are:literal
,config_map_full_reference
,secret_full_reference
,config_map_key_reference
,secret_key_reference
. The value must match regular expression/^(literal|config_map_full_reference|secret_full_reference|config_map_key_reference|secret_key_reference)$/
.
- Constraints: The default value is
- value str
- (String) The literal value of the environment variable.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^[\\-._a-zA-Z0-9]+$/
.
- Constraints: The maximum length is
- key String
- (String) The key to reference as environment variable.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^[\\-._a-zA-Z0-9]+$/
.
- Constraints: The maximum length is
- name String
- The name of the job.
- Constraints: The maximum length is
63
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?$/
.
- Constraints: The maximum length is
- prefix String
- (String) A prefix that can be added to all keys of a full secret or config map reference.
- Constraints: The maximum length is
253
characters. The minimum length is0
characters. The value must match regular expression/^[a-zA-Z_][a-zA-Z0-9_]*$/
.
- Constraints: The maximum length is
- reference String
- (String) The name of the secret or config map.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?(\\.a-z0-9?)*$/
.
- Constraints: The maximum length is
- type String
- (String) Specify the type of the environment variable.
- Constraints: The default value is
literal
. Allowable values are:literal
,config_map_full_reference
,secret_full_reference
,config_map_key_reference
,secret_key_reference
. The value must match regular expression/^(literal|config_map_full_reference|secret_full_reference|config_map_key_reference|secret_key_reference)$/
.
- Constraints: The default value is
- value String
- (String) The literal value of the environment variable.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^[\\-._a-zA-Z0-9]+$/
.
- Constraints: The maximum length is
CodeEngineJobRunEnvVariable, CodeEngineJobRunEnvVariableArgs
- Key string
- The key to reference as environment variable.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^[\\-._a-zA-Z0-9]+$/
.
- Constraints: The maximum length is
- Name string
- The name of the environment variable.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^[\\-._a-zA-Z0-9]+$/
.
- Constraints: The maximum length is
- Prefix string
- A prefix that can be added to all keys of a full secret or config map reference.
- Constraints: The maximum length is
253
characters. The minimum length is0
characters. The value must match regular expression/^[a-zA-Z_][a-zA-Z0-9_]*$/
.
- Constraints: The maximum length is
- Reference string
- The name of the secret or config map.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?(\\.a-z0-9?)*$/
.
- Constraints: The maximum length is
- Type string
- Specify the type of the environment variable.
- Constraints: The default value is
literal
. Allowable values are:literal
,config_map_full_reference
,secret_full_reference
,config_map_key_reference
,secret_key_reference
. The value must match regular expression/^(literal|config_map_full_reference|secret_full_reference|config_map_key_reference|secret_key_reference)$/
. When referencing a secret or configmap, thereference
must be specified. When referencing a secret or configmap key, akey
must also be specified.
- Constraints: The default value is
- Value string
- The literal value of the environment variable.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^[\\-._a-zA-Z0-9]+$/
.
- Constraints: The maximum length is
- Key string
- The key to reference as environment variable.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^[\\-._a-zA-Z0-9]+$/
.
- Constraints: The maximum length is
- Name string
- The name of the environment variable.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^[\\-._a-zA-Z0-9]+$/
.
- Constraints: The maximum length is
- Prefix string
- A prefix that can be added to all keys of a full secret or config map reference.
- Constraints: The maximum length is
253
characters. The minimum length is0
characters. The value must match regular expression/^[a-zA-Z_][a-zA-Z0-9_]*$/
.
- Constraints: The maximum length is
- Reference string
- The name of the secret or config map.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?(\\.a-z0-9?)*$/
.
- Constraints: The maximum length is
- Type string
- Specify the type of the environment variable.
- Constraints: The default value is
literal
. Allowable values are:literal
,config_map_full_reference
,secret_full_reference
,config_map_key_reference
,secret_key_reference
. The value must match regular expression/^(literal|config_map_full_reference|secret_full_reference|config_map_key_reference|secret_key_reference)$/
. When referencing a secret or configmap, thereference
must be specified. When referencing a secret or configmap key, akey
must also be specified.
- Constraints: The default value is
- Value string
- The literal value of the environment variable.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^[\\-._a-zA-Z0-9]+$/
.
- Constraints: The maximum length is
- key String
- The key to reference as environment variable.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^[\\-._a-zA-Z0-9]+$/
.
- Constraints: The maximum length is
- name String
- The name of the environment variable.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^[\\-._a-zA-Z0-9]+$/
.
- Constraints: The maximum length is
- prefix String
- A prefix that can be added to all keys of a full secret or config map reference.
- Constraints: The maximum length is
253
characters. The minimum length is0
characters. The value must match regular expression/^[a-zA-Z_][a-zA-Z0-9_]*$/
.
- Constraints: The maximum length is
- reference String
- The name of the secret or config map.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?(\\.a-z0-9?)*$/
.
- Constraints: The maximum length is
- type String
- Specify the type of the environment variable.
- Constraints: The default value is
literal
. Allowable values are:literal
,config_map_full_reference
,secret_full_reference
,config_map_key_reference
,secret_key_reference
. The value must match regular expression/^(literal|config_map_full_reference|secret_full_reference|config_map_key_reference|secret_key_reference)$/
. When referencing a secret or configmap, thereference
must be specified. When referencing a secret or configmap key, akey
must also be specified.
- Constraints: The default value is
- value String
- The literal value of the environment variable.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^[\\-._a-zA-Z0-9]+$/
.
- Constraints: The maximum length is
- key string
- The key to reference as environment variable.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^[\\-._a-zA-Z0-9]+$/
.
- Constraints: The maximum length is
- name string
- The name of the environment variable.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^[\\-._a-zA-Z0-9]+$/
.
- Constraints: The maximum length is
- prefix string
- A prefix that can be added to all keys of a full secret or config map reference.
- Constraints: The maximum length is
253
characters. The minimum length is0
characters. The value must match regular expression/^[a-zA-Z_][a-zA-Z0-9_]*$/
.
- Constraints: The maximum length is
- reference string
- The name of the secret or config map.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?(\\.a-z0-9?)*$/
.
- Constraints: The maximum length is
- type string
- Specify the type of the environment variable.
- Constraints: The default value is
literal
. Allowable values are:literal
,config_map_full_reference
,secret_full_reference
,config_map_key_reference
,secret_key_reference
. The value must match regular expression/^(literal|config_map_full_reference|secret_full_reference|config_map_key_reference|secret_key_reference)$/
. When referencing a secret or configmap, thereference
must be specified. When referencing a secret or configmap key, akey
must also be specified.
- Constraints: The default value is
- value string
- The literal value of the environment variable.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^[\\-._a-zA-Z0-9]+$/
.
- Constraints: The maximum length is
- key str
- The key to reference as environment variable.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^[\\-._a-zA-Z0-9]+$/
.
- Constraints: The maximum length is
- name str
- The name of the environment variable.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^[\\-._a-zA-Z0-9]+$/
.
- Constraints: The maximum length is
- prefix str
- A prefix that can be added to all keys of a full secret or config map reference.
- Constraints: The maximum length is
253
characters. The minimum length is0
characters. The value must match regular expression/^[a-zA-Z_][a-zA-Z0-9_]*$/
.
- Constraints: The maximum length is
- reference str
- The name of the secret or config map.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?(\\.a-z0-9?)*$/
.
- Constraints: The maximum length is
- type str
- Specify the type of the environment variable.
- Constraints: The default value is
literal
. Allowable values are:literal
,config_map_full_reference
,secret_full_reference
,config_map_key_reference
,secret_key_reference
. The value must match regular expression/^(literal|config_map_full_reference|secret_full_reference|config_map_key_reference|secret_key_reference)$/
. When referencing a secret or configmap, thereference
must be specified. When referencing a secret or configmap key, akey
must also be specified.
- Constraints: The default value is
- value str
- The literal value of the environment variable.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^[\\-._a-zA-Z0-9]+$/
.
- Constraints: The maximum length is
- key String
- The key to reference as environment variable.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^[\\-._a-zA-Z0-9]+$/
.
- Constraints: The maximum length is
- name String
- The name of the environment variable.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^[\\-._a-zA-Z0-9]+$/
.
- Constraints: The maximum length is
- prefix String
- A prefix that can be added to all keys of a full secret or config map reference.
- Constraints: The maximum length is
253
characters. The minimum length is0
characters. The value must match regular expression/^[a-zA-Z_][a-zA-Z0-9_]*$/
.
- Constraints: The maximum length is
- reference String
- The name of the secret or config map.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?(\\.a-z0-9?)*$/
.
- Constraints: The maximum length is
- type String
- Specify the type of the environment variable.
- Constraints: The default value is
literal
. Allowable values are:literal
,config_map_full_reference
,secret_full_reference
,config_map_key_reference
,secret_key_reference
. The value must match regular expression/^(literal|config_map_full_reference|secret_full_reference|config_map_key_reference|secret_key_reference)$/
. When referencing a secret or configmap, thereference
must be specified. When referencing a secret or configmap key, akey
must also be specified.
- Constraints: The default value is
- value String
- The literal value of the environment variable.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^[\\-._a-zA-Z0-9]+$/
.
- Constraints: The maximum length is
CodeEngineJobRunVolumeMount, CodeEngineJobRunVolumeMountArgs
- Mount
Path string - The path that should be mounted.
- Constraints: The maximum length is
256
characters. The minimum length is1
character. The value must match regular expression/^\/([^\/\\0]+\/?)+$/
.
- Constraints: The maximum length is
- Name string
- The name of the mount.
- Constraints: The maximum length is
63
characters. The minimum length is0
characters. The value must match regular expression/^a-z?$/
.
- Constraints: The maximum length is
- Reference string
- The name of the referenced secret or config map.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?(\\.a-z0-9?)*$/
.
- Constraints: The maximum length is
- Type string
- Specify the type of the volume mount. Allowed types are: 'config_map', 'secret'.
- Constraints: The default value is
secret
. Allowable values are:config_map
,secret
. The value must match regular expression/^(config_map|secret)$/
.
- Constraints: The default value is
- Mount
Path string - The path that should be mounted.
- Constraints: The maximum length is
256
characters. The minimum length is1
character. The value must match regular expression/^\/([^\/\\0]+\/?)+$/
.
- Constraints: The maximum length is
- Name string
- The name of the mount.
- Constraints: The maximum length is
63
characters. The minimum length is0
characters. The value must match regular expression/^a-z?$/
.
- Constraints: The maximum length is
- Reference string
- The name of the referenced secret or config map.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?(\\.a-z0-9?)*$/
.
- Constraints: The maximum length is
- Type string
- Specify the type of the volume mount. Allowed types are: 'config_map', 'secret'.
- Constraints: The default value is
secret
. Allowable values are:config_map
,secret
. The value must match regular expression/^(config_map|secret)$/
.
- Constraints: The default value is
- mount
Path String - The path that should be mounted.
- Constraints: The maximum length is
256
characters. The minimum length is1
character. The value must match regular expression/^\/([^\/\\0]+\/?)+$/
.
- Constraints: The maximum length is
- name String
- The name of the mount.
- Constraints: The maximum length is
63
characters. The minimum length is0
characters. The value must match regular expression/^a-z?$/
.
- Constraints: The maximum length is
- reference String
- The name of the referenced secret or config map.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?(\\.a-z0-9?)*$/
.
- Constraints: The maximum length is
- type String
- Specify the type of the volume mount. Allowed types are: 'config_map', 'secret'.
- Constraints: The default value is
secret
. Allowable values are:config_map
,secret
. The value must match regular expression/^(config_map|secret)$/
.
- Constraints: The default value is
- mount
Path string - The path that should be mounted.
- Constraints: The maximum length is
256
characters. The minimum length is1
character. The value must match regular expression/^\/([^\/\\0]+\/?)+$/
.
- Constraints: The maximum length is
- name string
- The name of the mount.
- Constraints: The maximum length is
63
characters. The minimum length is0
characters. The value must match regular expression/^a-z?$/
.
- Constraints: The maximum length is
- reference string
- The name of the referenced secret or config map.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?(\\.a-z0-9?)*$/
.
- Constraints: The maximum length is
- type string
- Specify the type of the volume mount. Allowed types are: 'config_map', 'secret'.
- Constraints: The default value is
secret
. Allowable values are:config_map
,secret
. The value must match regular expression/^(config_map|secret)$/
.
- Constraints: The default value is
- mount_
path str - The path that should be mounted.
- Constraints: The maximum length is
256
characters. The minimum length is1
character. The value must match regular expression/^\/([^\/\\0]+\/?)+$/
.
- Constraints: The maximum length is
- name str
- The name of the mount.
- Constraints: The maximum length is
63
characters. The minimum length is0
characters. The value must match regular expression/^a-z?$/
.
- Constraints: The maximum length is
- reference str
- The name of the referenced secret or config map.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?(\\.a-z0-9?)*$/
.
- Constraints: The maximum length is
- type str
- Specify the type of the volume mount. Allowed types are: 'config_map', 'secret'.
- Constraints: The default value is
secret
. Allowable values are:config_map
,secret
. The value must match regular expression/^(config_map|secret)$/
.
- Constraints: The default value is
- mount
Path String - The path that should be mounted.
- Constraints: The maximum length is
256
characters. The minimum length is1
character. The value must match regular expression/^\/([^\/\\0]+\/?)+$/
.
- Constraints: The maximum length is
- name String
- The name of the mount.
- Constraints: The maximum length is
63
characters. The minimum length is0
characters. The value must match regular expression/^a-z?$/
.
- Constraints: The maximum length is
- reference String
- The name of the referenced secret or config map.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?(\\.a-z0-9?)*$/
.
- Constraints: The maximum length is
- type String
- Specify the type of the volume mount. Allowed types are: 'config_map', 'secret'.
- Constraints: The default value is
secret
. Allowable values are:config_map
,secret
. The value must match regular expression/^(config_map|secret)$/
.
- Constraints: The default value is
Import
You can import the ibm_code_engine_job
resource by using name
.
The name
property can be formed from project_id
, and name
in the following format:
<project_id>/<name>
project_id
: A string in the format15314cc3-85b4-4338-903f-c28cdee6d005
. The ID of the project.name
: A string in the formatmy-job
. The name of the job.
Syntax
```sh $ pulumi import ibm:index/codeEngineJob:CodeEngineJob code_engine_job <project_id>/<name> ```
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.