Skip to main content

metadata_jobs

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

Overview

Namemetadata_jobs
TypeResource
Idgoogle.dataplex.metadata_jobs

Fields

NameDatatypeDescription
namestringOutput only. Identifier. The name of the resource that the configuration is applied to, in the format projects/{project_number}/locations/{location_id}/metadataJobs/{metadata_job_id}.
createTimestringOutput only. The time when the metadata job was created.
importResultobjectResults from a metadata import job.
importSpecobjectJob specification for a metadata import job
labelsobjectOptional. User-defined labels.
statusobjectMetadata job status.
typestringRequired. Metadata job type.
uidstringOutput only. A system-generated, globally unique ID for the metadata job. If the metadata job is deleted and then re-created with the same name, this ID is different.
updateTimestringOutput only. The time when the metadata job was updated.

Methods

NameAccessible byRequired ParamsDescription
projects_locations_metadata_jobs_getSELECTlocationsId, metadataJobsId, projectsIdGets a metadata job.
projects_locations_metadata_jobs_listSELECTlocationsId, projectsIdLists metadata jobs.
projects_locations_metadata_jobs_createINSERTlocationsId, projectsIdCreates a metadata job. For example, use a metadata job to import Dataplex Catalog entries and aspects from a third-party system into Dataplex.
projects_locations_metadata_jobs_cancelEXEClocationsId, metadataJobsId, projectsIdCancels a metadata job.If you cancel a metadata import job that is in progress, the changes in the job might be partially applied. We recommend that you reset the state of the entry groups in your project by running another metadata job that reverts the changes from the canceled job.

SELECT examples

Lists metadata jobs.

SELECT
name,
createTime,
importResult,
importSpec,
labels,
status,
type,
uid,
updateTime
FROM google.dataplex.metadata_jobs
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

INSERT example

Use the following StackQL query and manifest file to create a new metadata_jobs resource.

/*+ create */
INSERT INTO google.dataplex.metadata_jobs (
locationsId,
projectsId,
labels,
type,
importSpec
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ labels }}',
'{{ type }}',
'{{ importSpec }}'
;