Anonymous View
Skip to content

feat(dataplex): add sample for creating a global data profile scan#14339

Draft
XrossFox wants to merge 2 commits into
GoogleCloudPlatform:mainfrom
XrossFox:dataplex-scan-data-profile-global
Draft

feat(dataplex): add sample for creating a global data profile scan#14339
XrossFox wants to merge 2 commits into
GoogleCloudPlatform:mainfrom
XrossFox:dataplex-scan-data-profile-global

Conversation

@XrossFox

@XrossFox XrossFox commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Description

  • Adds create_data_profile_scan.py demonstrating how to create a Dataplex Data Profile Scan using global API endpoint routing.

Fixes b/524659447

Checklist

Testing

  • I have tested this change on a live environment and verified it works as intended.

Compliance & Style


Post-Approval Actions

  • Please merge this PR for me once it is approved

 - Adds `create_data_profile_scan.py` demonstrating how to create a Dataplex Data Profile Scan using global API endpoint routing.
@product-auto-label product-auto-label Bot added api: dataplex Issues related to the Knowledge Catalog API. samples Issues that are directly related to samples. labels Jun 18, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds a new Python snippet create_data_profile_scan.py to demonstrate creating a Dataplex Data Profile Scan using global API endpoint routing. The review feedback points out that the CreateDataScanRequest requires a data_scan_id parameter, which is currently missing. It is recommended to add data_scan_id to the function signature, document it in the docstring, and pass it to the request payload.

Comment thread dataplex/snippets/create_data_profile_scan_global.py
Comment thread dataplex/snippets/create_data_profile_scan_global.py
@XrossFox

Copy link
Copy Markdown
Contributor Author

This sample has been manually tested:

image

Also the data scan is visible on the GCP web ui:

image

@amcolin amcolin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To maintain consistency with the other sample created, this file should be renamed following that same pattern. create_data_profile_scan_global.py

@amcolin amcolin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: dataplex Issues related to the Knowledge Catalog API. samples Issues that are directly related to samples.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants