List Service Backups
get
/api/v1.1/instances/{identityId}/{serviceId}/backups
Returns a list of all the backups of a service instance.
Request
Query Parameters
- fullBackupsOnly
-
Type:
booleanLists full backups only if set to true.false- includeAll
Type:booleanIncludes all backups if set to true.false- includeCompleteNotes
Type:booleanIncludes all notes if set to true.false
Response
Supported Media Types
- application/json
200 Response
Accepted
Body
Root Schema : ViewAllBackupsResponse
Type:
object- backupInProgress
-
Type:
arraybackupInProgressRequired:true - backups
-
Type:
arraybackupsRequired:true
Nested Schema : backupInProgress
Type:
array-
Type:
objectBackupItem
Nested Schema : backups
Type:
array-
Type:
objectBackupItem
Nested Schema : BackupItem
Type:
object- backupCompleteDate
-
Type:
stringRequired:trueDate and time that the backup completed. This attribute is not valid for backups that are in progress. - backupId
-
Type:
stringRequired:trueBackup ID - backupStartDate
-
Type:
stringRequired:trueDate and time that the backup started. - dbTag
-
Type:
stringRequired:trueRMAN tag that identifies the Oracle Cloud Database Service database files. You can use this tag if you need to restore the database. For more information about restoring the database, see Restoring from a Specific Backup in Using Oracle Database Cloud - Database as a Service.Note: This attribute is included only if the database was included in the backup.
- expirationDate
-
Type:
stringRequired:trueDate and time that the backup will be deleted automatically from storage. If set tonull, the backup is retained indefinitely or until you manually delete it. - full
-
Type:
booleanRequired:trueFlag that specifies whether this is a full (true) or incremental (false) backup. Full backups contain all of the instance files, including runtime artifacts and files that change infrequently or do not change. Incremental backups contain only the runtime artifacts of each managed VM in the instance. - href
-
Type:
stringRequired:trueURI of the backup resource. - initiatedBy
-
Type:
stringRequired:trueUser account that initiated this operation. - jobId
-
Type:
stringRequired:trueJob ID for the backup. - local
-
Type:
booleanRequired:trueFlag that specifies whether the backup is to be downloaded and stored locally in block storage on the Administration Server (true), or archived and stored remotely on the Oracle Storage Cloud Service container (false). - size
-
Type:
stringRequired:trueSize of the backup, in MBs. For example:1011.4MB(backup complete) orUnknown(backup in-progress). - status
-
Type:
stringRequired:trueStatus of the backup. Valid values include:Completed,Failed,Deleted,Backup In Progress,Upload In Progress,Download In Progress,Restore In Progress, orDelete In Progress.
Examples
The following example shows how to view all backups for an Oracle SOA Cloud Service instance by submitting a GET request on the REST resource using cURL. For more information, see Use cURL
See also Restoring an Oracle SOA Cloud Service Instance from a Backup.
cURL Command
curl -i -X GET -u joe@example.com:Welcome1! -H "X-ID-TENANT-NAME:ExampleIdentityDomain" https://api-host/paas/service/soa/api/v1.1/instances/ExampleIdentityDomain/ExampleInstance/backups
Note:: This example uses the URL prefix for the United States (
soacs). For information about the URL prefixes for other regions of the world, see
Send Requests.
Example of Response Header
The following shows an example of the response header.
HTTP/1.1 200 OK Date: Wed, 04 Feb 2015 21:24:33 GMT Transfer-Encoding: chunked Content-Type: application/json
Example of Response Body
The following example shows the contents of the response body in JSON format, including one completed backup and one in progress:
{
"backups":[
{"backupId":"1390442367140",
"jobId":"202",
"backupStartDate":"Wed Jul 16 17:59:27 PST 2014",
"backupCompleteDate":"Wed Jul 16 18:00:59 PST 2014",
"expirationDate":"Fri Aug 21 17:59:27 PST 2014",
"initiatedBy":"scheduled",
"full":true,
"local":true,
"localCopy":true,
"size":"1650.3MB",
"sizeInBytes":1730501782,
"dbTag":"TAG20150923T192248"
"status":"Completed",
"href":"https:\/\/api-host\/paas\/service\/soa\/api\/instances\/ExampleIdentityDomain\/ExmapleService\/backups\/1390442367140"
"notes":"Automated backup"},
{ . . . }
],
"backupInProgress":{
"backupId":"1406814125722",
"jobId":"450",
"backupStartDate":"Fri Jul 25 12:33:50 PST 20144",
"expirationDate":"Sun Aug 31 12:33:50 PST 2014",
"initiatedBy":"scheduled",
"full":true,
"localCopy":true,
"size":"1650.3MB",
"sizeInBytes":1730501782,
"dbTag":"TAG20150923T192248"
"status":"Backup In Progress",
"href":"https:\/\/api-host\/paas\/service\/soa\/api\/instances\/ExampleIdentityDomain\/ExampleInstance\/backups\/1406814125722",
"notes":"Automated backup"}
}