Move a Backup (Download or Archive)
/paas/api/v1.1/instancemgmt/{identityDomainId}/services/jaas/instances/{serviceId}/backups/{backupId}
- Object storage (archive)
- Block storage on the Administration Server (download)
For complete information about contents of backups and where backups are stored, see About Backup and Restoration in Administering Oracle Java Cloud Service.
Request
- application/json
-
backupId: string
Backup ID. To retrieve the backup ID, see View All Backups.
-
identityDomainId: string
Identity domain ID for the Oracle Java Cloud Service account.
-
serviceId: string
Name of the Oracle Java Cloud Service instance.
-
Authorization: string
Base64 encoded user name and password separated by a colon or OAuth access token obtained from Oracle Identity Cloud Service. See Authenticate.
-
X-ID-TENANT-NAME: string
Identity domain ID for the Oracle Java Cloud Service account.
object
-
local:
boolean
Flag that specifies whether the backup is to be downloaded and stored locally in block storage on the Administration Server host (
true
), or archived and stored remotely (false
). The remote storage is the specified object storage container or bucket.
Response
- application/json
202 Response
object
-
job_id(optional):
string
Job ID for the archive or download backup operation.
-
operationName(optional):
string
Name of operation performed. Set to:
move-backup
. -
target_uri(optional):
string
URI of the archive or download backup resource.
Examples
The following example shows how to download or archive a backup for an Oracle Java Cloud Service instance by submitting a POST 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 POST -u username:password -d @movebackup.json -H "Content-Type:application/json" -H "X-ID-TENANT-NAME:ExampleIdentityDomain" https://rest_server_url/paas/api/v1.1/instancemgmt/ExampleIdentityDomain/services/jaas/instances/ExampleInstance/backups/1390442367140
Example of Request Body
The following example shows the contents of the request body in JSON format, for a download operation.
{
"local":true
}
The following example shows the contents of the request body in JSON format, for an archive operation.
{
"local":false
}
Example of Response Header
The following shows an example of the response header.
HTTP/1.1 202 Accepted
Date: Mon, 07 Dec 2015 23:33:53 GMT
Transfer-Encoding: chunked
Content-Type: application/json
Example of Response Body
The following shows an example of the response body in JSON format.
{
"operationName":"move-backup",
"target_uri":"https:\/\/rest_server_url\/paas\/api\/v1.1\/instancemgmt\/ExampleIdentityDomainID\/services\/jaas\/instances\/ExampleInstance\/backups\/1390442367140",
"job_id":"101"
}