Required. The resource name of the parent location:projects/{project}/locations/{locationId}whereprojectrefers to aprojectIdorproject_numberandlocationIdrefers to a Google Cloud region.
Authorization requires the followingIAMpermission on the specified resourceparent:
dataplex.datascans.create
Query parameters
Parameters
dataScanId
string
Required. DataScan identifier.
Must contain only lowercase letters, numbers and hyphens.
Must start with a letter.
Must end with a number or a letter.
Must be between 1-63 characters.
Must be unique within the customer project / location.
validateOnly
boolean
Optional. Only validate the request, but do not perform mutations. The default isfalse.
[[["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 endpoint creates a DataScan resource using a POST request to a specified URL with a project and location ID.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eparent\u003c/code\u003e path parameter, which is mandatory, indicates the project and location where the DataScan is created, with specific IAM permissions required.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003edataScanId\u003c/code\u003e query parameter is mandatory for uniquely identifying the DataScan and must adhere to specified formatting constraints, and you can choose to \u003ccode\u003evalidateOnly\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe request body should contain an instance of the DataScan resource, while the response body returns an instance of Operation if the request was successful.\u003c/p\u003e\n"],["\u003cp\u003eTo call this endpoint you need the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e authorization scope.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.dataScans.create\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nCreates a DataScan resource.\n\n### HTTP request\n\n`POST https://dataplex.googleapis.com/v1/{parent=projects/*/locations/*}/dataScans`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Query parameters\n\n### Request body\n\nThe request body contains an instance of [DataScan](/dataplex/docs/reference/rest/v1/projects.locations.dataScans#DataScan).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [Operation](/dataplex/docs/reference/rest/v1/organizations.locations.operations#Operation).\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)."]]