Get a MySQL snapshot by its ID

Get a MySQL snapshot by its ID alone, also after its instance is destroyed.

GET https://{availability_zone}.betterstackcloud.com/v1/mysql-snapshots/{id}
id string required

The ID of the MySQL snapshot to get.

Authorization string required

Bearer $TOKEN

200 OK
{
  "id": "example",
  "mysql_id": "123456789",
  "server_id": "123456789",
  "name": "Example MySQL snapshot",
  "snapshot_type": "manual",
  "status": "pending",
  "size_bytes": 1,
  "availability_zone": "example",
  "failure_reason": "example",
  "lock": {
    "reason": "fraud",
    "details": "example",
    "locked_at": "2026-07-01T12:00:00.000Z"
  },
  "created_at": "2026-07-01T12:00:00.000Z",
  "updated_at": "2026-07-01T12:00:00.000Z",
  "metadata": {
    "example": "value"
  }
}

Returns the MySQL snapshot.

id string

The snapshot's ID, a UUID.

mysql_id string

The ID of the MySQL instance the snapshot was taken from.

server_id string or null

The ID of the server that ran the instance's primary when the snapshot was taken, or null once that server is removed.

name string

The snapshot's name.

snapshot_type string

How the snapshot was created.
Valid values:
manual: You created the snapshot.
scheduled: A snapshot schedule created it.

status string

The snapshot's state.
Valid values:
pending: We're creating the snapshot.
available: The snapshot is ready, and you can restore it.
failed: We couldn't create the snapshot. failure_reason says why.
deleting: We're deleting the snapshot.

size_bytes integer or null

The size of the instance's disk when the snapshot was taken, in bytes. We bill this size. Is null until the snapshot is ready.

availability_zone string or null

The zone the snapshot was taken in. A restore creates the new instance in the same zone.

failure_reason string or null

Why the snapshot failed, or null unless the snapshot failed.

lock object or null

The lock Better Stack put on the snapshot, with its reason, or null when the snapshot isn't locked.

lock.reason string

Possible values: fraud, non_payment, abuse, legal, security, maintenance, other.

lock.details string or null

The details.

lock.locked_at datetime

In ISO 8601 format, such as 2026-07-01T12:00:00Z.

created_at datetime

When the snapshot was created. In ISO 8601 format, such as 2026-07-01T12:00:00Z.

updated_at datetime

When the snapshot was last updated. In ISO 8601 format, such as 2026-07-01T12:00:00Z.

metadata object

Your tags, as an object of string keys and values.