Imports data into dataset based on source locations defined in request. It can be called multiple times for the same dataset. Each dataset can only have one long running operation running on it. For example, no labeling task (also long running operation) can be started while importing is still ongoing. Vice versa.
HTTP request
POST https://datalabeling.googleapis.com/v1beta1/{name=projects/*/datasets/*}:importData
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
name |
Required. Dataset resource name, format: projects/{project_id}/datasets/{dataset_id} Authorization requires the following Google IAM permission on the specified resource
|
Request body
The request body contains data with the following structure:
JSON representation | |
---|---|
{
"inputConfig": {
object ( |
Fields | |
---|---|
inputConfig |
Required. Specify the input source of the data. |
userEmailAddress |
Email of the user who started the import task and should be notified by email. If empty no notification will be sent. |
Response body
If successful, the response body contains an instance of Operation
.
Authorization Scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.