View a Backup Configuration
/paas/api/v1.1/instancemgmt/{identityDomainId}/services/MySQLCS/instances/{serviceId}/backupconfig
- Default retention time for incremental backups and full on-demand backups; full scheduled backups are retained until their last related incremental backup is no longer available
- Schedule for full backups
- Schedule for incremental backups
- Date and time of the last successful backup
- Date and time for the next scheduled backup (both full and incremental)
- Total cloud storage container used for backups and total backup volume used
Request
-
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.
-
X-ID-TENANT-NAME: string
Name of the identity domain for the MySQL Cloud Service account.
Response
- application/json
200 Response
object
-
backupDestination(optional):
string
Default Value:
NONE
Location of the backups;BOTH
- Disk and Oracle Storage Cloud Service Container,OSS
- Cloud Storage Only, orNONE
. The default isNONE
. -
cloudStorageContainer(optional):
string
Name of the Oracle Storage Cloud Service container that is used to store backups.
-
cloudStorageUser(optional):
string
User name to access the specified Oracle Storage Cloud Service container.
-
defaultRetention(optional):
string
Number of days incremental backups and full on-demand backups are retained. This value defaults to 30.
Full scheduled backups are retained until their last related incremental backup is no longer available, if any.
-
extendedRestoreTypes(optional):
string
Only value is
pit
. This means that point-in-time restoration is also supported, in addition to restoration by using a backup ID. -
fullBackupSchedule(optional):
object backup-schedule
Attributes for
fullBackupSchedule
andincrementalBackupSchedule
. -
incrementalBackupSchedule(optional):
object backup-schedule
Attributes for
fullBackupSchedule
andincrementalBackupSchedule
. -
lastBackupDate(optional):
string
Date and time that the last backup completed.
Note: If there have been no backups, this attribute is omitted.
-
lastSuccessfulCleanupDate(optional):
string
Date and time that the last successful cleanup job completed. The cleanup job is run after the scheduled backup for the day is completed. The cleanup job purges old records, deletes expired backups. If there have been no cleanups, this attribute is omitted.
-
localRetention(optional):
string
Number of days to retain the copies of backup on a dedicated storage volume. Default is 7 days.
The local retention value cannot be larger than the default retention value (specified by defaultRetention).
Copies of full scheduled backups are retained until the local copy of their last related incremental backup is no longer available, if any.
Any change to the local retention value will affect new backup copies as well as existing copies. This means if you change the value to a smaller number, existing backup copies that meet the updated retention policy will be deleted during the next backup or next scheduled maintenance cycle.
-
nextFullBackupDate(optional):
string
Scheduled date and time for next full backup.
-
nextIncrementalBackupDate(optional):
string
Scheduled date and time for next incremental backup.
-
percentBackupVolumeUsed(optional):
string
Total percent of the backup volume that is currently in use.
-
scheduledBackups(optional):
string
Type of scheduled backups. Only value is
ALL
. This means both full and incremental scheduled backups are enabled. -
totalBackupVolumeUsed(optional):
string
Total amount, in MBs, of the backup volume that is currently in use.
-
totalBackupVolumeUsedInBytes(optional):
string
Total amount, in Bytes, of the backup volume that is currently in use.
-
totalCloudStorageContainerUsed(optional):
string
Total amount, in MBs, of the Storage Cloud Service container space that is currently in use.
-
totalCloudStorageContainerUsedInBytes(optional):
string
Total amount, in Bytes, of the Storage Cloud Service container space that is currently in use.
object
fullBackupSchedule
and incrementalBackupSchedule
.-
dayOfMonth(optional):
string
Day of the month. This value is not configurable. It defaults to all days of the month with is an astrisk (*).
-
dayOfWeek(optional):
string
Day of the week. Valid values are: Mon, Tue, Wed, Thu, Fri, Sat, Sun. For full backups, only one value (day) is allowed. For incremental backups, one or more values (days) are allowed. If a value is not specified for incremental backups, the default value is calculated as all days except the day that full backups are initiated.
-
hour(optional):
string
Hours. Valid values are 0 to 23.
-
minute(optional):
string
Minutes. Valid values are 0 to 59.
-
month(optional):
string
Month. This value is not configurable. It defaults to all months with an astrisk (*).
-
second(optional):
string
Seconds. This value is not configurable. It defaults to 0.
-
year(optional):
string
Year. This value is not configurable. It defaults to all years (*).
Examples
The following example shows how to view a backup configuration for a MySQL Cloud Service instance by submitting a GET request on the REST endpoint using cURL.
Note: The command in this example uses the URL structure https://rest_server_url/resource-path
, where rest_server_url
is the Oracle Public Cloud or Oracle Cloud Machine REST server to contact for your identity domain or tenant name. See Send Requests for the appropriate URL structure to use on Oracle Public Cloud or Oracle Cloud Machine.
cURL Command
curl -i -X GET \
-u "username:password" \
-H "X-ID-TENANT-NAME: ExampleIdentityDomain" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
https://rest_server_url/paas/api/v1.1/instancemgmt/ExampleIdentityDomain/services/MySQLCS/instances/MyTestInstance/backupconfig
Example of Response Header
The following shows an example of the response header.
HTTP/1.1 200 OK
Server: Oracle-Application-Server-11g
Content-Language: en
Access-Control-Allow-Headers: Content-Type, api_key, Authorization
Access-Control-Allow-Methods: GET, POST, DELETE, PUT, OPTIONS, HEAD
X-ORACLE-DMS-ECID: gGH0d003Ri5ERVV00vui0u620pVZH005F0
X-ORACLE-DMS-ECID: gGH0d003Ri5ERVV00vui0u620pVZH005F0
Access-Control-Allow-Origin: *
X-Frame-Options: DENY
Content-Type: application/json
Vary: user-agent
Date: Thu, 15 Dec 2016 00:44:45 GMT
Content-Length: 772
Connection: keep-alive
Example of Response Body
The following shows an example of the response body in JSON format.
{ "defaultRetention": "30 days", "fullBackupSchedule": { "second": "0", "minute": "0", "hour": "12", "dayOfMonth": "*", "month": "*", "dayOfWeek": "Thu", "year": "*" }, "incrementalBackupSchedule": { "second": "0", "minute": "0", "hour": "12", "dayOfMonth": "*", "month": "*", "dayOfWeek": "Sun,Mon,Tue,Wed,Fri,Sat", "year": "*" }, "scheduledBackups": "ALL", "extendedRestoreTypes": "pit", "nextFullBackupDate": "2016-12-15T12:00:00.000+0000", "nextIncrementalBackupDate": "2016-12-16T12:00:00.000+0000", "backupDestination": "BOTH", "cloudStorageContainer": "Storage-ExampleIdentityDomain\/MyBackupContainer", "cloudStorageUser": "username", "totalCloudStorageContainerUsed": "0.0MB", "totalCloudStorageContainerUsedInBytes": 0, "totalBackupVolumeUsed": "0.0MB", "totalBackupVolumeUsedInBytes": 0, "percentBackupVolumeUsed": 0 }