Eon.io Database Snapshots API

Manage database snapshots and their recovery points.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 3

POST /v1/projects/{projectId}/snapshots/{snapshotId}/databases/query Run Query #
GET /v1/projects/{projectId}/queries/{queryId}/status Get Query Status #
GET /v1/projects/{projectId}/queries/{queryId}/results Get Query Result #

Specifications

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/eon.io:eon.io-database-snapshots-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

eon.io-database-snapshots-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Reference Database Snapshots API
  version: 1.0.0
  description: Manage database snapshots and their recovery points.
servers:
- url: https://%7Baccount-domain%7D.console.eon.io/api
  description: https://{account-domain}.console.eon.io/api
tags:
- name: Database Snapshots
  description: Manage database snapshots and their recovery points.
paths:
  /v1/projects/{projectId}/snapshots/{snapshotId}/databases/query:
    post:
      operationId: databaseSnapshots_runQuery
      summary: Run Query
      description: 'Runs a SQL query against a database snapshot.


        This method is asynchronous.

        It returns a query ID that you can use to check the status of the query.

        You can then use the query ID to call [Get Query Status] and [Get Query Result].


        When the query is complete, the results are saved as a CSV to the location you specify in your restore account.


        If the request fails, see [Troubleshooting Queries] for possible errors and how to resolve them.


        [Troubleshooting Queries]: /data-protection/backup-and-protection/exploring-and-querying/query/troubleshooting-queries

        [Get Query Status]: ./get-query-status

        [Get Query Result]: ./get-query-result'
      tags:
      - Database Snapshots
      parameters:
      - name: projectId
        in: path
        description: "ID of the project that contains the database snapshot you want to retrieve.\nYou can see your project ID in the [API Credentials](https://console.eon.io/global-management/api-credentials) page in your global management console. \n"
        required: true
        schema:
          type: string
          format: uuid
      - name: snapshotId
        in: path
        description: 'ID of the database [snapshot](/api/api-reference/backup-management/snapshots/list-resource-snapshots) you want to query.

          Snapshot must belong to an RDS resource.

          '
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '202':
          description: Querying database.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QueryDBResponse'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/QueryDBRequest'
      security:
      - ApiKeyAuth: []
  /v1/projects/{projectId}/queries/{queryId}/status:
    get:
      operationId: databaseSnapshots_getQueryStatus
      summary: Get Query Status
      description: 'Retrieves a query''s status.


        This method requires a query ID, which you can get only from the Run Query response.


        When a query is completed, you can retrieve the query results in one of these ways:


        - Following the `outputLocation` URI in this method''s response object.

        The URI points to where the results are stored as a CSV file.

        - Calling Get Query Result.

        Get Query Result returns a paginated array of results as JSON for additional processing or handling.


        If the query failed, see [Troubleshooting Queries] for possible errors and how to resolve them.


        [Troubleshooting Queries]: /data-protection/backup-and-protection/exploring-and-querying/query/troubleshooting-queries'
      tags:
      - Database Snapshots
      parameters:
      - name: projectId
        in: path
        description: "ID of the project that contains the query status you want to retrieve.\nYou can see your project ID in the [API Credentials](https://console.eon.io/global-management/api-credentials) page in your global management console. \n"
        required: true
        schema:
          type: string
          format: uuid
      - name: queryId
        in: path
        description: Query ID returned by [Run Query](./run-query).
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Query status retrieved.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QueryDBStatusResponse'
        '404':
          description: Query wasn't found.
          content:
            application/json:
              schema:
                description: Any type
      security:
      - ApiKeyAuth: []
  /v1/projects/{projectId}/queries/{queryId}/results:
    get:
      operationId: databaseSnapshots_getQueryResult
      summary: Get Query Result
      description: 'Retrieves the results of a query.


        This method requires a query ID, which you can get only from the Run Query response.


        This method can be used only when a query has completed.

        You can check a query''s status by calling Get Query Status.'
      tags:
      - Database Snapshots
      parameters:
      - name: projectId
        in: path
        description: "ID of the project that contains the query you want to retrieve.\nYou can see your project ID in the [API Credentials](https://console.eon.io/global-management/api-credentials) page in your global management console. \n"
        required: true
        schema:
          type: string
          format: uuid
      - name: queryId
        in: path
        description: Query ID returned by [Run Query](./run-query).
        required: true
        schema:
          type: string
      - name: pageSize
        in: query
        description: Maximum number of items to return in the response.
        required: false
        schema:
          type: integer
          minimum: 1
          default: 500
      - name: pageToken
        in: query
        description: 'Cursor that points to the first record of the next page of results.

          Get this value from the previous response.

          '
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Query results retrieved.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QueryDBResultResponse'
        '404':
          description: Query wasn't found.
          content:
            application/json:
              schema:
                description: Any type
      security:
      - ApiKeyAuth: []
components:
  schemas:
    QueryDBResponse:
      type: object
      properties:
        queryId:
          type: string
          description: 'Query ID.

            Can be used to call [Get Query Status](./get-query-status) and [Get Query Result](./get-query-result).

            '
      required:
      - queryId
      title: QueryDBResponse
    QueryDBRequest:
      type: object
      properties:
        databaseName:
          type: string
          description: Name of the database to query.
        query:
          type: string
          description: 'SQL query to run against the database.

            Support is limited to Athena [`SELECT` queries](https://docs.aws.amazon.com/athena/latest/ug/select.html).

            '
        restoreAccountId:
          type: string
          description: Eon-assigned ID of the [restore account](./list-restore-accounts).
        destination:
          $ref: '#/components/schemas/QueryDBRestoreDestination'
          description: Storage location to store CSV of query results to.
      required:
      - databaseName
      - query
      - restoreAccountId
      - destination
      title: QueryDBRequest
    QueryDBStatus:
      type: string
      enum:
      - UNSPECIFIED
      - IN_PROGRESS
      - COMPLETED
      - CANCELED
      - FAILED
      description: 'Query status.

        If completed, the query results can be retrieved.

        `UNSPECIFIED` is supported only in responses.

        '
      title: QueryDBStatus
    QueryDBStatusResponse:
      type: object
      properties:
        runningTimeMs:
          type: integer
          description: Time the query took to run, in milliseconds.
        status:
          $ref: '#/components/schemas/QueryDBStatus'
        errorMessage:
          type:
          - string
          - 'null'
          description: 'Error message.

            Present only if the status is `FAILED`.

            '
        outputLocations:
          type: array
          items:
            type: string
          description: 'Locations where the query results are saved to.

            This is set by `destination` in the [Run Query](./run-query) request body.

            '
      required:
      - status
      title: QueryDBStatusResponse
    QueryDBRestoreDestination:
      type: object
      properties:
        s3Bucket:
          $ref: '#/components/schemas/S3RestoreDestination'
      title: QueryDBRestoreDestination
    S3RestoreDestination:
      type: object
      properties:
        bucketName:
          type: string
          description: 'Name of an existing bucket to restore query results to.

            Must be in the same region as the snapshot''s vault.

            '
        prefix:
          type: string
          description: 'Prefix to prepend to the restore path.

            If omitted, query results are restored to the bucket root.

            '
      required:
      - bucketName
      description: S3 bucket.
      title: S3RestoreDestination
    QueryDBResultResponse:
      type: object
      properties:
        columns:
          type: array
          items:
            type: string
          description: List of the column names in the returned records.
        records:
          type: array
          items:
            type: array
            items:
              type: string
          description: 'List of records, returned as an array of arrays.

            The inner array contains the values of the columns in the same order as returned in `columns`.

            '
        nextToken:
          type:
          - string
          - 'null'
          description: 'Cursor that points to the first record of the next page of results.

            Pass this value in the next request.

            '
      required:
      - columns
      - records
      - nextToken
      title: QueryDBResultResponse
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer