- HTTP request
- Path parameters
- Request body
- Response body
- Authorization Scopes
- OutputConfig
- GcsDestination
- GcsFolderDestination
Exports data and annotations from dataset.
HTTP request
POST https://datalabeling.googleapis.com/v1beta1/{name=projects/*/datasets/*}:exportData
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 | |
---|---|
{
"annotatedDataset": string,
"filter": string,
"outputConfig": {
object ( |
Fields | |
---|---|
annotatedDataset |
Required. Annotated dataset resource name. DataItem in Dataset and their annotations in specified annotated dataset will be exported. It's in format of projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/ {annotated_dataset_id} |
filter |
Optional. Filter is not supported at this moment. |
outputConfig |
Required. Specify the output destination. |
userEmailAddress |
Email of the user who started the export 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.
OutputConfig
The configuration of output data.
JSON representation | |
---|---|
{ // Union field |
Fields | ||
---|---|---|
Union field destination . Required. Location to output data to. destination can be only one of the following: |
||
gcsDestination |
Output to a file in Cloud Storage. Should be used for labeling output other than image segmentation. |
|
gcsFolderDestination |
Output to a folder in Cloud Storage. Should be used for image segmentation labeling output. |
GcsDestination
Export destination of the data.Only gcs path is allowed in outputUri.
JSON representation | |
---|---|
{ "outputUri": string, "mimeType": string } |
Fields | |
---|---|
outputUri |
Required. The output uri of destination file. |
mimeType |
Required. The format of the gcs destination. Only "text/csv" and "application/json" are supported. |
GcsFolderDestination
Export folder destination of the data.
JSON representation | |
---|---|
{ "outputFolderUri": string } |
Fields | |
---|---|
outputFolderUri |
Required. Cloud Storage directory to export data to. |