Method: projects.locations.datasets.exportData

Stay organized with collections Save and categorize content based on your preferences.

Exports dataset's data to the provided output location. Returns an empty response in the response field when it completes.

HTTP request

POST https://automl.googleapis.com/v1beta1/{name}:exportData

Path parameters

Parameters
name

string

Required. The resource name of the dataset.

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

  • automl.datasets.export

Request body

The request body contains data with the following structure:

JSON representation
{
  "outputConfig": {
    object(OutputConfig)
  }
}
Fields
outputConfig

object(OutputConfig)

Required. The desired output location.

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.

OutputConfig

Output configuration for datasets.exportData.

As destination the gcsDestination must be set. Only ground truth annotations are exported (not approved annotations are not exported).

The outputs correspond to how the data was imported, and may be used as input to import data. The output formats are represented as EBNF with literal commas and same non-terminal symbols definitions as the InputConfig for import data.

The outputs are contained within a CSV file named videoObjectTracking.csv, with each line in the following format and may have multiple lines per a single ML_USE:

ML_USE,GCS_FILE_PATH

Each GCS_FILE_PATH leads to another CSV file that describes examples that have given ML_USE, using the following row format:

GCS_FILE_PATH,LABEL,INSTANCE_ID,TIMESTAMP,BOUNDING_BOX

Here the data in the GCS_FILE_PATH column point at the original, source locations of the imported videos.

JSON representation
{
  "gcsDestination": {
    object(GcsDestination)
  }
}
Fields
gcsDestination

object(GcsDestination)

The Google Cloud Storage location where the output is to be written to.

In the given directory a new directory is created similar to the following where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format:

export_data-<dataset-display-name>-<timestamp-of-export-call>

All export output will be written into that directory.