Method: projects.datasets.importData

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

string

Required. Dataset resource name, format: projects/{project_id}/datasets/{dataset_id}

Authorization requires the following Google IAM permission on the specified resource name:

  • datalabeling.datasets.import

Request body

The request body contains data with the following structure:

JSON representation
{
  "inputConfig": {
    object (InputConfig)
  },
  "userEmailAddress": string
}
Fields
inputConfig

object (InputConfig)

Required. Specify the input source of the data.

userEmailAddress

string

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.

หน้านี้มีประโยชน์ไหม โปรดแสดงความคิดเห็น

ส่งความคิดเห็นเกี่ยวกับ...

หากต้องการความช่วยเหลือ ให้ไปที่หน้าการสนับสนุน