Get a snapshot

get

/api/20210901/snapshots/{snapshotId}

Return information about a single snapshot with a given id. Details such as the snapshot name, BAR file name, storage location, creator, and date created.

Request

Path Parameters

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

Successful operation.
Body ()
Root 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

404 Response

Not Found. The requested resource was not found.
Body ()
Root Schema : Error
Type: object
Show Source
Back to Top

Examples

In this example, you return the details of a single snapshot with the ID ac6fdab7-9c16-4d22-a56f-cb7b5d15505a.

cURL Example:

curl -i \
  --header 'Authorization: Bearer <token>' \
  --request GET 'https://<hostname>/api/20210901/snapshots/ac6fdab7-9c16-4d22-a56f-cb7b5d15505a'

Example of Request Body

Not applicable.

Example of Response Body

Status 200:

{

  "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