Resource: Job
Job represents the configuration of a single job, which references a container image that is run to completion.
JSON representation |
---|
{ "name": string, "uid": string, "generation": string, "labels": { string: string, ... }, "annotations": { string: string, ... }, "createTime": string, "updateTime": string, "deleteTime": string, "expireTime": string, "creator": string, "lastModifier": string, "client": string, "clientVersion": string, "launchStage": enum ( |
Fields | |
---|---|
name |
The fully qualified name of this Job. Format: projects/{project}/locations/{location}/jobs/{job} |
uid |
Output only. Server assigned unique identifier for the Execution. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted. |
generation |
Output only. A number that monotonically increases every time the user modifies the desired state. |
labels |
Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does not support labels with An object containing a list of |
annotations |
Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Cloud Run API v2 does not support annotations with This field follows Kubernetes annotations' namespacing, limits, and rules. An object containing a list of |
createTime |
Output only. The creation time. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
updateTime |
Output only. The last-modified time. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
deleteTime |
Output only. The deletion time. It is only populated as a response to a Delete request. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
expireTime |
Output only. For a deleted resource, the time after which it will be permamently deleted. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
creator |
Output only. Email address of the authenticated creator. |
lastModifier |
Output only. Email address of the last authenticated modifier. |
client |
Arbitrary identifier for the API client. |
clientVersion |
Arbitrary version identifier for the API client. |
launchStage |
The launch stage as defined by Google Cloud Platform Launch Stages. Cloud Run supports For example, if ALPHA is provided as input, but only BETA and GA-level features are used, this field will be BETA on output. |
binaryAuthorization |
Settings for the Binary Authorization feature. |
template |
Required. The template used to create executions for this Job. |
observedGeneration |
Output only. The generation of this Job. See comments in |
terminalCondition |
Output only. The Condition of this Job, containing its readiness status, and detailed error information in case it did not reach the desired state. |
conditions[] |
Output only. The Conditions of all other associated sub-resources. They contain additional diagnostics information in case the Job does not reach its desired state. See comments in |
executionCount |
Output only. Number of executions created for this job. |
latestCreatedExecution |
Output only. Name of the last created execution. |
reconciling |
Output only. Returns true if the Job is currently being acted upon by the system to bring it into the desired state. When a new Job is created, or an existing one is updated, Cloud Run will asynchronously perform all necessary steps to bring the Job to the desired state. This process is called reconciliation. While reconciliation is in process, If reconciliation succeeded, the following fields will match: If reconciliation failed, |
satisfiesPzs |
Output only. Reserved for future use. |
etag |
Output only. A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates. |
Union field
|
|
startExecutionToken |
A unique string used as a suffix creating a new execution. The Job will become ready when the execution is successfully started. The sum of job name and token length must be fewer than 63 characters. |
runExecutionToken |
A unique string used as a suffix for creating a new execution. The Job will become ready when the execution is successfully completed. The sum of job name and token length must be fewer than 63 characters. |
ExecutionTemplate
ExecutionTemplate describes the data an execution should have when created from a template.
JSON representation |
---|
{
"labels": {
string: string,
...
},
"annotations": {
string: string,
...
},
"parallelism": integer,
"taskCount": integer,
"template": {
object ( |
Fields | |
---|---|
labels |
Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does not support labels with An object containing a list of |
annotations |
Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Cloud Run API v2 does not support annotations with This field follows Kubernetes annotations' namespacing, limits, and rules. An object containing a list of |
parallelism |
Specifies the maximum desired number of tasks the execution should run at given time. Must be <= taskCount. When the job is run, if this field is 0 or unset, the maximum possible value will be used for that execution. The actual number of tasks running in steady state will be less than this number when there are fewer tasks waiting to be completed remaining, i.e. when the work left to do is less than max parallelism. |
taskCount |
Specifies the desired number of tasks the execution should run. Setting to 1 means that parallelism is limited to 1 and the success of that task signals the success of the execution. Defaults to 1. |
template |
Required. Describes the task(s) that will be created when executing an execution. |
ExecutionReference
Reference to an Execution. Use /Executions.GetExecution with the given name to get full execution including the latest status.
JSON representation |
---|
{
"name": string,
"createTime": string,
"completionTime": string,
"deleteTime": string,
"completionStatus": enum ( |
Fields | |
---|---|
name |
Name of the execution. |
createTime |
Creation timestamp of the execution. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
completionTime |
Creation timestamp of the execution. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
deleteTime |
The deletion time of the execution. It is only populated as a response to a Delete request. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
completionStatus |
Status for the execution completion. |
CompletionStatus
Possible execution completion status.
Enums | |
---|---|
COMPLETION_STATUS_UNSPECIFIED |
The default value. This value is used if the state is omitted. |
EXECUTION_SUCCEEDED |
Job execution has succeeded. |
EXECUTION_FAILED |
Job execution has failed. |
EXECUTION_RUNNING |
Job execution is running normally. |
EXECUTION_PENDING |
Waiting for backing resources to be provisioned. |
EXECUTION_CANCELLED |
Job execution has been cancelled by the user. |
Methods |
|
---|---|
|
Creates a Job. |
|
Deletes a Job. |
|
Gets information about a Job. |
|
Gets the IAM Access Control policy currently in effect for the given Job. |
|
Lists Jobs. |
|
Updates a Job. |
|
Triggers creation of a new Execution of this Job. |
|
Sets the IAM Access control policy for the specified Job. |
|
Returns permissions that a caller has on the specified Project. |