Skip to content

Get Snapshot Schedule

GET
/dbaas/{managed_db_id}/snapshots/schedule/
curl --request GET \
--url 'https://api.e2enetworks.com/myaccount/api/v1/gpu/dbaas/{managed_db_id}/snapshots/schedule/?project_id=<PROJECT_ID>&location=<LOCATION>&apikey=<API_KEY>' \
--header 'Authorization: Bearer <API_TOKEN>'

Returns the database’s automatic snapshot schedule and its next run. Works in every database status. Needs the Read permission for DBaaS.

managed_db_id
required
integer

Database ID

project_id
required
integer

Project ID

active_iam
integer

Active IAM ID (To access contact person account) Find your Active IAM ID here

location
required
string
Allowed values: Delhi Chennai

Location

The schedule

Media typeapplication/json
object
code
integer
message
string
data
object
enabled

Whether automatic snapshots are on.

boolean
frequency
string
Allowed values: daily weekly hourly custom_cron
start_time

Time of day in IST, as HH:MM on a 24-hour clock.

string
nullable
day_of_week

For weekly: 0 (Sunday) to 6 (Saturday).

integer
nullable
cron_expression

The 5-field cron expression the schedule runs on, read in IST.

string
retention_count

How many scheduled snapshots are kept.

integer
next_run_at

The next scheduled run, in IST. null when the schedule is off.

string
nullable
errors
object

Example

{
"code": 200,
"message": "Success",
"data": {
"enabled": true,
"frequency": "daily",
"start_time": "02:00",
"day_of_week": null,
"cron_expression": "0 2 * * *",
"retention_count": 7,
"next_run_at": "2026-10-27T02:00:00+05:30"
},
"errors": {}
}

project_id is missing or not a number.

Media typeapplication/json
object
code
integer
message
string
data
object
errors
string

Example

{
"code": 400,
"message": "Bad Request",
"data": {},
"errors": "Project ID is missing or invalid"
}

The caller lacks the permission the call needs on the project, or the region is not allowed.

Media typeapplication/json
object
code
integer
message
string
data
object
errors
string

Example

{
"code": 403,
"message": "Forbidden",
"data": {},
"errors": "You don't have permission to access this service. Please verify your policy or project."
}

No database with that ID in the project and region.

Media typeapplication/json
object
code
integer
message
string
data
object
errors
string

Example

{
"code": 404,
"message": "Bad Request",
"data": {},
"errors": "Invalid request! Database Not Found"
}