Update the Backup Configuration
post
/api/v1.1/instances/{identityId}/{serviceId}/backupconfig
Updates the backup configuration for a service instance.
Request
Supported Media Types
- application/json
Path Parameters
- identityId
-
Type:
stringRequired:trueName of the identity domain for the Oracle Cloud Service account.- serviceId
Type:stringRequired:trueID of the service instance.
Body Parameter
Root Schema : UpdateBackupConfigurationPayload
Type:
object- cloudStorageContainer
-
Type:
stringOracle Cloud Storage Service container name. - defaultRetention
-
Type:
stringNumber of days the incremental backups are retained.
Full backups are retained until their last related incremental backup is available.
If set to null, backups are retained indefinitely or until you manually delete them. - fullBackupSchedule
-
Type:
objectfullBackupScheduleSchedule for the next full backup.
By default, full backups are initiated weekly starting 12 hours after a service instance was created, rounded to the nearest five-minute interval. - incrementalBackupSchedule
-
Type:
objectincrementalBackupScheduleSchedule for the next incremental backup.
By default, incremental backups are initiated every day except the day of a full backup at the same time that full backups are initiated.
Units are the same as for 'fullBackupSchedule'.
Nested Schema : fullBackupSchedule
Type:
objectSchedule for the next full backup.
By default, full backups are initiated weekly starting 12 hours after a service instance was created, rounded to the nearest five-minute interval.
By default, full backups are initiated weekly starting 12 hours after a service instance was created, rounded to the nearest five-minute interval.
- dayOfMonth
-
Type:
stringNon-configurable item. '*' (all days) - dayOfWeek
-
Type:
stringConfigurable item - hour
-
Type:
stringConfigurable item - minute
-
Type:
stringConfigurable item - month
-
Type:
stringNon-configurable item. '*' (all months) - second
-
Type:
stringNon-configurable item. Defaults to '0' - year
-
Type:
stringNon-configurable item. '*' (all years)
Nested Schema : incrementalBackupSchedule
Type:
objectSchedule for the next incremental backup.
By default, incremental backups are initiated every day except the day of a full backup at the same time that full backups are initiated.
Units are the same as for 'fullBackupSchedule'.
By default, incremental backups are initiated every day except the day of a full backup at the same time that full backups are initiated.
Units are the same as for 'fullBackupSchedule'.
- dayOfMonth
-
Type:
stringDay Of Month - dayOfWeek
-
Type:
stringDay Of Week - hour
-
Type:
stringhours - minute
-
Type:
stringminutes - month
-
Type:
stringMonth - second
-
Type:
stringseconds - year
-
Type:
stringYear
Response
Supported Media Types
- application/json
200 Response
success
Body
Root Schema : ViewBackupConfigurationResponse
Type:
object- cloudStorageContainer
-
Type:
stringRequired:trueOracle Cloud Storage Service container name. - defaultRetention
-
Type:
stringRequired:trueNumber of days the incremental backups are retained.
Full backups are retained until their last related incremental backup is available.
If set to null, backups are retained indefinitely or until you manually delete them. - fullBackupSchedule
-
Type:
objectfullBackupScheduleRequired:trueSchedule for the next full backup.
By default, full backups are initiated weekly starting 12 hours after a service instance was created, rounded to the nearest five-minute interval. - incrementalBackupSchedule
-
Type:
objectincrementalBackupScheduleRequired:trueSchedule for the next incremental backup.
By default, incremental backups are initiated every day except the day of a full backup at the same time that full backups are initiated.
Units are the same as for 'fullBackupSchedule'. - lastBackupDate
-
Type:
stringRequired:trueDate and time that the last backup completed.
Note: If there have been no backups, this attribute is omitted. - nextFullBackupDate
-
Type:
stringRequired:trueScheduled date and time for next full backup. - nextIncrementalBackupDate
-
Type:
stringRequired:trueScheduled date and time for next incremental backup. - percentBackupVolumeUsed
-
Type:
integerRequired:trueTotal percent of the backup volume that is currently in use. - totalBackupVolumeUsed
-
Type:
stringRequired:trueTotal amount, in MBs, of the backup volume that is currently in use. - totalCloudStorageContainerUsed
-
Type:
stringRequired:trueTotal amount, in MBs, of Cloud Storage Container space that is currently in use.
Nested Schema : fullBackupSchedule
Type:
objectSchedule for the next full backup.
By default, full backups are initiated weekly starting 12 hours after a service instance was created, rounded to the nearest five-minute interval.
By default, full backups are initiated weekly starting 12 hours after a service instance was created, rounded to the nearest five-minute interval.
- dayOfMonth
-
Type:
stringNon-configurable item. '*' (all days) - dayOfWeek
-
Type:
stringConfigurable item - hour
-
Type:
stringConfigurable item - minute
-
Type:
stringConfigurable item - month
-
Type:
stringNon-configurable item. '*' (all months) - second
-
Type:
stringNon-configurable item. Defaults to '0' - year
-
Type:
stringNon-configurable item. '*' (all years)
Nested Schema : incrementalBackupSchedule
Type:
objectSchedule for the next incremental backup.
By default, incremental backups are initiated every day except the day of a full backup at the same time that full backups are initiated.
Units are the same as for 'fullBackupSchedule'.
By default, incremental backups are initiated every day except the day of a full backup at the same time that full backups are initiated.
Units are the same as for 'fullBackupSchedule'.
- dayOfMonth
-
Type:
stringDay Of Month - dayOfWeek
-
Type:
stringDay Of Week - hour
-
Type:
stringhours - minute
-
Type:
stringminutes - month
-
Type:
stringMonth - second
-
Type:
stringseconds - year
-
Type:
stringYear
Examples
The following example shows how to update the backup configuration for an Oracle SOA Cloud Service instance by submitting a POST request on the REST resource using cURL. For more information, see Use cURL.
See also Configuring Automated Backups for an Oracle SOA Cloud Service Instance.
cURL Command
curl -i -X POST -u joe@example.com:Welcome1! -d @backup.json -H "Content-type:application/json" -H "X-ID-TENANT-NAME:ExampleIdentityDomain" https://api-host/paas/service/soa/api/v1.1/instances/ExampleIdentityDomain/ExampleInstance/backupconfig
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 Request Body
The following shows an example of the request document in JSON format.
{
"fullBackupSchedule":
{
"hour":"5",
"dayOfWeek":"Sun"
},
"incrementalBackupSchedule":
{
"hour":"3"
}
}
Example of Response Body
The following example shows the response returned in JSON format with the new values in effect (shown in bold).
{
"defaultRetention":"30 days",
"fullBackupSchedule":
{
"second":"0",
"minute":"0",
"hour":"5",
"dayOfMonth":"*",
"month":"*",
"dayOfWeek":"Sun",
"year":"*"
},
"incrementalBackupSchedule":
{
"second":"0",
"minute":"0",
"hour":"3",
"dayOfMonth":"*",
"month":"*",
"dayOfWeek":"Mon,Tue,Wed,Thu,Fri,Sat",
"year":"*"
},
"lastBackupDate":"Thu Dec 11 07:25:00 GMT 2014",
"nextFullBackupDate":"Sun Dec 14 05:00:00 GMT 2014",
"nextIncrementalBackupDate":"Fri Dec 12 03:00:00 GMT 2014",
"cloudStorageContainer":"develop-soa/JCSBackup",
"totalCloudStorageContainerUsed":"0.0MB",
"totalBackupVolumeUsed":"853.5MB",
"percentBackupVolumeUsed":0
}