Skip to main content

job_runs

Creates, updates, deletes, gets or lists a job_runs resource.

Overview

Namejob_runs
TypeResource
Idgoogle.clouddeploy.job_runs

Fields

NameDatatypeDescription
namestringOptional. Name of the JobRun. Format is projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{releases}/rollouts/{rollouts}/jobRuns/{uuid}.
advanceChildRolloutJobRunobjectAdvanceChildRolloutJobRun contains information specific to a advanceChildRollout JobRun.
createChildRolloutJobRunobjectCreateChildRolloutJobRun contains information specific to a createChildRollout JobRun.
createTimestringOutput only. Time at which the JobRun was created.
deployJobRunobjectDeployJobRun contains information specific to a deploy JobRun.
endTimestringOutput only. Time at which the JobRun ended.
etagstringOutput only. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
jobIdstringOutput only. ID of the Rollout job this JobRun corresponds to.
phaseIdstringOutput only. ID of the Rollout phase this JobRun belongs in.
postdeployJobRunobjectPostdeployJobRun contains information specific to a postdeploy JobRun.
predeployJobRunobjectPredeployJobRun contains information specific to a predeploy JobRun.
startTimestringOutput only. Time at which the JobRun was started.
statestringOutput only. The current state of the JobRun.
uidstringOutput only. Unique identifier of the JobRun.
verifyJobRunobjectVerifyJobRun contains information specific to a verify JobRun.

Methods

NameAccessible byRequired ParamsDescription
getSELECTdeliveryPipelinesId, jobRunsId, locationsId, projectsId, releasesId, rolloutsIdGets details of a single JobRun.
listSELECTdeliveryPipelinesId, locationsId, projectsId, releasesId, rolloutsIdLists JobRuns in a given project and location.
terminateEXECdeliveryPipelinesId, jobRunsId, locationsId, projectsId, releasesId, rolloutsIdTerminates a Job Run in a given project and location.

SELECT examples

Lists JobRuns in a given project and location.

SELECT
name,
advanceChildRolloutJobRun,
createChildRolloutJobRun,
createTime,
deployJobRun,
endTime,
etag,
jobId,
phaseId,
postdeployJobRun,
predeployJobRun,
startTime,
state,
uid,
verifyJobRun
FROM google.clouddeploy.job_runs
WHERE deliveryPipelinesId = '{{ deliveryPipelinesId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND releasesId = '{{ releasesId }}'
AND rolloutsId = '{{ rolloutsId }}';