Snapshot
An immutable, point-in-time copy of a branch's data within a project. It
remains available after the source branch is deleted. To restore a snapshot,
create a new branch with spec.source_snapshot set to the snapshot's
resource name. For an overview, see
https://docs.databricks.com/aws/en/oltp/projects/snapshots.
Snapshot object
An immutable, point-in-time copy of a branch's data within a project. It
remains available after the source branch is deleted. To restore a snapshot,
create a new branch with spec.source_snapshot set to the snapshot's
resource name. For an overview, see
https://docs.databricks.com/aws/en/oltp/projects/snapshots.
- namestringIDImmutable
The resource name of the snapshot. Format: projects/{project_id}/snapshots/{snapshot_id}
- uidstringOutput only
Unique system-generated ID for the snapshot.
- create_timestringOutput only
When the snapshot was created.
- specobject
Client-provided configuration of the snapshot. When you create a snapshot, set exactly one of
expire_time,ttl, orno_expiry.Show child attributesHide child attributes
- source_branchstringImmutable
The source branch to snapshot. The branch must belong to the same project as the snapshot. Format: projects/{project_id}/branches/{branch_id}
- source_branch_lsnstringImmutable
Postgres log sequence number (LSN) to snapshot from. It must fall within the project's history retention window. If neither this field nor
source_branch_timeis set, the snapshot captures the current head of the source branch. Mutually exclusive withsource_branch_time.
- source_branch_timestringImmutable
Timestamp to snapshot from. It must fall within the project's history retention window. Mutually exclusive with
source_branch_lsn.
- expire_timestringImmutable
Absolute time at which the snapshot is deleted. It must not be in the past. Mutually exclusive with
ttlandno_expiry.
- ttlstringInput onlyImmutable
Time-to-live, as a positive duration in seconds with an
ssuffix. The snapshot expires this long after it is created. Mutually exclusive withexpire_timeandno_expiry. Reads report the resolved absoluteexpire_timeinstead.
- no_expirybooleanImmutable
If true, the snapshot never expires. The value
falseis rejected; setexpire_timeorttlinstead. Mutually exclusive withttlandexpire_time.
- statusobjectOutput only
Server-observed state of the snapshot.
Show child attributesHide child attributes
- source_branchstringOutput only
The source branch the snapshot was taken from. Format: projects/{project_id}/branches/{branch_id}
- expire_timestringOutput only
Absolute time at which the snapshot is deleted.
- no_expirybooleanOutput only
True if the snapshot never expires.
- full_size_bytesint64Output only
Full logical size of the snapshot, in bytes.
- diff_size_bytesint64Output only
Incremental storage size in bytes since the previous snapshot. Unset when the snapshot is not billed on incremental usage.
- snapshot_idstringOutput only
The user-chosen ID; the final segment of
name.
Get a Snapshot GA
GET
Retrieves information about the specified snapshot.
API scopes: postgres
Parameters
- namestringRequiredpath
The resource name of the snapshot to retrieve. Format: projects/{project_id}/snapshots/{snapshot_id}
Response
Returns the Snapshot object.
List Snapshots GA
GET
Returns a paginated list of snapshots in the project.
API scopes: postgres
Parameters
- parentstringRequiredpath
The project that owns the snapshots. Format: projects/{project_id}
- page_tokenstringquery
Page token from a previous response; omit for the first page.
- page_sizeint32query
Maximum number of snapshots to return per page.
Response
Returns a list of Snapshot objects.
Create a Snapshot GA
POST
Creates a snapshot, an immutable point-in-time copy of a branch's data, within the project. Returns a long-running operation. Poll it until done is true; its response holds the new snapshot.
API scopes: postgres
Parameters
- parentstringRequiredpath
The project in which to create the snapshot. Format: projects/{project_id}
- snapshot_idstringRequiredquery
Client-chosen ID for the snapshot. It becomes the final segment of the snapshot resource name and cannot be changed after creation. The ID must be 3 to 63 characters long, start with a lowercase letter, end with a lowercase letter or digit, and contain only lowercase letters, digits, and hyphens.
Request body
The snapshot to create. Only spec is read from this message; the system
sets the other fields.
- namestringIDImmutable
The resource name of the snapshot. Format: projects/{project_id}/snapshots/{snapshot_id}
- specobject
Client-provided configuration of the snapshot. When you create a snapshot, set exactly one of
expire_time,ttl, orno_expiry.Show child attributesHide child attributes
- source_branchstringRequiredImmutable
The source branch to snapshot. The branch must belong to the same project as the snapshot. Format: projects/{project_id}/branches/{branch_id}
- source_branch_lsnstringImmutable
Postgres log sequence number (LSN) to snapshot from. It must fall within the project's history retention window. If neither this field nor
source_branch_timeis set, the snapshot captures the current head of the source branch. Mutually exclusive withsource_branch_time.
- source_branch_timestringImmutable
Timestamp to snapshot from. It must fall within the project's history retention window. Mutually exclusive with
source_branch_lsn.
- expire_timestringImmutable
Absolute time at which the snapshot is deleted. It must not be in the past. Mutually exclusive with
ttlandno_expiry.
- ttlstringInput onlyImmutable
Time-to-live, as a positive duration in seconds with an
ssuffix. The snapshot expires this long after it is created. Mutually exclusive withexpire_timeandno_expiry. Reads report the resolved absoluteexpire_timeinstead.
- no_expirybooleanImmutable
If true, the snapshot never expires. The value
falseis rejected; setexpire_timeorttlinstead. Mutually exclusive withttlandexpire_time.
Response
- namestring
The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the
nameshould be a resource name ending withoperations/{unique_id}.
- metadataobject
Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata.
- doneboolean
If the value is
false, it means the operation is still in progress. Iftrue, the operation is completed, and eithererrororresponseis available.
- errorobject
The error result of the operation in case of failure or cancellation.
Show child attributesHide child attributes
- error_codestring
Error codes returned by Databricks APIs to indicate specific failure conditions.
Show 81 possible values
UNKNOWNINTERNAL_ERRORTEMPORARILY_UNAVAILABLEIO_ERRORBAD_REQUESTSERVICE_UNDER_MAINTENANCEWORKSPACE_TEMPORARILY_UNAVAILABLEDEADLINE_EXCEEDEDCANCELLEDRESOURCE_EXHAUSTEDABORTEDNOT_FOUNDALREADY_EXISTSUNAUTHENTICATEDUNAVAILABLEINVALID_PARAMETER_VALUEENDPOINT_NOT_FOUNDMALFORMED_REQUESTINVALID_STATEPERMISSION_DENIEDFEATURE_DISABLEDCUSTOMER_UNAUTHORIZEDREQUEST_LIMIT_EXCEEDEDRESOURCE_CONFLICTUNPARSEABLE_HTTP_ERRORNOT_IMPLEMENTEDDATA_LOSSINVALID_STATE_TRANSITIONCOULD_NOT_ACQUIRE_LOCKRESOURCE_ALREADY_EXISTSRESOURCE_DOES_NOT_EXISTQUOTA_EXCEEDEDMAX_BLOCK_SIZE_EXCEEDEDMAX_READ_SIZE_EXCEEDEDPARTIAL_DELETEMAX_LIST_SIZE_EXCEEDEDDRY_RUN_FAILEDRESOURCE_LIMIT_EXCEEDEDDIRECTORY_NOT_EMPTYDIRECTORY_PROTECTEDMAX_NOTEBOOK_SIZE_EXCEEDEDMAX_CHILD_NODE_SIZE_EXCEEDEDSEARCH_QUERY_TOO_LONGSEARCH_QUERY_TOO_SHORTMANAGED_RESOURCE_GROUP_DOES_NOT_EXISTPERMISSION_NOT_PROPAGATEDDEPLOYMENT_TIMEOUTGIT_CONFLICTGIT_UNKNOWN_REFGIT_SENSITIVE_TOKEN_DETECTEDGIT_URL_NOT_ON_ALLOW_LISTGIT_REMOTE_ERRORPROJECTS_OPERATION_TIMEOUTIPYNB_FILE_IN_REPOINSECURE_PARTNER_RESPONSEMALFORMED_PARTNER_RESPONSEMETASTORE_DOES_NOT_EXISTDAC_DOES_NOT_EXISTCATALOG_DOES_NOT_EXISTSCHEMA_DOES_NOT_EXISTTABLE_DOES_NOT_EXISTSHARE_DOES_NOT_EXISTRECIPIENT_DOES_NOT_EXISTSTORAGE_CREDENTIAL_DOES_NOT_EXISTEXTERNAL_LOCATION_DOES_NOT_EXISTPRINCIPAL_DOES_NOT_EXISTPROVIDER_DOES_NOT_EXISTMETASTORE_ALREADY_EXISTSDAC_ALREADY_EXISTSCATALOG_ALREADY_EXISTSSCHEMA_ALREADY_EXISTSTABLE_ALREADY_EXISTSSHARE_ALREADY_EXISTSRECIPIENT_ALREADY_EXISTSSTORAGE_CREDENTIAL_ALREADY_EXISTSEXTERNAL_LOCATION_ALREADY_EXISTSPROVIDER_ALREADY_EXISTSCATALOG_NOT_EMPTYSCHEMA_NOT_EMPTYMETASTORE_NOT_EMPTYPROVIDER_SHARE_NOT_ACCESSIBLE
- messagestring
- stack_tracestring
- detailsarray of object
- responseobject
The normal, successful response of the operation.
Delete a Snapshot GA
DELETE
Deletes the specified snapshot. A deleted snapshot cannot be recovered. Returns a long-running operation. Poll it until done is true.
API scopes: postgres
Parameters
- namestringRequiredpath
The resource name of the snapshot to delete. Format: projects/{project_id}/snapshots/{snapshot_id}
Response
- namestring
The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the
nameshould be a resource name ending withoperations/{unique_id}.
- metadataobject
Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata.
- doneboolean
If the value is
false, it means the operation is still in progress. Iftrue, the operation is completed, and eithererrororresponseis available.
- errorobject
The error result of the operation in case of failure or cancellation.
Show child attributesHide child attributes
- error_codestring
Error codes returned by Databricks APIs to indicate specific failure conditions.
Show 81 possible values
UNKNOWNINTERNAL_ERRORTEMPORARILY_UNAVAILABLEIO_ERRORBAD_REQUESTSERVICE_UNDER_MAINTENANCEWORKSPACE_TEMPORARILY_UNAVAILABLEDEADLINE_EXCEEDEDCANCELLEDRESOURCE_EXHAUSTEDABORTEDNOT_FOUNDALREADY_EXISTSUNAUTHENTICATEDUNAVAILABLEINVALID_PARAMETER_VALUEENDPOINT_NOT_FOUNDMALFORMED_REQUESTINVALID_STATEPERMISSION_DENIEDFEATURE_DISABLEDCUSTOMER_UNAUTHORIZEDREQUEST_LIMIT_EXCEEDEDRESOURCE_CONFLICTUNPARSEABLE_HTTP_ERRORNOT_IMPLEMENTEDDATA_LOSSINVALID_STATE_TRANSITIONCOULD_NOT_ACQUIRE_LOCKRESOURCE_ALREADY_EXISTSRESOURCE_DOES_NOT_EXISTQUOTA_EXCEEDEDMAX_BLOCK_SIZE_EXCEEDEDMAX_READ_SIZE_EXCEEDEDPARTIAL_DELETEMAX_LIST_SIZE_EXCEEDEDDRY_RUN_FAILEDRESOURCE_LIMIT_EXCEEDEDDIRECTORY_NOT_EMPTYDIRECTORY_PROTECTEDMAX_NOTEBOOK_SIZE_EXCEEDEDMAX_CHILD_NODE_SIZE_EXCEEDEDSEARCH_QUERY_TOO_LONGSEARCH_QUERY_TOO_SHORTMANAGED_RESOURCE_GROUP_DOES_NOT_EXISTPERMISSION_NOT_PROPAGATEDDEPLOYMENT_TIMEOUTGIT_CONFLICTGIT_UNKNOWN_REFGIT_SENSITIVE_TOKEN_DETECTEDGIT_URL_NOT_ON_ALLOW_LISTGIT_REMOTE_ERRORPROJECTS_OPERATION_TIMEOUTIPYNB_FILE_IN_REPOINSECURE_PARTNER_RESPONSEMALFORMED_PARTNER_RESPONSEMETASTORE_DOES_NOT_EXISTDAC_DOES_NOT_EXISTCATALOG_DOES_NOT_EXISTSCHEMA_DOES_NOT_EXISTTABLE_DOES_NOT_EXISTSHARE_DOES_NOT_EXISTRECIPIENT_DOES_NOT_EXISTSTORAGE_CREDENTIAL_DOES_NOT_EXISTEXTERNAL_LOCATION_DOES_NOT_EXISTPRINCIPAL_DOES_NOT_EXISTPROVIDER_DOES_NOT_EXISTMETASTORE_ALREADY_EXISTSDAC_ALREADY_EXISTSCATALOG_ALREADY_EXISTSSCHEMA_ALREADY_EXISTSTABLE_ALREADY_EXISTSSHARE_ALREADY_EXISTSRECIPIENT_ALREADY_EXISTSSTORAGE_CREDENTIAL_ALREADY_EXISTSEXTERNAL_LOCATION_ALREADY_EXISTSPROVIDER_ALREADY_EXISTSCATALOG_NOT_EMPTYSCHEMA_NOT_EMPTYMETASTORE_NOT_EMPTYPROVIDER_SHARE_NOT_ACCESSIBLE
- messagestring
- stack_tracestring
- detailsarray of object
- responseobject
The normal, successful response of the operation.