View All Snapshots

get

/paas/api/v1.1/instancemgmt/{identityDomainId}/services/jaas/instances/{serviceId}/snapshots

Returns infomation about all snapshots of an Oracle Java Cloud Service instance.

Request

Path Parameters
Header Parameters
Back to Top

Response

Supported Media Types

200 Response

OK
Body ()
Root Schema : view-all-snapshots
Type: array
Array of JSON object elements. Each object element is a snapshot.
Show Source
Nested Schema : available-snapshots
Type: object
Show Source
Back to Top

Examples

The following example shows how to view all snapshots created for an Oracle Java Cloud Service instance, by submitting a GET request on the REST resource using cURL.

Note: The command in this example uses the URL structure https://rest_server_url/resource-path, where rest_server_url is the REST server to contact for your identity domain (or Cloud Account). See Send Requests.

cURL Command

curl -i -X GET -u username:password -H "X-ID-TENANT-NAME:ExampleIdentityDomain" https://rest_server_url/paas/api/v1.1/instancemgmt/ExampleIdentityDomain/services/jaas/instances/ExampleInstance/snapshots

Example of Response Header

The following shows an example of the response header.

HTTP/1.1 200 OK
Date: Fri, 27 Oct 2017 20:34:54 GMT
Content-Length: 170
Content-Type: application/json

Example of Response Body

The following is an example of the response returned in JSON format.

[
   {
      "name":"mysnap11",
      "description":"A snapshot description",
      "cloneCount":0,
      "timestamp":"2018-08-30T21:15:32.458+0000",
      "remoteSnapshot":false,
      "scheduledSnapshot":false,
      "detachableSnapshot":false,
      "status":"Succeeded",
      "opStatusMessage":"Snapshot Succeeded"
   },
   {
      "name":"testsnap10",
      "description":"Snapshot description",
      "cloneCount":0,
      "timestamp":"2018-08-30T20:52:53.710+0000",
      "remoteSnapshot":false,
      "scheduledSnapshot":false,
      "detachableSnapshot":false,
      "status":"Succeeded",
      "opStatusMessage":"Snapshot Succeeded"
   }
]
Back to Top