Skip to main content

jobs

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

Overview

Namejobs
TypeResource
Idgoogle.datapipelines.jobs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringOutput only. The internal ID for the job.
namestringRequired. The fully qualified resource name for the job.
createTimestring (google-datetime)Output only. The time of job creation.
dataflowJobDetailsobjectAll the details that are specific to a Dataflow job. (id: GoogleCloudDatapipelinesV1DataflowJobDetails)
endTimestring (google-datetime)Output only. The time of job termination. This is absent if the job is still running.
statestringThe current state of the job. (STATE_UNSPECIFIED, STATE_PENDING, STATE_RUNNING, STATE_DONE, STATE_FAILED, STATE_CANCELLED)
statusobjectStatus capturing any error code or message related to job creation or execution. (id: GoogleRpcStatus)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectprojectsId, locationsId, pipelinesIdpageToken, pageSizeLists jobs for a given pipeline. Throws a "FORBIDDEN" error if the caller doesn't have permission to access it.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
locationsIdstring
pipelinesIdstring
projectsIdstring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

Lists jobs for a given pipeline. Throws a "FORBIDDEN" error if the caller doesn't have permission to access it.

SELECT
id,
name,
createTime,
dataflowJobDetails,
endTime,
state,
status
FROM google.datapipelines.jobs
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND pipelinesId = '{{ pipelinesId }}' -- required
AND pageToken = '{{ pageToken }}'
AND pageSize = '{{ pageSize }}'
;