Akter

Snapshots

Named snapshots of an environment's data, each kept until it or its environment is deleted and billed by size.

List⁠

GEThttps://api.akter.dev/v1/organizations/{organization}/apps/{app}/environments/{environment}/snapshots
snapshots.listBearer token

List an environment's snapshots in name order, a page at a time, with their status.

Path parameters

  • appstringrequired

    An app's name, unique within its organization. 1 to 63 characters: a lowercase letter, then lowercase letters, digits or single hyphens, ending in a letter or digit.

  • organizationstringrequired

    An organization's name, unique across Akter Cloud. 1 to 63 characters: a lowercase letter, then lowercase letters, digits or single hyphens, ending in a letter or digit.

  • environmentstringrequired

    An environment of an app, such as prod or pr-42. Each environment has its own store. 1 to 63 characters: a lowercase letter, then lowercase letters, digits or single hyphens, ending in a letter or digit.

Query parameters

  • cursorstring

    The nextCursor of the previous page.

  • limitinteger

    At most this many items, 1 to 100. Defaults to 50.

Response 200SnapshotPage

  • itemsSnapshot[]required
  • items[].createdAtstringrequired
  • items[].environmentstringrequired

    An environment of an app, such as prod or pr-42. Each environment has its own store. 1 to 63 characters: a lowercase letter, then lowercase letters, digits or single hyphens, ending in a letter or digit.

  • items[].namestringrequired

    A named snapshot of an environment, such as before-migration, unique within the environment. 1 to 63 characters: a lowercase letter, then lowercase letters, digits or single hyphens, ending in a letter or digit.

  • items[].reasonstring

    Why a Failed snapshot was not taken.

  • items[].sizeBytesinteger

    The environment's data size when the snapshot was taken, which it is billed by.

  • items[].status"Pending" | "Ready" | "Failed" | "Retired"required

    Pending: the checkpoint is being taken. Ready: it holds the environment's data as of takenAt. Failed: no snapshot was taken; reason says why. Retired: it was deleted and can't be used, but the storage provider keeps its data until it can be removed.

  • items[].takenAtstring
  • nextCursorstring

    Pass as cursor for the next page.

Errors

  • 401UnauthorizedError
  • 403ForbiddenError
  • 404NotFoundError | FeatureNotEnabledError
  • 503ActorUnavailableError | AuthUnavailableError | BillingUnavailableError | BuildStorageUnavailableError | ExecUnavailableError

Create⁠

POSThttps://api.akter.dev/v1/organizations/{organization}/apps/{app}/environments/{environment}/snapshots
snapshots.createBearer token

Snapshot the environment's data now, as of the moment it is taken; writes keep running meanwhile. It answers Pending, and get shows it Ready once taken, usually within seconds. A name already in use fails with AlreadyExistsError, a deleted environment with InUseError (environmentRetired), and a full environment with SnapshotLimitError.

Path parameters

  • appstringrequired

    An app's name, unique within its organization. 1 to 63 characters: a lowercase letter, then lowercase letters, digits or single hyphens, ending in a letter or digit.

  • organizationstringrequired

    An organization's name, unique across Akter Cloud. 1 to 63 characters: a lowercase letter, then lowercase letters, digits or single hyphens, ending in a letter or digit.

  • environmentstringrequired

    An environment of an app, such as prod or pr-42. Each environment has its own store. 1 to 63 characters: a lowercase letter, then lowercase letters, digits or single hyphens, ending in a letter or digit.

Request bodyCreateSnapshot

  • namestringrequired

    A named snapshot of an environment, such as before-migration, unique within the environment. 1 to 63 characters: a lowercase letter, then lowercase letters, digits or single hyphens, ending in a letter or digit.

Response 202Snapshot

  • createdAtstringrequired
  • environmentstringrequired

    An environment of an app, such as prod or pr-42. Each environment has its own store. 1 to 63 characters: a lowercase letter, then lowercase letters, digits or single hyphens, ending in a letter or digit.

  • namestringrequired

    A named snapshot of an environment, such as before-migration, unique within the environment. 1 to 63 characters: a lowercase letter, then lowercase letters, digits or single hyphens, ending in a letter or digit.

  • reasonstring

    Why a Failed snapshot was not taken.

  • sizeBytesinteger

    The environment's data size when the snapshot was taken, which it is billed by.

  • status"Pending" | "Ready" | "Failed" | "Retired"required

    Pending: the checkpoint is being taken. Ready: it holds the environment's data as of takenAt. Failed: no snapshot was taken; reason says why. Retired: it was deleted and can't be used, but the storage provider keeps its data until it can be removed.

  • takenAtstring

Errors

  • 401UnauthorizedError
  • 403ForbiddenError
  • 404NotFoundError | FeatureNotEnabledError
  • 409AlreadyExistsError | InUseError | SnapshotLimitError
  • 503ActorUnavailableError | AuthUnavailableError | BillingUnavailableError | BuildStorageUnavailableError | ExecUnavailableError

Get⁠

GEThttps://api.akter.dev/v1/organizations/{organization}/apps/{app}/environments/{environment}/snapshots/{snapshot}
snapshots.getBearer token

Read one snapshot: its status and, once taken, when and at what size.

Path parameters

  • appstringrequired

    An app's name, unique within its organization. 1 to 63 characters: a lowercase letter, then lowercase letters, digits or single hyphens, ending in a letter or digit.

  • organizationstringrequired

    An organization's name, unique across Akter Cloud. 1 to 63 characters: a lowercase letter, then lowercase letters, digits or single hyphens, ending in a letter or digit.

  • environmentstringrequired

    An environment of an app, such as prod or pr-42. Each environment has its own store. 1 to 63 characters: a lowercase letter, then lowercase letters, digits or single hyphens, ending in a letter or digit.

  • snapshotstringrequired

    A named snapshot of an environment, such as before-migration, unique within the environment. 1 to 63 characters: a lowercase letter, then lowercase letters, digits or single hyphens, ending in a letter or digit.

Response 200Snapshot

  • createdAtstringrequired
  • environmentstringrequired

    An environment of an app, such as prod or pr-42. Each environment has its own store. 1 to 63 characters: a lowercase letter, then lowercase letters, digits or single hyphens, ending in a letter or digit.

  • namestringrequired

    A named snapshot of an environment, such as before-migration, unique within the environment. 1 to 63 characters: a lowercase letter, then lowercase letters, digits or single hyphens, ending in a letter or digit.

  • reasonstring

    Why a Failed snapshot was not taken.

  • sizeBytesinteger

    The environment's data size when the snapshot was taken, which it is billed by.

  • status"Pending" | "Ready" | "Failed" | "Retired"required

    Pending: the checkpoint is being taken. Ready: it holds the environment's data as of takenAt. Failed: no snapshot was taken; reason says why. Retired: it was deleted and can't be used, but the storage provider keeps its data until it can be removed.

  • takenAtstring

Errors

  • 401UnauthorizedError
  • 403ForbiddenError
  • 404NotFoundError | FeatureNotEnabledError
  • 503ActorUnavailableError | AuthUnavailableError | BillingUnavailableError | BuildStorageUnavailableError | ExecUnavailableError

Delete⁠

DELETEhttps://api.akter.dev/v1/organizations/{organization}/apps/{app}/environments/{environment}/snapshots/{snapshot}
snapshots.deleteBearer token

Delete a snapshot: it can no longer be used, it is no longer billed, and its name is free again. The storage provider keeps its data until it can be removed, and it still counts toward the environment's snapshot limit. An API key needs a person's approval token in the akter-approval header.

Path parameters

  • appstringrequired

    An app's name, unique within its organization. 1 to 63 characters: a lowercase letter, then lowercase letters, digits or single hyphens, ending in a letter or digit.

  • organizationstringrequired

    An organization's name, unique across Akter Cloud. 1 to 63 characters: a lowercase letter, then lowercase letters, digits or single hyphens, ending in a letter or digit.

  • environmentstringrequired

    An environment of an app, such as prod or pr-42. Each environment has its own store. 1 to 63 characters: a lowercase letter, then lowercase letters, digits or single hyphens, ending in a letter or digit.

  • snapshotstringrequired

    A named snapshot of an environment, such as before-migration, unique within the environment. 1 to 63 characters: a lowercase letter, then lowercase letters, digits or single hyphens, ending in a letter or digit.

Response 200Snapshot

  • createdAtstringrequired
  • environmentstringrequired

    An environment of an app, such as prod or pr-42. Each environment has its own store. 1 to 63 characters: a lowercase letter, then lowercase letters, digits or single hyphens, ending in a letter or digit.

  • namestringrequired

    A named snapshot of an environment, such as before-migration, unique within the environment. 1 to 63 characters: a lowercase letter, then lowercase letters, digits or single hyphens, ending in a letter or digit.

  • reasonstring

    Why a Failed snapshot was not taken.

  • sizeBytesinteger

    The environment's data size when the snapshot was taken, which it is billed by.

  • status"Pending" | "Ready" | "Failed" | "Retired"required

    Pending: the checkpoint is being taken. Ready: it holds the environment's data as of takenAt. Failed: no snapshot was taken; reason says why. Retired: it was deleted and can't be used, but the storage provider keeps its data until it can be removed.

  • takenAtstring

Errors

  • 401UnauthorizedError
  • 403ForbiddenError
  • 404NotFoundError | FeatureNotEnabledError
  • 428ConfirmationRequiredError
  • 503ActorUnavailableError | AuthUnavailableError | BillingUnavailableError | BuildStorageUnavailableError | ExecUnavailableError