---
title: "POST /v1/projects/{projectsId}/locations/{locationsId}/dataScans"
method: POST
path: "/v1/projects/{projectsId}/locations/{locationsId}/dataScans"
tags: ["projects"]
---

# POST /v1/projects/{projectsId}/locations/{locationsId}/dataScans

`POST /v1/projects/{projectsId}/locations/{locationsId}/dataScans`

## Request

- Base URL: `https://dataplex.googleapis.com`
- URL: `https://dataplex.googleapis.com/v1/projects/{projectsId}/locations/{locationsId}/dataScans`
- Auth: one of:
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/cloud-platform`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloud-platform`
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/dataplex.read-write`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/dataplex.read-write`

Creates a DataScan resource.

## Path parameters

- `projectsId` string, required
- `locationsId` string, required

## Query parameters

- `$.xgafv` '1' | '2'
- `access_token` string
- `alt` 'json' | 'media' | 'proto'
- `callback` string
- `fields` string
- `key` string
- `oauth_token` string
- `prettyPrint` boolean
- `quotaUser` string
- `uploadType` string
- `upload_protocol` string
- `dataScanId` string
- `validateOnly` boolean

## Request body

- GoogleCloudDataplexV1DataScan: Represents a user-visible job which provides the insights for the related data source.For example: Data quality: generates queries based on the rules and runs against the data to get data quality check results. For more information, see Auto data quality overview (https://cloud.google.com/dataplex/docs/auto-data-quality-overview). Data profile: analyzes the data in tables and generates insights about the structure, content and relationships (such as null percent, cardinality, min/max/mean, etc). For more information, see About data profiling (https://cloud.google.com/dataplex/docs/data-profiling-overview). Data discovery: scans data in Cloud Storage buckets to extract and then catalog metadata. For more information, see Discover and catalog Cloud Storage data (https://cloud.google.com/bigquery/docs/automatic-discovery). Data documentation: analyzes the table or dataset metadata and generates insights. For tables, insights include descriptions and sample SQL queries. For datasets, insights include descriptions, schema relationships and sample SQL queries. For more information, see Generate data insights in BigQuery (https://cloud.google.com/bigquery/docs/data-insights).
  - `createTime` string, google-datetime: Output only. The time when the scan was created.
  - `data` GoogleCloudDataplexV1DataSource: The data source for DataScan.
    - `entity` string: Immutable. The Dataplex Universal Catalog entity that represents the data source (e.g. BigQuery table) for DataScan, of the form: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}.
    - `resource` string: Immutable. The service-qualified full resource name of the cloud resource for a DataScan job to scan against. The field could either be: Cloud Storage bucket for DataDiscoveryScan Format: //storage.googleapis.com/projects/PROJECT_ID/buckets/BUCKET_ID or BigQuery table of type "TABLE" for DataProfileScan/DataQualityScan/DataDocumentationScan Format: //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID or BigQuery dataset for DataDocumentationScan only Format: //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID
  - `dataDiscoveryResult` GoogleCloudDataplexV1DataDiscoveryResult: The output of a data discovery scan.
    - `bigqueryPublishing` GoogleCloudDataplexV1DataDiscoveryResultBigQueryPublishing: Describes BigQuery publishing configurations.
      - `dataset` string: Output only. The BigQuery dataset the discovered tables are published to.
      - `location` string: Output only. The location of the BigQuery publishing dataset.
    - `scanStatistics` GoogleCloudDataplexV1DataDiscoveryResultScanStatistics: Describes result statistics of a data scan discovery job.
      - `dataProcessedBytes` string, int64: The data processed in bytes.
      - `filesExcluded` integer: The number of files excluded.
      - `filesetsCreated` integer: The number of filesets created.
      - `filesetsDeleted` integer: The number of filesets deleted.
      - `filesetsUpdated` integer: The number of filesets updated.
      - `scannedFileCount` integer: The number of files scanned.
      - `tablesCreated` integer: The number of tables created.
      - `tablesDeleted` integer: The number of tables deleted.
      - `tablesUpdated` integer: The number of tables updated.
  - `dataDiscoverySpec` GoogleCloudDataplexV1DataDiscoverySpec: Spec for a data discovery scan.
    - `bigqueryPublishingConfig` GoogleCloudDataplexV1DataDiscoverySpecBigQueryPublishingConfig: Describes BigQuery publishing configurations.
      - `connection` string: Optional. The BigQuery connection used to create BigLake tables. Must be in the form projects/{project_id}/locations/{location_id}/connections/{connection_id}
      - `location` string: Optional. The location of the BigQuery dataset to publish BigLake external or non-BigLake external tables to. 1. If the Cloud Storage bucket is located in a multi-region bucket, then BigQuery dataset can be in the same multi-region bucket or any single region that is included in the same multi-region bucket. The datascan can be created in any single region that is included in the same multi-region bucket 2. If the Cloud Storage bucket is located in a dual-region bucket, then BigQuery dataset can be located in regions that are included in the dual-region bucket, or in a multi-region that includes the dual-region. The datascan can be created in any single region that is included in the same dual-region bucket. 3. If the Cloud Storage bucket is located in a single region, then BigQuery dataset can be in the same single region or any multi-region bucket that includes the same single region. The datascan will be created in the same single region as the bucket. 4. If the BigQuery dataset is in single region, it must be in the same single region as the datascan.For supported values, refer to https://cloud.google.com/bigquery/docs/locations#supported_locations.
      - `project` string: Optional. The project of the BigQuery dataset to publish BigLake external or non-BigLake external tables to. If not specified, the project of the Cloud Storage bucket will be used. The format is "projects/{project_id_or_number}".
      - `tableType` 'TABLE_TYPE_UNSPECIFIED' | 'EXTERNAL' | 'BIGLAKE': Optional. Determines whether to publish discovered tables as BigLake external tables or non-BigLake external tables.
    - `storageConfig` GoogleCloudDataplexV1DataDiscoverySpecStorageConfig: Configurations related to Cloud Storage as the data source.
      - `csvOptions` GoogleCloudDataplexV1DataDiscoverySpecStorageConfigCsvOptions: Describes CSV and similar semi-structured data formats.
        - `delimiter` string: Optional. The delimiter that is used to separate values. The default is , (comma).
        - `encoding` string: Optional. The character encoding of the data. The default is UTF-8.
        - `headerRows` integer: Optional. The number of rows to interpret as header rows that should be skipped when reading data rows.
        - `quote` string: Optional. The character used to quote column values. Accepts " (double quotation mark) or ' (single quotation mark). If unspecified, defaults to " (double quotation mark).
        - `typeInferenceDisabled` boolean: Optional. Whether to disable the inference of data types for CSV data. If true, all columns are registered as strings.
      - `excludePatterns` string[]: Optional. Defines the data to exclude during discovery. Provide a list of patterns that identify the data to exclude. For Cloud Storage bucket assets, these patterns are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these patterns are interpreted as patterns to match table names.
      - `includePatterns` string[]: Optional. Defines the data to include during discovery when only a subset of the data should be considered. Provide a list of patterns that identify the data to include. For Cloud Storage bucket assets, these patterns are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these patterns are interpreted as patterns to match table names.
      - `jsonOptions` GoogleCloudDataplexV1DataDiscoverySpecStorageConfigJsonOptions: Describes JSON data format.
        - `encoding` string: Optional. The character encoding of the data. The default is UTF-8.
        - `typeInferenceDisabled` boolean: Optional. Whether to disable the inference of data types for JSON data. If true, all columns are registered as their primitive types (strings, number, or boolean).
  - `dataDocumentationResult` GoogleCloudDataplexV1DataDocumentationResult: The output of a DataDocumentation scan.
    - `dataProductResult` GoogleCloudDataplexV1DataDocumentationResultDataProductResult: Generated metadata about a data product.
      - `assetDescriptions` GoogleCloudDataplexV1DataDocumentationResultDataProductResultAssetDescription[]: Output only. Unordered list. Generated descriptions for assets in the data product. Note that some assets may not have a generated description. Such assets will not be included in this list.
        - `overview` string: Output only. A generated description for the asset.
        - `resource` string: Output only. The service-qualified full resource name of the asset. Example: //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
      - `overview` string: Output only. A detailed description for the data product.
      - `queries` GoogleCloudDataplexV1DataDocumentationResultQuery[]: Output only. Unordered list. Sample SQL queries for the data product.
        - `description` string: Output only. The description for the query.
        - `sql` string: Output only. The SQL query string which can be executed.
        - `sqlDialect` 'SQL_DIALECT_UNSPECIFIED' | 'GOOGLE_SQL' | 'SPARK_SQL': Output only. The SQL dialect of the query.
    - `datasetResult` GoogleCloudDataplexV1DataDocumentationResultDatasetResult: Insights for a dataset resource.
      - `overview` string: Output only. Generated Dataset description.
      - `queries` GoogleCloudDataplexV1DataDocumentationResultQuery[]: Output only. Sample SQL queries for the dataset.
        - `description` string: Output only. The description for the query.
        - `sql` string: Output only. The SQL query string which can be executed.
        - `sqlDialect` 'SQL_DIALECT_UNSPECIFIED' | 'GOOGLE_SQL' | 'SPARK_SQL': Output only. The SQL dialect of the query.
      - `schemaRelationships` GoogleCloudDataplexV1DataDocumentationResultSchemaRelationship[]: Output only. Relationships suggesting how tables in the dataset are related to each other, based on their schema.
        - `leftSchemaPaths` GoogleCloudDataplexV1DataDocumentationResultSchemaRelationshipSchemaPaths: Represents an ordered set of paths within a table's schema.
          - `paths` string[]: Output only. An ordered set of Paths to fields within the schema of the table. For fields nested within a top level field of type record, use '.' to separate field names. Examples: Top level field - top_level Nested field - top_level.child.sub_field
          - `tableFqn` string: Output only. The service-qualified full resource name of the table Ex: //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
        - `rightSchemaPaths` GoogleCloudDataplexV1DataDocumentationResultSchemaRelationshipSchemaPaths: Represents an ordered set of paths within a table's schema.
          - `paths` string[]: Output only. An ordered set of Paths to fields within the schema of the table. For fields nested within a top level field of type record, use '.' to separate field names. Examples: Top level field - top_level Nested field - top_level.child.sub_field
          - `tableFqn` string: Output only. The service-qualified full resource name of the table Ex: //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
        - `sources` string[]: Output only. Sources which generated the schema relation edge.
        - `type` 'TYPE_UNSPECIFIED' | 'SCHEMA_JOIN': Output only. The type of relationship between the schema paths.
    - `tableResult` GoogleCloudDataplexV1DataDocumentationResultTableResult: Insights for a table resource.
      - `name` string: Output only. The service-qualified full resource name of the cloud resource. Ex: //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
      - `overview` string: Output only. Generated description of the table.
      - `queries` GoogleCloudDataplexV1DataDocumentationResultQuery[]: Output only. Sample SQL queries for the table.
        - `description` string: Output only. The description for the query.
        - `sql` string: Output only. The SQL query string which can be executed.
        - `sqlDialect` 'SQL_DIALECT_UNSPECIFIED' | 'GOOGLE_SQL' | 'SPARK_SQL': Output only. The SQL dialect of the query.
      - `schema` GoogleCloudDataplexV1DataDocumentationResultSchema: Schema of the table with generated metadata of columns.
        - `fields` GoogleCloudDataplexV1DataDocumentationResultField[]: Output only. The list of columns.
          - `description` string: Output only. Generated description for columns and fields.
          - `fields` GoogleCloudDataplexV1DataDocumentationResultField[]: Output only. Nested fields.
          - `name` string: Output only. The name of the column.
  - `dataDocumentationSpec` GoogleCloudDataplexV1DataDocumentationSpec: DataDocumentation scan related spec.
    - `catalogPublishingEnabled` boolean: Optional. Whether to publish result to Dataplex Catalog.
    - `customInstructions` string: Optional. Custom instructions for generating data documentation. The maximum length is 2,048 characters.
    - `generationScopes` string[]: Optional. Specifies which components of the data documentation to generate. Any component that is required to generate the specified components will also be generated. If no generation scope is specified, all available documentation components will be generated.
    - `sqlDialect` 'SQL_DIALECT_UNSPECIFIED' | 'GOOGLE_SQL' | 'SPARK_SQL': Optional. The SQL dialect to use in the generated SQL queries. If not specified, the default dialect is Google SQL.
  - `dataProfileResult` GoogleCloudDataplexV1DataProfileResult: DataProfileResult defines the output of DataProfileScan. Each field of the table will have field type specific profile result.
    - `catalogPublishingStatus` GoogleCloudDataplexV1DataScanCatalogPublishingStatus: The status of publishing the data scan result as Dataplex Universal Catalog metadata. Multiple DataScan log events may exist, each with different publishing information depending on the type of publishing triggered.
      - `state` 'STATE_UNSPECIFIED' | 'SUCCEEDED' | 'FAILED' | 'SKIPPED': Output only. Execution state for publishing.
    - `postScanActionsResult` GoogleCloudDataplexV1DataProfileResultPostScanActionsResult: The result of post scan actions of DataProfileScan job.
      - `bigqueryExportResult` GoogleCloudDataplexV1DataProfileResultPostScanActionsResultBigQueryExportResult: The result of BigQuery export post scan action.
        - `message` string: Output only. Additional information about the BigQuery exporting.
        - `state` 'STATE_UNSPECIFIED' | 'SUCCEEDED' | 'FAILED' | 'SKIPPED': Output only. Execution state for the BigQuery exporting.
    - `profile` GoogleCloudDataplexV1DataProfileResultProfile: Contains name, type, mode and field type specific profile information.
      - `fields` GoogleCloudDataplexV1DataProfileResultProfileField[]: Output only. List of fields with structural and profile information for each field.
        - `mode` string: Output only. The mode of the field. Possible values include: REQUIRED, if it is a required field. NULLABLE, if it is an optional field. REPEATED, if it is a repeated field.
        - `name` string: Output only. The name of the field.
        - `profile` GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfo: The profile information for each field type.
          - `distinctRatio` number, double: Output only. Ratio of rows with distinct values against total scanned rows. Not available for complex non-groupable field type, including RECORD, ARRAY, GEOGRAPHY, and JSON, as well as fields with REPEATABLE mode.
          - `doubleProfile` GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoDoubleFieldInfo: The profile information for a double type field.
            - `average` number, double: Output only. Average of non-null values in the scanned data. NaN, if the field has a NaN.
            - `max` number, double: Output only. Maximum of non-null values in the scanned data. NaN, if the field has a NaN.
            - `min` number, double: Output only. Minimum of non-null values in the scanned data. NaN, if the field has a NaN.
            - `quartiles` number[]: Output only. A quartile divides the number of data points into four parts, or quarters, of more-or-less equal size. Three main quartiles used are: The first quartile (Q1) splits off the lowest 25% of data from the highest 75%. It is also known as the lower or 25th empirical quartile, as 25% of the data is below this point. The second quartile (Q2) is the median of a data set. So, 50% of the data lies below this point. The third quartile (Q3) splits off the highest 25% of data from the lowest 75%. It is known as the upper or 75th empirical quartile, as 75% of the data lies below this point. Here, the quartiles is provided as an ordered list of quartile values for the scanned data, occurring in order Q1, median, Q3.
            - `standardDeviation` number, double: Output only. Standard deviation of non-null values in the scanned data. NaN, if the field has a NaN.
          - `integerProfile` GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoIntegerFieldInfo: The profile information for an integer type field.
            - `average` number, double: Output only. Average of non-null values in the scanned data. NaN, if the field has a NaN.
            - `max` string, int64: Output only. Maximum of non-null values in the scanned data. NaN, if the field has a NaN.
            - `min` string, int64: Output only. Minimum of non-null values in the scanned data. NaN, if the field has a NaN.
            - `quartiles` string[]: Output only. A quartile divides the number of data points into four parts, or quarters, of more-or-less equal size. Three main quartiles used are: The first quartile (Q1) splits off the lowest 25% of data from the highest 75%. It is also known as the lower or 25th empirical quartile, as 25% of the data is below this point. The second quartile (Q2) is the median of a data set. So, 50% of the data lies below this point. The third quartile (Q3) splits off the highest 25% of data from the lowest 75%. It is known as the upper or 75th empirical quartile, as 75% of the data lies below this point. Here, the quartiles is provided as an ordered list of approximate quartile values for the scanned data, occurring in order Q1, median, Q3.
            - `standardDeviation` number, double: Output only. Standard deviation of non-null values in the scanned data. NaN, if the field has a NaN.
          - `nullRatio` number, double: Output only. Ratio of rows with null value against total scanned rows.
          - `stringProfile` GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoStringFieldInfo: The profile information for a string type field.
            - `averageLength` number, double: Output only. Average length of non-null values in the scanned data.
            - `maxLength` string, int64: Output only. Maximum length of non-null values in the scanned data.
            - `minLength` string, int64: Output only. Minimum length of non-null values in the scanned data.
          - `topNValues` GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoTopNValue[]: Output only. The list of top N non-null values, frequency and ratio with which they occur in the scanned data. N is 10 or equal to the number of distinct values in the field, whichever is smaller. Not available for complex non-groupable field type, including RECORD, ARRAY, GEOGRAPHY, and JSON, as well as fields with REPEATABLE mode.
            - `count` string, int64: Output only. Count of the corresponding value in the scanned data.
            - `ratio` number, double: Output only. Ratio of the corresponding value in the field against the total number of rows in the scanned data.
            - `value` string: Output only. String value of a top N non-null value.
        - `type` string: Output only. The data type retrieved from the schema of the data source. For instance, for a BigQuery native table, it is the BigQuery Table Schema (https://cloud.google.com/bigquery/docs/reference/rest/v2/tables#tablefieldschema). For a Dataplex Universal Catalog Entity, it is the Entity Schema (https://cloud.google.com/dataplex/docs/reference/rpc/google.cloud.dataplex.v1#type_3).
    - `rowCount` string, int64: Output only. The count of rows scanned.
    - `scannedData` GoogleCloudDataplexV1ScannedData: The data scanned during processing (e.g. in incremental DataScan)
      - `incrementalField` GoogleCloudDataplexV1ScannedDataIncrementalField: A data range denoted by a pair of start/end values of a field.
        - `end` string: Output only. Value that marks the end of the range.
        - `field` string: Output only. The field that contains values which monotonically increases over time (e.g. a timestamp column).
        - `start` string: Output only. Value that marks the start of the range.
  - `dataProfileSpec` GoogleCloudDataplexV1DataProfileSpec: DataProfileScan related setting.
    - `catalogPublishingEnabled` boolean: Optional. If set, the latest DataScan job result will be published as Dataplex Universal Catalog metadata.
    - `excludeFields` GoogleCloudDataplexV1DataProfileSpecSelectedFields: The specification for fields to include or exclude in data profile scan.
      - `fieldNames` string[]: Optional. Expected input is a list of fully qualified names of fields as in the schema.Only top-level field names for nested fields are supported. For instance, if 'x' is of nested field type, listing 'x' is supported but 'x.y.z' is not supported. Here 'y' and 'y.z' are nested fields of 'x'.
    - `includeFields` GoogleCloudDataplexV1DataProfileSpecSelectedFields: The specification for fields to include or exclude in data profile scan.
      - `fieldNames` string[]: Optional. Expected input is a list of fully qualified names of fields as in the schema.Only top-level field names for nested fields are supported. For instance, if 'x' is of nested field type, listing 'x' is supported but 'x.y.z' is not supported. Here 'y' and 'y.z' are nested fields of 'x'.
    - `mode` 'MODE_UNSPECIFIED' | 'STANDARD' | 'LIGHTWEIGHT': Optional. The execution mode for the profile scan.
    - `postScanActions` GoogleCloudDataplexV1DataProfileSpecPostScanActions: The configuration of post scan actions of DataProfileScan job.
      - `bigqueryExport` GoogleCloudDataplexV1DataProfileSpecPostScanActionsBigQueryExport: The configuration of BigQuery export post scan action.
        - `resultsTable` string: Optional. The BigQuery table to export DataProfileScan results to. Format: //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
    - `rowFilter` string: Optional. A filter applied to all rows in a single DataScan job. The filter needs to be a valid SQL expression for a WHERE clause in BigQuery standard SQL syntax. Example: col1 >= 0 AND col2 < 10
    - `samplingPercent` number, float: Optional. The percentage of the records to be selected from the dataset for DataScan. Value can range between 0.0 and 100.0 with up to 3 significant decimal digits. Sampling is not applied if sampling_percent is not specified, 0 or 100.
  - `dataQualityResult` GoogleCloudDataplexV1DataQualityResult: The output of a DataQualityScan.
    - `anomalyDetectionGeneratedAssets` GoogleCloudDataplexV1DataQualityResultAnomalyDetectionGeneratedAssets: The assets generated by Anomaly Detection Data Scan.
      - `dataIntermediateTable` string: Output only. The intermediate table for data anomaly detection. Format: PROJECT_ID.DATASET_ID.TABLE_ID
      - `freshnessIntermediateTable` string: Output only. The intermediate table for freshness anomaly detection. Format: PROJECT_ID.DATASET_ID.TABLE_ID
      - `resultTable` string: Output only. The result table for anomaly detection. Format: PROJECT_ID.DATASET_ID.TABLE_ID If the result table is set at AnomalyDetectionAssets, the result table here would be the same as the one set in the AnomalyDetectionAssets.result_table.
      - `volumeIntermediateTable` string: Output only. The intermediate table for volume anomaly detection. Format: PROJECT_ID.DATASET_ID.TABLE_ID
    - `catalogPublishingStatus` GoogleCloudDataplexV1DataScanCatalogPublishingStatus: The status of publishing the data scan result as Dataplex Universal Catalog metadata. Multiple DataScan log events may exist, each with different publishing information depending on the type of publishing triggered.
      - `state` 'STATE_UNSPECIFIED' | 'SUCCEEDED' | 'FAILED' | 'SKIPPED': Output only. Execution state for publishing.
    - `columns` GoogleCloudDataplexV1DataQualityColumnResult[]: Output only. A list of results at the column level.A column will have a corresponding DataQualityColumnResult if and only if there is at least one rule with the 'column' field set to it.
      - `column` string: Output only. The column specified in the DataQualityRule.
      - `dimensions` GoogleCloudDataplexV1DataQualityDimensionResult[]: Output only. The dimension-level results for this column.
        - `dimension` GoogleCloudDataplexV1DataQualityDimension: A dimension captures data quality intent about a defined subset of the rules specified.
          - `name` string: Output only. The dimension name a rule belongs to. Custom dimension name is supported with all uppercase letters and maximum length of 30 characters.
        - `passed` boolean: Output only. Whether the dimension passed or failed.
        - `score` number, float: Output only. The dimension-level data quality score for this data scan job if and only if the 'dimension' field is set.The score ranges between 0, 100 (up to two decimal points).
      - `passed` boolean: Output only. Whether the column passed or failed.
      - `score` number, float: Output only. The column-level data quality score for this data scan job if and only if the 'column' field is set.The score ranges between between 0, 100 (up to two decimal points).
    - `dimensions` GoogleCloudDataplexV1DataQualityDimensionResult[]: Output only. A list of results at the dimension level.A dimension will have a corresponding DataQualityDimensionResult if and only if there is at least one rule with the 'dimension' field set to it.
      - `dimension` GoogleCloudDataplexV1DataQualityDimension: A dimension captures data quality intent about a defined subset of the rules specified.
        - `name` string: Output only. The dimension name a rule belongs to. Custom dimension name is supported with all uppercase letters and maximum length of 30 characters.
      - `passed` boolean: Output only. Whether the dimension passed or failed.
      - `score` number, float: Output only. The dimension-level data quality score for this data scan job if and only if the 'dimension' field is set.The score ranges between 0, 100 (up to two decimal points).
    - `passed` boolean: Output only. Overall data quality result -- true if all rules passed.
    - `postScanActionsResult` GoogleCloudDataplexV1DataQualityResultPostScanActionsResult: The result of post scan actions of DataQualityScan job.
      - `bigqueryExportResult` GoogleCloudDataplexV1DataQualityResultPostScanActionsResultBigQueryExportResult: The result of BigQuery export post scan action.
        - `message` string: Output only. Additional information about the BigQuery exporting.
        - `state` 'STATE_UNSPECIFIED' | 'SUCCEEDED' | 'FAILED' | 'SKIPPED': Output only. Execution state for the BigQuery exporting.
    - `rowCount` string, int64: Output only. The count of rows processed.
    - `rules` GoogleCloudDataplexV1DataQualityRuleResult[]: Output only. A list of all the rules in a job, and their results.
      - `assertionRowCount` string, int64: Output only. The number of rows returned by the SQL statement in a SQL assertion rule.This field is only valid for SQL assertion rules.
      - `debugQueriesResultSets` GoogleCloudDataplexV1DataQualityRuleResultDebugQueryResultSet[]: Output only. Contains the results of all debug queries for this rule. The number of result sets will correspond to the number of debug_queries.
        - `results` GoogleCloudDataplexV1DataQualityRuleResultDebugQueryResult[]: Output only. Contains all results. Up to 10 results can be returned.
          - `name` string: Specifies the name of the result. Available if provided with an explicit alias using [AS] alias.
          - `type` string: Indicates the data type of the result. For more information, see BigQuery data types (https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types).
          - `value` string: Represents the value of the result as a string.
      - `evaluatedCount` string, int64: Output only. The number of rows a rule was evaluated against.This field is only valid for row-level type rules.Evaluated count can be configured to either include all rows (default) - with null rows automatically failing rule evaluation, or exclude null rows from the evaluated_count, by setting ignore_nulls = true.This field is not set for rule SqlAssertion.
      - `failingRowsQuery` string: Output only. The query to find rows that did not pass this rule.This field is only valid for row-level type rules.
      - `nullCount` string, int64: Output only. The number of rows with null values in the specified column.
      - `passRatio` number, double: Output only. The ratio of passed_count / evaluated_count.This field is only valid for row-level type rules.
      - `passed` boolean: Output only. Whether the rule passed or failed.
      - `passedCount` string, int64: Output only. The number of rows which passed a rule evaluation.This field is only valid for row-level type rules.This field is not set for rule SqlAssertion.
      - `rule` GoogleCloudDataplexV1DataQualityRule: A rule captures data quality intent about a data source.
        - `attributes` object: Optional. Map of attribute name and value linked to the rule. The rules to evaluate can be filtered based on attributes provided here and a filter expression provided in the DataQualitySpec.filter field.
        - `column` string: Optional. The unnested column which this rule is evaluated against.
        - `debugQueries` GoogleCloudDataplexV1DataQualityRuleDebugQuery[]: Optional. Specifies the debug queries for this rule. Currently, only one query is supported, but this may be expanded in the future.
          - `description` string: Optional. Specifies the description of the debug query. The maximum length is 1,024 characters.
          - `sqlStatement` string: Required. Specifies the SQL statement to be executed.
        - `description` string: Optional. Description of the rule. The maximum length is 1,024 characters.
        - `dimension` string: Optional. The dimension a rule belongs to. Results are also aggregated at the dimension level. Custom dimension name is supported with all uppercase letters and maximum length of 30 characters.
        - `ignoreNull` boolean: Optional. Rows with null values will automatically fail a rule, unless ignore_null is true. In that case, such null rows are trivially considered passing.This field is only valid for the following type of rules: RangeExpectation RegexExpectation SetExpectation UniquenessExpectation
        - `name` string: Optional. A mutable name for the rule. The name must contain only letters (a-z, A-Z), numbers (0-9), or hyphens (-). The maximum length is 63 characters. Must start with a letter. Must end with a number or a letter.
        - `nonNullExpectation` GoogleCloudDataplexV1DataQualityRuleNonNullExpectation: Evaluates whether each column value is null.
        - `rangeExpectation` GoogleCloudDataplexV1DataQualityRuleRangeExpectation: Evaluates whether each column value lies between a specified range.
          - `maxValue` string: Optional. The maximum column value allowed for a row to pass this validation. At least one of min_value and max_value need to be provided.
          - `minValue` string: Optional. The minimum column value allowed for a row to pass this validation. At least one of min_value and max_value need to be provided.
          - `strictMaxEnabled` boolean: Optional. Whether each value needs to be strictly lesser than ('<') the maximum, or if equality is allowed.Only relevant if a max_value has been defined. Default = false.
          - `strictMinEnabled` boolean: Optional. Whether each value needs to be strictly greater than ('>') the minimum, or if equality is allowed.Only relevant if a min_value has been defined. Default = false.
        - `regexExpectation` GoogleCloudDataplexV1DataQualityRuleRegexExpectation: Evaluates whether each column value matches a specified regex.
          - `regex` string: Optional. A regular expression the column value is expected to match.
        - `rowConditionExpectation` GoogleCloudDataplexV1DataQualityRuleRowConditionExpectation: Evaluates whether each row passes the specified condition.The SQL expression needs to use GoogleSQL syntax (https://cloud.google.com/bigquery/docs/reference/standard-sql/query-syntax) and should produce a boolean value per row as the result.Example: col1 >= 0 AND col2 < 10
          - `sqlExpression` string: Optional. The SQL expression.
        - `ruleSource` GoogleCloudDataplexV1DataQualityRuleRuleSource: Represents the rule source information from Catalog.
          - `rulePathElements` GoogleCloudDataplexV1DataQualityRuleRuleSourceRulePathElement[]: Output only. Rule path elements represent information about the individual items in the relationship path between the scan resource and rule origin in that order.
            - `entryLinkSource` GoogleCloudDataplexV1DataQualityRuleRuleSourceRulePathElementEntryLinkSource: Entry link source represents information about the entry link.
              - …
            - `entrySource` GoogleCloudDataplexV1DataQualityRuleRuleSourceRulePathElementEntrySource: Entry source represents information about the related source entry.
              - …
        - `setExpectation` GoogleCloudDataplexV1DataQualityRuleSetExpectation: Evaluates whether each column value is contained by a specified set.
          - `values` string[]: Optional. Expected values for the column value.
        - `sqlAssertion` GoogleCloudDataplexV1DataQualityRuleSqlAssertion: A SQL statement that is evaluated to return rows that match an invalid state. If any rows are are returned, this rule fails.The SQL statement must use GoogleSQL syntax (https://cloud.google.com/bigquery/docs/reference/standard-sql/query-syntax), and must not contain any semicolons.You can use the data reference parameter ${data()} to reference the source table with all of its precondition filters applied. Examples of precondition filters include row filters, incremental data filters, and sampling. For more information, see Data reference parameter (https://cloud.google.com/dataplex/docs/auto-data-quality-overview#data-reference-parameter).Example: SELECT * FROM ${data()} WHERE price < 0
          - `sqlStatement` string: Optional. The SQL statement.
        - `statisticRangeExpectation` GoogleCloudDataplexV1DataQualityRuleStatisticRangeExpectation: Evaluates whether the column aggregate statistic lies between a specified range.
          - `maxValue` string: Optional. The maximum column statistic value allowed for a row to pass this validation.At least one of min_value and max_value need to be provided.
          - `minValue` string: Optional. The minimum column statistic value allowed for a row to pass this validation.At least one of min_value and max_value need to be provided.
          - `statistic` 'STATISTIC_UNDEFINED' | 'MEAN' | 'MIN' | 'MAX': Optional. The aggregate metric to evaluate.
          - `strictMaxEnabled` boolean: Optional. Whether column statistic needs to be strictly lesser than ('<') the maximum, or if equality is allowed.Only relevant if a max_value has been defined. Default = false.
          - `strictMinEnabled` boolean: Optional. Whether column statistic needs to be strictly greater than ('>') the minimum, or if equality is allowed.Only relevant if a min_value has been defined. Default = false.
        - `suspended` boolean: Optional. Whether the Rule is active or suspended. Default is false.
        - `tableConditionExpectation` GoogleCloudDataplexV1DataQualityRuleTableConditionExpectation: Evaluates whether the provided expression is true.The SQL expression needs to use GoogleSQL syntax (https://cloud.google.com/bigquery/docs/reference/standard-sql/query-syntax) and should produce a scalar boolean result.Example: MIN(col1) >= 0
          - `sqlExpression` string: Optional. The SQL expression.
        - `templateReference` GoogleCloudDataplexV1DataQualityRuleTemplateReference: A rule that constructs a SQL statement to evaluate using a rule template and parameter values. If the constructed statement returns any rows, this rule fails
          - `name` string: Required. The template entry name. Entry must be of EntryType projects/dataplex-types/locations/global/entryTypes/data-quality-rule-template and contains top-level aspect of AspectType projects/dataplex-types/locations/global/aspectTypes/data-quality-rule-template. The format is: projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}
          - `resolvedSql` string: Output only. The resolved SQL statement generated from the template with parameters substituted. It is only populated in the result.
          - `ruleTemplate` GoogleCloudDataplexV1DataQualityRuleTemplate: DataQualityRuleTemplate represents a template which can be reused across multiple data quality rules.
            - `capabilities` string[]: Output only. A list of features or properties supported by this rule template.
            - `dimension` string: Output only. The dimension a rule template belongs to. Rule level results are also aggregated at the dimension level.
            - `inputParameters` object: Output only. Description for input parameters
            - `name` string: Output only. The name of the rule template in the format: projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}
            - `sqlCollection` GoogleCloudDataplexV1DataQualityRuleTemplateSql[]: Output only. Collection of SQLs for data quality rules. Currently only one SQL is supported.
              - …
          - `values` object: Optional. Provides the map of parameter name and value. The maximum size of the field is 120KB (encoded as UTF-8).
        - `threshold` number, double: Optional. The minimum ratio of passing_rows / total_rows required to pass this rule, with a range of 0.0, 1.0.0 indicates default value (i.e. 1.0).This field is only valid for row-level type rules.
        - `uniquenessExpectation` GoogleCloudDataplexV1DataQualityRuleUniquenessExpectation: Evaluates whether the column has duplicates.
    - `scannedData` GoogleCloudDataplexV1ScannedData: The data scanned during processing (e.g. in incremental DataScan)
      - `incrementalField` GoogleCloudDataplexV1ScannedDataIncrementalField: A data range denoted by a pair of start/end values of a field.
        - `end` string: Output only. Value that marks the end of the range.
        - `field` string: Output only. The field that contains values which monotonically increases over time (e.g. a timestamp column).
        - `start` string: Output only. Value that marks the start of the range.
    - `score` number, float: Output only. The overall data quality score.The score ranges between 0, 100 (up to two decimal points).
  - `dataQualitySpec` GoogleCloudDataplexV1DataQualitySpec: DataQualityScan related setting.
    - `catalogPublishingEnabled` boolean: Optional. If set, the latest DataScan job result will be published as Dataplex Universal Catalog metadata.
    - `enableCatalogBasedRules` boolean: Optional. If enabled, the data scan will retrieve rules defined in the dataplex-types.global.data-rules aspect on all paths of the catalog entry corresponding to the BigQuery table resource and all attached glossary terms. The path that data-rules aspect is attached on the table entry defines the column that the rule will be evaluated against. For glossary terms, the path that the terms are attached on the table entry defines the column that the rule will be evaluated against. At the start of scan execution, the rules reflect the latest state retrieved from the catalog entry and any updates on the rules thereafter are ignored for that execution. The updates will be reflected from the next execution. Rules defined in the datascan must be empty if this field is enabled.
    - `filter` string: Optional. Filter for selectively running a subset of rules. You can filter the request by the name or attribute key-value pairs defined on the rule. If not specified, all rules are run. The filter is applicable to both, the rules retrieved from catalog and explicitly defined rules in the scan. Please see filter syntax (https://docs.cloud.google.com/dataplex/docs/auto-data-quality-overview#rule-filtering) for more details.
    - `postScanActions` GoogleCloudDataplexV1DataQualitySpecPostScanActions: The configuration of post scan actions of DataQualityScan.
      - `bigqueryExport` GoogleCloudDataplexV1DataQualitySpecPostScanActionsBigQueryExport: The configuration of BigQuery export post scan action.
        - `resultsTable` string: Optional. The BigQuery table to export DataQualityScan results to. Format: //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID or projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
      - `notificationReport` GoogleCloudDataplexV1DataQualitySpecPostScanActionsNotificationReport: The configuration of notification report post scan action.
        - `jobEndTrigger` GoogleCloudDataplexV1DataQualitySpecPostScanActionsJobEndTrigger: This trigger is triggered whenever a scan job run ends, regardless of the result.
        - `jobFailureTrigger` GoogleCloudDataplexV1DataQualitySpecPostScanActionsJobFailureTrigger: This trigger is triggered when the scan job itself fails, regardless of the result.
        - `recipients` GoogleCloudDataplexV1DataQualitySpecPostScanActionsRecipients: The individuals or groups who are designated to receive notifications upon triggers.
          - `emails` string[]: Optional. The email recipients who will receive the DataQualityScan results report.
        - `scoreThresholdTrigger` GoogleCloudDataplexV1DataQualitySpecPostScanActionsScoreThresholdTrigger: This trigger is triggered when the DQ score in the job result is less than a specified input score.
          - `scoreThreshold` number, float: Optional. The score range is in 0,100.
    - `rowFilter` string: Optional. A filter applied to all rows in a single DataScan job. The filter needs to be a valid SQL expression for a WHERE clause in GoogleSQL syntax (https://cloud.google.com/bigquery/docs/reference/standard-sql/query-syntax#where_clause).Example: col1 >= 0 AND col2 < 10
    - `rules` GoogleCloudDataplexV1DataQualityRule[]: Required. The list of rules to evaluate against a data source. At least one rule is required.
      - `attributes` object: Optional. Map of attribute name and value linked to the rule. The rules to evaluate can be filtered based on attributes provided here and a filter expression provided in the DataQualitySpec.filter field.
      - `column` string: Optional. The unnested column which this rule is evaluated against.
      - `debugQueries` GoogleCloudDataplexV1DataQualityRuleDebugQuery[]: Optional. Specifies the debug queries for this rule. Currently, only one query is supported, but this may be expanded in the future.
        - `description` string: Optional. Specifies the description of the debug query. The maximum length is 1,024 characters.
        - `sqlStatement` string: Required. Specifies the SQL statement to be executed.
      - `description` string: Optional. Description of the rule. The maximum length is 1,024 characters.
      - `dimension` string: Optional. The dimension a rule belongs to. Results are also aggregated at the dimension level. Custom dimension name is supported with all uppercase letters and maximum length of 30 characters.
      - `ignoreNull` boolean: Optional. Rows with null values will automatically fail a rule, unless ignore_null is true. In that case, such null rows are trivially considered passing.This field is only valid for the following type of rules: RangeExpectation RegexExpectation SetExpectation UniquenessExpectation
      - `name` string: Optional. A mutable name for the rule. The name must contain only letters (a-z, A-Z), numbers (0-9), or hyphens (-). The maximum length is 63 characters. Must start with a letter. Must end with a number or a letter.
      - `nonNullExpectation` GoogleCloudDataplexV1DataQualityRuleNonNullExpectation: Evaluates whether each column value is null.
      - `rangeExpectation` GoogleCloudDataplexV1DataQualityRuleRangeExpectation: Evaluates whether each column value lies between a specified range.
        - `maxValue` string: Optional. The maximum column value allowed for a row to pass this validation. At least one of min_value and max_value need to be provided.
        - `minValue` string: Optional. The minimum column value allowed for a row to pass this validation. At least one of min_value and max_value need to be provided.
        - `strictMaxEnabled` boolean: Optional. Whether each value needs to be strictly lesser than ('<') the maximum, or if equality is allowed.Only relevant if a max_value has been defined. Default = false.
        - `strictMinEnabled` boolean: Optional. Whether each value needs to be strictly greater than ('>') the minimum, or if equality is allowed.Only relevant if a min_value has been defined. Default = false.
      - `regexExpectation` GoogleCloudDataplexV1DataQualityRuleRegexExpectation: Evaluates whether each column value matches a specified regex.
        - `regex` string: Optional. A regular expression the column value is expected to match.
      - `rowConditionExpectation` GoogleCloudDataplexV1DataQualityRuleRowConditionExpectation: Evaluates whether each row passes the specified condition.The SQL expression needs to use GoogleSQL syntax (https://cloud.google.com/bigquery/docs/reference/standard-sql/query-syntax) and should produce a boolean value per row as the result.Example: col1 >= 0 AND col2 < 10
        - `sqlExpression` string: Optional. The SQL expression.
      - `ruleSource` GoogleCloudDataplexV1DataQualityRuleRuleSource: Represents the rule source information from Catalog.
        - `rulePathElements` GoogleCloudDataplexV1DataQualityRuleRuleSourceRulePathElement[]: Output only. Rule path elements represent information about the individual items in the relationship path between the scan resource and rule origin in that order.
          - `entryLinkSource` GoogleCloudDataplexV1DataQualityRuleRuleSourceRulePathElementEntryLinkSource: Entry link source represents information about the entry link.
            - `entryLink` string: Output only. The entry link name in the form of: projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entryLinks/{entry_link_id}
            - `entryLinkType` string: Output only. The entry link type to represent the current relationship between the entry and the next entry in the path. In the form of: projects/{project_id_or_number}/locations/{location_id}/entryLinkTypes/{entry_link_type_id}
          - `entrySource` GoogleCloudDataplexV1DataQualityRuleRuleSourceRulePathElementEntrySource: Entry source represents information about the related source entry.
            - `displayName` string: Output only. The display name of the entry.
            - `entry` string: Output only. The entry name in the form of: projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}
            - `entryType` string: Output only. The entry type to represent the current characteristics of the entry in the form of: projects/{project_id_or_number}/locations/{location_id}/entryTypes/{entry-type-id}.
      - `setExpectation` GoogleCloudDataplexV1DataQualityRuleSetExpectation: Evaluates whether each column value is contained by a specified set.
        - `values` string[]: Optional. Expected values for the column value.
      - `sqlAssertion` GoogleCloudDataplexV1DataQualityRuleSqlAssertion: A SQL statement that is evaluated to return rows that match an invalid state. If any rows are are returned, this rule fails.The SQL statement must use GoogleSQL syntax (https://cloud.google.com/bigquery/docs/reference/standard-sql/query-syntax), and must not contain any semicolons.You can use the data reference parameter ${data()} to reference the source table with all of its precondition filters applied. Examples of precondition filters include row filters, incremental data filters, and sampling. For more information, see Data reference parameter (https://cloud.google.com/dataplex/docs/auto-data-quality-overview#data-reference-parameter).Example: SELECT * FROM ${data()} WHERE price < 0
        - `sqlStatement` string: Optional. The SQL statement.
      - `statisticRangeExpectation` GoogleCloudDataplexV1DataQualityRuleStatisticRangeExpectation: Evaluates whether the column aggregate statistic lies between a specified range.
        - `maxValue` string: Optional. The maximum column statistic value allowed for a row to pass this validation.At least one of min_value and max_value need to be provided.
        - `minValue` string: Optional. The minimum column statistic value allowed for a row to pass this validation.At least one of min_value and max_value need to be provided.
        - `statistic` 'STATISTIC_UNDEFINED' | 'MEAN' | 'MIN' | 'MAX': Optional. The aggregate metric to evaluate.
        - `strictMaxEnabled` boolean: Optional. Whether column statistic needs to be strictly lesser than ('<') the maximum, or if equality is allowed.Only relevant if a max_value has been defined. Default = false.
        - `strictMinEnabled` boolean: Optional. Whether column statistic needs to be strictly greater than ('>') the minimum, or if equality is allowed.Only relevant if a min_value has been defined. Default = false.
      - `suspended` boolean: Optional. Whether the Rule is active or suspended. Default is false.
      - `tableConditionExpectation` GoogleCloudDataplexV1DataQualityRuleTableConditionExpectation: Evaluates whether the provided expression is true.The SQL expression needs to use GoogleSQL syntax (https://cloud.google.com/bigquery/docs/reference/standard-sql/query-syntax) and should produce a scalar boolean result.Example: MIN(col1) >= 0
        - `sqlExpression` string: Optional. The SQL expression.
      - `templateReference` GoogleCloudDataplexV1DataQualityRuleTemplateReference: A rule that constructs a SQL statement to evaluate using a rule template and parameter values. If the constructed statement returns any rows, this rule fails
        - `name` string: Required. The template entry name. Entry must be of EntryType projects/dataplex-types/locations/global/entryTypes/data-quality-rule-template and contains top-level aspect of AspectType projects/dataplex-types/locations/global/aspectTypes/data-quality-rule-template. The format is: projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}
        - `resolvedSql` string: Output only. The resolved SQL statement generated from the template with parameters substituted. It is only populated in the result.
        - `ruleTemplate` GoogleCloudDataplexV1DataQualityRuleTemplate: DataQualityRuleTemplate represents a template which can be reused across multiple data quality rules.
          - `capabilities` string[]: Output only. A list of features or properties supported by this rule template.
          - `dimension` string: Output only. The dimension a rule template belongs to. Rule level results are also aggregated at the dimension level.
          - `inputParameters` object: Output only. Description for input parameters
          - `name` string: Output only. The name of the rule template in the format: projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}
          - `sqlCollection` GoogleCloudDataplexV1DataQualityRuleTemplateSql[]: Output only. Collection of SQLs for data quality rules. Currently only one SQL is supported.
            - `query` string: Output only. Templatized SQL query for data quality rules.
        - `values` object: Optional. Provides the map of parameter name and value. The maximum size of the field is 120KB (encoded as UTF-8).
      - `threshold` number, double: Optional. The minimum ratio of passing_rows / total_rows required to pass this rule, with a range of 0.0, 1.0.0 indicates default value (i.e. 1.0).This field is only valid for row-level type rules.
      - `uniquenessExpectation` GoogleCloudDataplexV1DataQualityRuleUniquenessExpectation: Evaluates whether the column has duplicates.
    - `samplingPercent` number, float: Optional. The percentage of the records to be selected from the dataset for DataScan. Value can range between 0.0 and 100.0 with up to 3 significant decimal digits. Sampling is not applied if sampling_percent is not specified, 0 or 100.
  - `description` string: Optional. Description of the scan. Must be between 1-1024 characters.
  - `displayName` string: Optional. User friendly display name. Must be between 1-256 characters.
  - `executionIdentity` GoogleCloudDataplexV1ExecutionIdentity: The identity to run the datascan.
    - `dataplexServiceAgent` GoogleCloudDataplexV1ExecutionIdentityDataplexServiceAgent: The Dataplex service agent associated with the user's project.
    - `serviceAccount` GoogleCloudDataplexV1ExecutionIdentityServiceAccount: The service account
      - `email` string: Required. Service account email. The datascan will execute with this service account's credentials. The user calling this API must have permissions to act as this service account. Dataplex service agent must be granted iam.serviceAccounts.getAccessToken permission on this service account, for example, through the iam.serviceAccountTokenCreator role .
    - `userCredential` GoogleCloudDataplexV1ExecutionIdentityUserCredential: The credential of the calling user.
  - `executionSpec` GoogleCloudDataplexV1DataScanExecutionSpec: DataScan execution settings.
    - `field` string: Immutable. The unnested field (of type Date or Timestamp) that contains values which monotonically increase over time.If not specified, a data scan will run for all data in the table.
    - `trigger` GoogleCloudDataplexV1Trigger: DataScan scheduling and trigger settings.
      - `onDemand` GoogleCloudDataplexV1TriggerOnDemand: The scan runs once via RunDataScan API.
      - `oneTime` GoogleCloudDataplexV1TriggerOneTime: The scan runs once using create API.
        - `ttlAfterScanCompletion` string, google-duration: Optional. Time to live for OneTime scans. default value is 24 hours, minimum value is 0 seconds, and maximum value is 365 days. The time is calculated from the data scan job completion time. If value is set as 0 seconds, the scan will be immediately deleted upon job completion, regardless of whether the job succeeded or failed.
      - `schedule` GoogleCloudDataplexV1TriggerSchedule: The scan is scheduled to run periodically.
        - `cron` string: Required. Cron (https://en.wikipedia.org/wiki/Cron) schedule for running scans periodically.To explicitly set a timezone in 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 (wikipedia (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List)). For example, CRON_TZ=America/New_York 1 * * * *, or TZ=America/New_York 1 * * * *.This field is required for Schedule scans.
  - `executionStatus` GoogleCloudDataplexV1DataScanExecutionStatus: Status of the data scan execution.
    - `latestJobCreateTime` string, google-datetime: Optional. The time when the DataScanJob execution was created.
    - `latestJobEndTime` string, google-datetime: Optional. The time when the latest DataScanJob ended.
    - `latestJobStartTime` string, google-datetime: Optional. The time when the latest DataScanJob started.
  - `labels` object: Optional. User-defined labels for the scan.
  - `name` string: Output only. Identifier. The relative resource name of the scan, of the form: projects/{project}/locations/{location_id}/dataScans/{datascan_id}, where project refers to a project_id or project_number and location_id refers to a Google Cloud region.
  - `state` 'STATE_UNSPECIFIED' | 'ACTIVE' | 'CREATING' | 'DELETING' | 'ACTION_REQUIRED': Output only. Current state of the DataScan.
  - `type` 'DATA_SCAN_TYPE_UNSPECIFIED' | 'DATA_QUALITY' | 'DATA_PROFILE' | 'DATA_DISCOVERY' | 'DATA_DOCUMENTATION': Output only. The type of DataScan.
  - `uid` string: Output only. System generated globally unique ID for the scan. This ID will be different if the scan is deleted and re-created with the same name.
  - `updateTime` string, google-datetime: Output only. The time when the scan was last updated.

## Response `200`

Successful response

- GoogleLongrunningOperation: This resource represents a long-running operation that is the result of a network API call.
  - `done` boolean: If the value is false, it means the operation is still in progress. If true, the operation is completed, and either error or response is available.
  - `error` GoogleRpcStatus: The 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 (https://github.com/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 (https://cloud.google.com/apis/design/errors).
    - `code` integer: The status code, which should be an enum value of google.rpc.Code.
    - `details` object[]: A list of messages that carry the error details. There is a common set of message types for APIs to use.
    - `message` string: A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
  - `metadata` object: Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
  - `name` string: The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the name should be a resource name ending with operations/{unique_id}.
  - `response` object: The normal, successful response of the operation. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse.

## Changes

- **2026-12-05** `5d0894669d35`: 4 info
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was added to the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was added to the endpoint's security scheme `Oauth2c`
  - the security scope `https://www.googleapis.com/auth/dataplex.read-write` was removed from the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/dataplex.read-write` was removed from the endpoint's security scheme `Oauth2c`
- **2026-11-09** `a87e571d134a`: 4 info
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was added to the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was added to the endpoint's security scheme `Oauth2c`
  - the security scope `https://www.googleapis.com/auth/dataplex.read-write` was removed from the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/dataplex.read-write` was removed from the endpoint's security scheme `Oauth2c`

[Operation history](https://skmtc.dev/google/apis/dataplex/changes/v1/projects/:projectsId/locations/:locationsId/dataScans/post.md)

---

[API](https://skmtc.dev/google/apis/dataplex.md) - [All operations](https://skmtc.dev/google/apis/dataplex/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/dataplex/revisions/5d0894669d35?raw)
