job_runs
Creates, updates, deletes, gets or lists a job_runs
resource.
Overview
Name | job_runs |
Type | Resource |
Id | google.clouddeploy.job_runs |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Optional. Name of the JobRun . Format is projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{releases}/rollouts/{rollouts}/jobRuns/{uuid} . |
advanceChildRolloutJobRun | object | AdvanceChildRolloutJobRun contains information specific to a advanceChildRollout JobRun . |
createChildRolloutJobRun | object | CreateChildRolloutJobRun contains information specific to a createChildRollout JobRun . |
createTime | string | Output only. Time at which the JobRun was created. |
deployJobRun | object | DeployJobRun contains information specific to a deploy JobRun . |
endTime | string | Output only. Time at which the JobRun ended. |
etag | string | Output 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. |
jobId | string | Output only. ID of the Rollout job this JobRun corresponds to. |
phaseId | string | Output only. ID of the Rollout phase this JobRun belongs in. |
postdeployJobRun | object | PostdeployJobRun contains information specific to a postdeploy JobRun . |
predeployJobRun | object | PredeployJobRun contains information specific to a predeploy JobRun . |
startTime | string | Output only. Time at which the JobRun was started. |
state | string | Output only. The current state of the JobRun . |
uid | string | Output only. Unique identifier of the JobRun . |
verifyJobRun | object | VerifyJobRun contains information specific to a verify JobRun . |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | deliveryPipelinesId, jobRunsId, locationsId, projectsId, releasesId, rolloutsId | Gets details of a single JobRun. |
list | SELECT | deliveryPipelinesId, locationsId, projectsId, releasesId, rolloutsId | Lists JobRuns in a given project and location. |
terminate | EXEC | deliveryPipelinesId, jobRunsId, locationsId, projectsId, releasesId, rolloutsId | Terminates 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 }}';