View All Snapshots
get
/paas/api/v1.1/instancemgmt/{identityDomainId}/services/MySQLCS/instances/{serviceId}/snapshots
Returns information about all the storage snapshots of a MySQL Cloud Service instance.
Request
Path Parameters
-
identityDomainId: string
Name of the identity domain for the MySQL Cloud Service account.
-
serviceId: string
The user-defined name of the Oracle MySQL Cloud Service instance.
Header Parameters
-
X-ID-TENANT-NAME: string
Name of the identity domain for the MySQL Cloud Service account.
Response
Supported Media Types
- application/json
200 Response
OK. See Status Codes for information about other possible HTTP status codes.
Root Schema : Response Body
Type:
array
Title:
Response Body
Array of JSON object elements, with one element each for snapshot.
Show Source
-
[0]:
object Response Body Array Item
Title:
Response Body Array Item
Nested Schema : Response Body Array Item
Type:
object
Title:
Show Source
Response Body Array Item
-
cloneCount(optional):
integer
Number of service instances created from the snapshot.
-
description(optional):
string
Description of the snapshot.
-
name(optional):
string
Name of the snapshot.
-
opInProgress(optional):
string
In-progress operation of the snapshot:
RemoveSnapshot
orClone
. -
opStatusMessage(optional):
string
Status message of the snapshot:
Snapshot In Progress
,Clone In Progress
,Remove Snapshot In Progress
, orSnapshot Succeeded
. -
status(optional):
string
Status of the snapshot:
In Progress
orSucceeded
. -
timestamp(optional):
string
The date-and-time stamp when the snapshot was created.
Examples
The following example shows how to view information about all snapshots of a MySQL Cloud Service instance by submitting a GET request on the REST endpoint using cURL.
In this example, the identity domain is ExampleIdentityDomain
and the Oracle Cloud user name and password are username
and password
. The response shows three snapshots, snaptest
, snaptest1
, and snaptest2
.
cURL Command
curl -i -X GET \
-u "username:password" \
-u "X-ID-TENANT-NAME:ExampleIdentityDomain" \
https://rest_server_url/paas/api/v1.1/instancemgmt/ExampleIdentityDomain/services/MySQLCS/instances/MyTestInstance/snapshots
HTTP Status Code and Response Headers
HTTP/1.1 200 OK
Date: Wed, 26 Jul 2017 14:25:45 GMT
Server: Oracle-Application-Server-11g
Strict-Transport-Security: max-age=31536000; includeSubDomains
Content-Length: 498
Access-Control-Allow-Origin: *
Access-Control-Allow-Headers: Content-Type, api_key, Authorization, X-ID-TENANT-NAME, X-USER-IDENTITY-DOMAIN-NAME
Access-Control-Allow-Methods: GET, POST, DELETE, PUT, OPTIONS, HEAD
X-ORACLE-DMS-ECID: 005LJ^tEIOy2zGILIqH7if0004vG0000Fk
X-ORACLE-DMS-ECID: 005LJ^tEIOy2zGILIqH7if0004vG0000Fk
Content-Language: en
X-Frame-Options: DENY
Vary: Accept-Encoding,User-Agent
Content-Type: application/json
Response Body
[ { "name":"snaptest2", "description":"stringTest", "cloneCount":0, "timestamp":"2017-07-26T14:00:15.040+0000", "status":"Succeeded", "opStatusMessage":"Snapshot Succeeded" }, { "name":"snaptest1", "description":"stringTest", "cloneCount":0, "timestamp":"2017-07-26T13:46:03.720+0000", "status":"Succeeded", "opStatusMessage":"Snapshot Succeeded" }, { "name":"snaptest", "description":"stringTest", "cloneCount":0, "timestamp":"2017-07-26T12:40:22.273+0000", "status":"Succeeded", "opStatusMessage":"Snapshot Succeeded" } ]