REST Resource: projects.locations.datasets Stay organized with collections Save and categorize content based on your preferences.
Resource: Dataset
A collection of DataItems and Annotations on them.
namestringOutput only. Identifier. The resource name of the Dataset. Format:projects/{project}/locations/{location}/datasets/{dataset}
displayNamestringRequired. The user-defined name of the Dataset. The name can be up to 128 characters long and can consist of any UTF-8 characters.
descriptionstringThe description of the Dataset.
metadataSchemaUristringRequired. Points to a YAML file stored on Google Cloud Storage describing additional information about the Dataset. The schema is defined as an OpenAPI 3.0.2 Schema Object. The schema files that can be used here are found in gs://google-cloud-aiplatform/schema/dataset/metadata/.
metadatavalue (Value format)Required. Additional information about the Dataset.
dataItemCountstring (int64 format)Output only. The number of DataItems in this Dataset. Only apply for non-structured Dataset.
createTimestring (Timestamp format)Output only. timestamp when this Dataset was created.
Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples:"2014-10-02T15:01:23Z","2014-10-02T15:01:23.045123456Z" or"2014-10-02T15:01:23+05:30".
updateTimestring (Timestamp format)Output only. timestamp when this Dataset was last updated.
Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples:"2014-10-02T15:01:23Z","2014-10-02T15:01:23.045123456Z" or"2014-10-02T15:01:23+05:30".
etagstringUsed to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens.
labelsmap (key: string, value: string)The labels with user-defined metadata to organize your Datasets.
label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. No more than 64 user labels can be associated with one Dataset (System labels are excluded).
Seehttps://goo.gl/xmQnxf for more information and examples of labels. System reserved label keys are prefixed with "aiplatform.googleapis.com/" and are immutable. Following system labels exist for each Dataset:
- "aiplatform.googleapis.com/dataset_metadata_schema": output only, its value is the
metadataSchema'stitle.
savedQueries[]object (SavedQuery)All SavedQueries belong to the Dataset will be returned in List/Get Dataset response. The annotationSpecs field will not be populated except for UI cases which will only useannotationSpecCount. In datasets.create request, a SavedQuery is created together if this field is set, up to one SavedQuery can be set in CreateDatasetRequest. The SavedQuery should not contain any AnnotationSpec.
encryptionSpecobject (EncryptionSpec)Customer-managed encryption key spec for a Dataset. If set, this Dataset and all sub-resources of this Dataset will be secured by this key.
metadataArtifactstringOutput only. The resource name of the Artifact that was created in MetadataStore when creating the Dataset. The Artifact resource name pattern isprojects/{project}/locations/{location}/metadataStores/{metadataStore}/artifacts/{artifact}.
modelReferencestringOptional. Reference to the public base model last used by the dataset. Only set for prompt datasets.
satisfiesPzsbooleanOutput only. reserved for future use.
satisfiesPzibooleanOutput only. reserved for future use.
| JSON representation |
|---|
{"name":string,"displayName":string,"description":string,"metadataSchemaUri":string,"metadata":value,"dataItemCount":string,"createTime":string,"updateTime":string,"etag":string,"labels":{string:string,...},"savedQueries":[{object ( |
SavedQuery
A SavedQuery is a view of the dataset. It references a subset of annotations by problem type and filters.
namestringOutput only. Resource name of the SavedQuery.
displayNamestringRequired. The user-defined name of the SavedQuery. The name can be up to 128 characters long and can consist of any UTF-8 characters.
metadatavalue (Value format)Some additional information about the SavedQuery.
createTimestring (Timestamp format)Output only. timestamp when this SavedQuery was created.
Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples:"2014-10-02T15:01:23Z","2014-10-02T15:01:23.045123456Z" or"2014-10-02T15:01:23+05:30".
updateTimestring (Timestamp format)Output only. timestamp when SavedQuery was last updated.
Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples:"2014-10-02T15:01:23Z","2014-10-02T15:01:23.045123456Z" or"2014-10-02T15:01:23+05:30".
annotationFilterstringOutput only. Filters on the Annotations in the dataset.
problemTypestringRequired. Problem type of the SavedQuery. Allowed values:
- IMAGE_CLASSIFICATION_SINGLE_LABEL
- IMAGE_CLASSIFICATION_MULTI_LABEL
- IMAGE_BOUNDING_POLY
- IMAGE_BOUNDING_BOX
- TEXT_CLASSIFICATION_SINGLE_LABEL
- TEXT_CLASSIFICATION_MULTI_LABEL
- TEXT_EXTRACTION
- TEXT_SENTIMENT
- VIDEO_CLASSIFICATION
- VIDEO_OBJECT_TRACKING
annotationSpecCountintegerOutput only. Number of AnnotationSpecs in the context of the SavedQuery.
etagstringUsed to perform a consistent read-modify-write update. If not set, a blind "overwrite" update happens.
supportAutomlTrainingbooleanOutput only. If the Annotations belonging to the SavedQuery can be used for AutoML training.
| JSON representation |
|---|
{"name":string,"displayName":string,"metadata":value,"createTime":string,"updateTime":string,"annotationFilter":string,"problemType":string,"annotationSpecCount":integer,"etag":string,"supportAutomlTraining":boolean} |
Methods | |
|---|---|
| Creates a Dataset. |
| Deletes a Dataset. |
| Exports data from a Dataset. |
| Gets a Dataset. |
| Imports data into a Dataset. |
| Lists Datasets in a Location. |
| Updates a Dataset. |
| Searches DataItems in a Dataset. |
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-09-22 UTC.