Snapshot Schedule
The automatic snapshot cadences for a branch. There is exactly one schedule per branch (singleton); it is configured in place, not created or deleted.
Name: projects/{project_id}/branches/{branch_id}/snapshot-schedule
SnapshotSchedule object
The automatic snapshot cadences for a branch. There is exactly one schedule per branch (singleton); it is configured in place, not created or deleted.
Name: projects/{project_id}/branches/{branch_id}/snapshot-schedule
- namestringBetaIDImmutable
The resource name of the branch's snapshot schedule. Format: projects/{project_id}/branches/{branch_id}/snapshot-schedule
- schedulearray of objectBetaUnordered list
The cadences at which automatic snapshots are taken. Update replaces the whole set; an empty set disables automatic snapshots. Order is not significant. When several cadences fire together, one snapshot is taken, retained for the longest of their retentions.
Show child attributesHide child attributes
- daily_scheduleobjectBeta
Take a snapshot once per day.
Show child attributesHide child attributes
- hourint32Beta
The hour of the day, in UTC, at which to take the snapshot, in [0, 23].
- weekly_scheduleobjectBeta
Take a snapshot once per week.
Show child attributesHide child attributes
- day_of_weekstringBeta
The day of the week on which to take the snapshot.
DAY_OF_WEEK_UNSPECIFIEDMONDAYTUESDAYWEDNESDAYTHURSDAYFRIDAYSATURDAYSUNDAY
- hourint32Beta
The hour of the day, in UTC, at which to take the snapshot, in [0, 23].
- monthly_scheduleobjectBeta
Take a snapshot once per month.
Show child attributesHide child attributes
- dayint32Beta
The day of the month on which to take the snapshot, in [1, 31]. In shorter months the snapshot is taken on the last day instead (day 31 runs on Feb 28 or 29, and on Apr 30), so every month gets exactly one snapshot.
- hourint32Beta
The hour of the day, in UTC, at which to take the snapshot, in [0, 23].
- retentionstringBeta
How long snapshots from this cadence are kept before automatic deletion. Must be at least 1 hour. Applied when a snapshot is taken; not retroactive, so changing it affects only later snapshots.
Get a Snapshot Schedule Beta
GET
Retrieves the snapshot schedule for a branch. A branch with no configured schedule returns an empty schedule (not NOT_FOUND).
API scopes: postgres
Parameters
- namestringRequiredpath
The resource name of the branch's snapshot schedule. Format: projects/{project_id}/branches/{branch_id}/snapshot-schedule
Response
Returns the SnapshotSchedule object.
Update a Snapshot Schedule Beta
PATCH
Sets the snapshot schedule for a branch. The schedule field is replaced
wholesale; an empty schedule disables automatic snapshots.
API scopes: postgres
Parameters
- namestringRequiredIDImmutablepath
The resource name of the branch's snapshot schedule. Format: projects/{project_id}/branches/{branch_id}/snapshot-schedule
- update_maskstringRequiredquery
Fields to update. The only updatable path is
schedule, which replaces the entire set of cadences.
Request body
The snapshot schedule to set. Its name identifies the branch.
Format: projects/{project_id}/branches/{branch_id}/snapshot-schedule
- schedulearray of objectUnordered list
The cadences at which automatic snapshots are taken. Update replaces the whole set; an empty set disables automatic snapshots. Order is not significant. When several cadences fire together, one snapshot is taken, retained for the longest of their retentions.
Show child attributesHide child attributes
- daily_scheduleobject
Take a snapshot once per day.
Show child attributesHide child attributes
- hourint32
The hour of the day, in UTC, at which to take the snapshot, in [0, 23].
- weekly_scheduleobject
Take a snapshot once per week.
Show child attributesHide child attributes
- day_of_weekstringRequired
The day of the week on which to take the snapshot.
DAY_OF_WEEK_UNSPECIFIEDMONDAYTUESDAYWEDNESDAYTHURSDAYFRIDAYSATURDAYSUNDAY
- hourint32
The hour of the day, in UTC, at which to take the snapshot, in [0, 23].
- monthly_scheduleobject
Take a snapshot once per month.
Show child attributesHide child attributes
- dayint32Required
The day of the month on which to take the snapshot, in [1, 31]. In shorter months the snapshot is taken on the last day instead (day 31 runs on Feb 28 or 29, and on Apr 30), so every month gets exactly one snapshot.
- hourint32
The hour of the day, in UTC, at which to take the snapshot, in [0, 23].
- retentionstringRequired
How long snapshots from this cadence are kept before automatic deletion. Must be at least 1 hour. Applied when a snapshot is taken; not retroactive, so changing it affects only later snapshots.
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.