Skip to main content

jobs

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

Overview

Namejobs
TypeResource
Idgoogle.datapipelines.jobs

Fields

NameDatatypeDescription
idstringOutput only. The internal ID for the job.
namestringRequired. The fully qualified resource name for the job.
createTimestringOutput only. The time of job creation.
dataflowJobDetailsobjectPipeline job details specific to the Dataflow API. This is encapsulated here to allow for more executors to store their specific details separately.
endTimestringOutput only. The time of job termination. This is absent if the job is still running.
statestringThe current state of the job.
statusobjectThe Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC. Each Status message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide.

Methods

NameAccessible byRequired ParamsDescription
listSELECTlocationsId, pipelinesId, projectsIdLists jobs for a given pipeline. Throws a "FORBIDDEN" error if the caller doesn't have permission to access it.

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 locationsId = '{{ locationsId }}'
AND pipelinesId = '{{ pipelinesId }}'
AND projectsId = '{{ projectsId }}';