Required. The resource name of the DataScan: projects/{project}/locations/{locationId}/dataScans/{dataScanId}. where project refers to a projectId or project_number and locationId refers to a Google Cloud region.
Only OnDemand data scans are allowed.
Authorization requires the following IAM permission on the specified resource name:
dataplex.datascans.run
Request body
The request body must be empty.
Response body
Run DataScan Response.
If successful, the response body contains data with the following structure:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-21 UTC."],[[["\u003cp\u003eThis webpage documents the process of running an on-demand execution of a DataScan using a POST request to a specific URL.\u003c/p\u003e\n"],["\u003cp\u003eThe required URL structure includes path parameters for the project, location, and DataScan name, and only \u003cstrong\u003eOnDemand\u003c/strong\u003e data scans are supported.\u003c/p\u003e\n"],["\u003cp\u003eThe request body for this operation must be empty, and it requires the \u003ccode\u003edataplex.datascans.run\u003c/code\u003e IAM permission.\u003c/p\u003e\n"],["\u003cp\u003eA successful request returns a JSON response containing a \u003ccode\u003eDataScanJob\u003c/code\u003e object, detailing the job that was created.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope for authorization.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.dataScans.run\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.RunDataScanResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nRuns an on-demand execution of a DataScan\n\n### HTTP request\n\n`POST https://dataplex.googleapis.com/v1/{name=projects/*/locations/*/dataScans/*}:run`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nRun DataScan Response.\n\nIf successful, the response body contains data with the following structure:\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp)."]]