Method: projects.locations.dataProducts.dataAssets.create

Creates a data asset.

HTTP request

POST https://dataplex.googleapis.com/v1/{parent=projects/*/locations/*/dataProducts/*}/dataAssets

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The parent resource where this data asset will be created. Format: projects/{project_id_or_number}/locations/{locationId}/dataProducts/{dataProductId}

Query parameters

Parameters
dataAssetId

string

Optional. The ID of the data asset to create.

The ID must conform to RFC-1034 and contain only lower-case letters (a-z), numbers (0-9), or hyphens, with the first character a letter, the last a letter or a number, and a 63 character maximum. Characters outside of ASCII are not permitted. Valid format regex: ^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$ If not provided, a system generated ID will be used.

validateOnly

boolean

Optional. Validates the request without actually creating the data asset. Defaults to false.

Request body

The request body contains an instance of DataAsset.

Response body

If successful, the response body contains a newly created instance of Operation.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.

IAM Permissions

Requires the following IAM permission on the parent resource:

  • dataplex.dataAssets.create

For more information, see the IAM documentation.