Get all snapshots

get

/api/20210901/snapshots

Return a list of all known snapshots for a single Analytics instance. That is, snapshots in Oracle Cloud Infrastructure storage created or registered using the REST API.

Request

There are no request parameters for this operation.

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

Successful operation.
Body ()
Root Schema : schema
Type: object
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : Snapshot
Type: object
Object which represents a snapshot.
Show Source
Nested Schema : Bar
Type: object
Snapshot BAR file.
Show Source
Nested Schema : Discriminator: type
Type: object
Discriminator: type

Discriminator Values

Match One Schema
Show Source
Nested Schema : OCINativeStorage
Oracle Cloud Infrastructure (OCI) storage details.
Match All
Show Source
Nested Schema : Storage
Type: object
Storage details.
Show Source
Nested Schema : OCINativeStorage-allOf[1]
Type: object
Show Source
Nested Schema : Discriminator: type
Type: object
Discriminator: type

Discriminator Values

Match One Schema
Show Source
  • OCIUserIdAuth
    Oracle Cloud Infrastructure (OCI) user ID authentication details. See [How to Generate an API Signing Key](https://docs.oracle.com/en-us/iaas/Content/API/Concepts/apisigningkey.htm#two).
Nested Schema : StorageType
Type: object
Type of storage.
Show Source
Nested Schema : OCIUserIdAuth
Oracle Cloud Infrastructure (OCI) user ID authentication details. See [How to Generate an API Signing Key](https://docs.oracle.com/en-us/iaas/Content/API/Concepts/apisigningkey.htm#two).
Match All
Show Source
Nested Schema : Auth
Type: object
Authentication details.
Show Source
Nested Schema : OCIUserIdAuth-allOf[1]
Type: object
Show Source
Nested Schema : AuthType
Type: object
Type of authentication.
Show Source

400 Response

Bad Request (invalid query parameters, malformed headers, and so on).
Body ()
Root Schema : Error
Type: object
Show Source
Back to Top

Examples

In this example, you obtain details of all available snapshots.

cURL Example:

curl -i \
  --header 'Authorization: Bearer <token>' \
  --request GET 'https://<hostname>/api/20210901/snapshots'

Example of Request Body

Not applicable.

Example of Response Body

Status 200:

{

  "items": [

    {

      "id": "ac6fdab7-9c16-4d22-a56f-cb7b5d15505a",

      "name": "myfirstsnapshot",

      "createdByUser": "Admin",

      "timeCreated": "2021-10-01T14:20:17.288Z",

      "storage": {

        "type": "OCI_NATIVE",

        "bucket": "mysnapshot-bucket",

        "auth": {

          "type": "OSS_AUTH_OCI_USER_ID",

          "ociRegion": "us-phoenix-1",

          "ociTenancyId": "ocid1.tenancy.oc1..xxxxx...",

          "ociUserId": "ocid1.user.oc1..xxxxxxxxxxxx..."

        }

      },

      "bar": {

        "uri": "file:///myfolder/myfirstsnapshot.bar"

      }

    }

  ]

}
Back to Top