- INFORMATION
-
gcloud alpha dataplex datascans create data-documentationis not available in universe domainuniverse. - NAME
-
- gcloud alpha dataplex datascans create data-documentation - create a Dataplex data documentation scan job
- SYNOPSIS
-
-
gcloud alpha dataplex datascans create data-documentation(DATASCAN:--location=LOCATION) (--data-source-entity=DATA_SOURCE_ENTITY|--data-source-resource=DATA_SOURCE_RESOURCE) [--description=DESCRIPTION] [--display-name=DISPLAY_NAME] [--labels=[KEY=VALUE,…]] [--async|--validate-only] [--on-demand=ON_DEMAND|--schedule=SCHEDULE] [GCLOUD_WIDE_FLAG …]
-
- DESCRIPTION
-
(ALPHA)Allows users to generate documentation for Dataplex BigQuery tables. - EXAMPLES
-
To create a data documentation scan
data-documentation-datascanin projecttest-projectlocated inus-central1on entitytest-entity, run:gcloud alpha dataplex datascans create data-documentation data-documentation-datascan --project=test-project --location=us-central1 --data-source-resource="//bigquery.{universe_domain}/projects/test-project/datasets/test-dataset/tables/test-table" - POSITIONAL ARGUMENTS
-
-
Datascan resource - Arguments and flags that define the Dataplex datascan you
want to create a data documentation scan for. The arguments in this group can be
used to specify the attributes of this resource. (NOTE) Some attributes are not
given arguments in this group but can be set in other ways.
To set the
projectattribute:-
provide the argument
datascanon the command line with a fully specified name; -
provide the argument
--projecton the command line; -
set the property
core/project.
This must be specified.
DATASCAN-
ID of the datascan or fully qualified identifier for the datascan.
To set the
dataScansattribute:-
provide the argument
datascanon the command line.
This positional argument must be specified if any of the other arguments in this group are specified.
-
provide the argument
--location=LOCATION-
The location of the Dataplex resource.
To set the
locationattribute:-
provide the argument
datascanon the command line with a fully specified name; -
provide the argument
--locationon the command line; -
set the property
dataplex/location.
-
provide the argument
-
provide the argument
-
Datascan resource - Arguments and flags that define the Dataplex datascan you
want to create a data documentation scan for. The arguments in this group can be
used to specify the attributes of this resource. (NOTE) Some attributes are not
given arguments in this group but can be set in other ways.
- REQUIRED FLAGS
-
-
Data source for the data documentation scan.
Exactly one of these must be specified:
--data-source-entity=DATA_SOURCE_ENTITY- The Dataplex entity that contains the data for the data documentation scan, of the form: projects/{project_id_or_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}. Currently only BigQuery table is supported.
--data-source-resource=DATA_SOURCE_RESOURCE- Fully-qualified service resource name of the cloud resource that contains the data for the data documentation scan, of the form: //bigquery.{universe_domain}/projects/{project_id_or_number}/datasets/{dataset_id}/tables/{table_id}.
-
Data source for the data documentation scan.
- OPTIONAL FLAGS
-
--description=DESCRIPTION- Description of the data documentation scan.
--display-name=DISPLAY_NAME- Display name of the data documentation scan.
--labels=[KEY=VALUE,…]-
List of label KEY=VALUE pairs to add.
Keys must start with a lowercase character and contain only hyphens (
-), underscores (_), lowercase characters, and numbers. Values must contain only hyphens (-), underscores (_), lowercase characters, and numbers. -
At most one of --async | --validate-only can be specified.
At most one of these can be specified:
--async- Return immediately, without waiting for the operation in progress to complete.
--validate-only- Validate the create action, but don't actually perform it.
-
Data documentation scan execution settings.
-
Data documentation scan scheduling and trigger settings.
At most one of these can be specified:
--on-demand=ON_DEMAND- If set, the scan runs one-time shortly after data documentation scan creation.
--schedule=SCHEDULE-
Cron schedule (https://en.wikipedia.org/wiki/Cron) for running scans
periodically. To explicitly set a timezone to the cron tab, apply a prefix in
the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or "TZ=${IANA_TIME_ZONE}". The
${IANA_TIME_ZONE} may only be a valid string from IANA time zone database. For
example,
CRON_TZ=America/New_York 1 * * * *orTZ=America/New_York 1 * * * *. This field is required for RECURRING scans.
-
Data documentation scan scheduling and trigger settings.
- GCLOUD WIDE FLAGS
-
These flags are available to all commands:
--access-token-file,--account,--billing-project,--configuration,--flags-file,--flatten,--format,--help,--impersonate-service-account,--log-http,--project,--quiet,--trace-token,--user-output-enabled,--verbosity.Run
$ gcloud helpfor details. - NOTES
- This command is currently in alpha and might change without notice. If this command fails with API permission errors despite specifying the correct project, you might be trying to access an API with an invitation-only early access allowlist.
gcloud alpha dataplex datascans create data-documentation
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-11-04 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-11-04 UTC."],[],[]]