Zum Hauptinhalt springen

List Backups belonging to a Project

GET/projects/{projectId}/backups/
v2
GET
backup-list-project-backups

Request

  • projectIdstring
    required

    ID of the Project to get Backups for.

Responses

Response-Header

  • X-Pagination-Limitinteger

    The limit used to select the resources for the response

  • X-Pagination-Skipinteger

    The number of skipped items

  • X-Pagination-Pagenumber

    The calculate page of the list response. Refer to parameters to learn more.

  • X-Pagination-TotalCountinteger

    The total amount of items available in the remote ressource. Use this value in combination with the limit to calculate the available pages.

application/json

OK

  • Array[
    • *object
      • createdAtstring (date-time)
      • deletableboolean
        required
      • descriptionstring
      • expiresAtstring (date-time)
      • exportobject
        • downloadURLstring (url)
        • expiresAtstring (date-time)
        • formatstring
          required
        • phasestring (one of: Pending, Exporting, Failed, Completed, Expired)
        • sha256Checksumstring
        • withPasswordboolean
          required
      • idstring (uuid)
        required
      • parentIdstring (uuid)
      • projectIdstring (uuid)
        required
      • requestedAtstring (date-time)
        required
      • restoreobject
        • databaseRestoresarray of object
          • Array[
            • *object
              • databaseBackupDumpstring
                required
              • targetDatabaseIdstring (uuid)
                required
            ]
        • pathRestoreobject
          • clearTargetPathboolean
            required
          • determinedTargetPathstring
            required
          • sourcePathsarray of string
            required
            • Array[
              • *string
              ]
          • targetRestorePathstring
        • phasestring (one of: running, completed)
          required
      • restorePathobject
        • clearTargetPathboolean
          required
        • determinedTargetPathstring
          required
        • phasestring (one of: running, completed)
          required
        • sourcePathstring
          required
        • targetPathstring
      • statusstring
        required
    ]

Usage examples

$ curl \
--fail \
--location \
-H "Authorization: Bearer $MITTWALD_API_TOKEN" \
https://api.mittwald.de/v2/projects/string/backups?searchTerm=string&withExportsOnly=true&sortOrder=oldestFirst&runningRestoresOnly=true&limit=50&page=1