Quantcast
Channel: Doyensys Allappsdba Blog..
Viewing all articles
Browse latest Browse all 1640

REST API for Oracle Database Cloud Service:

$
0
0

Start a Backup Operation
POST
/paas/service/dbcs/api/v1.1/instances/{identityDomainId}/{serviceId}/backups
Starts an on-demand backup for a Database Cloud Service instance.
Request
Supported Media Types
  • application/json
Path Parameters
Header Parameters
Body (
Request Body
)
Type: object
Title: Request Body
Response
202 Response
Accepted. See Status Codes for information about other possible HTTP status codes.
Headers
·         Location: string
Examples
The following example shows how to start a backup operation by submitting a POST request on the REST endpoint using cURL.
This example uses a traditional cloud account, so the {identityDomainId} path parameter and the X-ID-TENANT-NAMEheader parameter are set to the account's domain name, which is usexample. The service instance is db12c-xp-si and the Oracle Cloud user name of the user making the call is dbcsadmin.
Note that the required (but empty) request body is provided in the cURLcommand's --data option.
cURL Command
$ curl --include --request POST \
--user dbcsadmin:password \
--header "X-ID-TENANT-NAME:usexample" \
--header "Content-Type: application/json" \
--data '{}' \
https://dbaas.oraclecloud.com/paas/service/dbcs/api/v1.1/instances/usexample/db12c-xp-si/backups
HTTP Status Code and Response Headers
HTTP/1.1 202 Accepted
Date: date-and-time-stamp
Server: Oracle-Application-Server-11g
Location: https://dbaas.oraclecloud.com:443/paas/service/dbcs/api/v1.1/instances/usexample/status/backup/job/5744472
Content-Length: 0
X-ORACLE-DMS-ECID: id-string
X-ORACLE-DMS-ECID: id-string
X-Frame-Options: DENY
Service-URI: https://dbaas.oraclecloud.com:443/paas/service/dbcs/api/v1.1/instances/usexample/db12c-xp-si
Vary: Accept-Encoding,User-Agent
Retry-After: 60
Content-Language: en
Content-Type: application/json


Viewing all articles
Browse latest Browse all 1640

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>