Skip to main content

jobs

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

Overview

Namejobs
TypeResource
Idgoogle.dataplex.jobs

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringOutput only. The relative resource name of the job, of the form: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}/jobs/{job_id}.
endTimestring (google-datetime)Output only. The time when the job ended.
executionSpecobjectOutput only. Spec related to how a task is executed. (id: GoogleCloudDataplexV1TaskExecutionSpec)
labelsobjectOutput only. User-defined labels for the task.
messagestringOutput only. Additional information about the current state.
retryCountinteger (uint32)Output only. The number of times the job has been retried (excluding the initial attempt).
servicestringOutput only. The underlying service running a job.
serviceJobstringOutput only. The full resource name for the job run under a particular service.
startTimestring (google-datetime)Output only. The time when the job was started.
statestringOutput only. Execution state for the job.
triggerstringOutput only. Job execution trigger.
uidstringOutput only. System generated globally unique ID for the job.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_lakes_tasks_jobs_getselectprojectsId, locationsId, lakesId, tasksId, jobsIdGet job resource.
projects_locations_lakes_tasks_jobs_listselectprojectsId, locationsId, lakesId, tasksIdpageSize, pageTokenLists Jobs under the given task.
projects_locations_data_scans_jobs_getselectprojectsId, locationsId, dataScansId, jobsIdviewGets a DataScanJob resource.
projects_locations_data_scans_jobs_listselectprojectsId, locationsId, dataScansIdpageSize, pageToken, filterLists DataScanJobs under the given DataScan.
projects_locations_lakes_tasks_jobs_cancelexecprojectsId, locationsId, lakesId, tasksId, jobsIdCancel jobs running for the task resource.
projects_locations_data_scans_jobs_generate_data_quality_rulesexecprojectsId, locationsId, dataScansId, jobsIdGenerates recommended data quality rules based on the results of a data profiling scan.Use the recommendations to build rules for a data quality scan.

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
dataScansIdstring
jobsIdstring
lakesIdstring
locationsIdstring
projectsIdstring
tasksIdstring
filterstring
pageSizeinteger (int32)
pageTokenstring
viewstring

SELECT examples

Get job resource.

SELECT
name,
endTime,
executionSpec,
labels,
message,
retryCount,
service,
serviceJob,
startTime,
state,
trigger,
uid
FROM google.dataplex.jobs
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND lakesId = '{{ lakesId }}' -- required
AND tasksId = '{{ tasksId }}' -- required
AND jobsId = '{{ jobsId }}' -- required;

Lifecycle Methods

Cancel jobs running for the task resource.

EXEC google.dataplex.jobs.projects_locations_lakes_tasks_jobs_cancel 
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@lakesId='{{ lakesId }}' --required,
@tasksId='{{ tasksId }}' --required,
@jobsId='{{ jobsId }}' --required;