Perform a Patching Precheck

put

/paas/api/v1.1/instancemgmt/{identityDomainId}/services/dbaas/instances/{serviceId}/patches/checks/{patchId}

Performs a precheck to identity potential issues that might prevent the specified patch from completing successfully. Specifically, the patching precheck reports on the following conditions:
  • Disk space shortage
  • Database connectivity failure
  • Server access failure
  • Storage access failure

Prechecks do not check whether another administration task (such as backup or restoration) is in progress, which would prevent patching.

Request

Supported Media Types
Path Parameters
  • The value depends on the type of Exadata Cloud Service account that is used to make the request:

    • For a Traditional Cloud Account, specify the Identity Domain Name that is associated with the service.

    • For a Cloud Account with Identity Cloud Service, specify the Identity Service Id that is associated with the service, which has the format idcs-letters-and-numbers.

  • ID of the patch to precheck.
  • Name of the Exadata Cloud Service deployment.
Header Parameters
Body ()
The request body contains details of the patch request. There are no required values.
Root Schema : Request Body
Type: object
Title: Request Body
Show Source
Back to Top

Response

Supported Media Types

202 Response

Accepted. See Status Codes for information about other possible HTTP status codes.

The Location header returns a REST URI that can be used to access the status of the patching precheck operation.

Body ()
Root Schema : Response Body
Type: object
Title: Response Body
Show Source
Nested Schema : Details Object
Type: object
Title: Details Object
Show Source
Back to Top

Examples

The following example shows how to perform a patch precheck on an Exadata Cloud Service database deployment by submitting a PUT request on the REST endpoint using cURL.

In this example, the identity domain is usexample and the Oracle Cloud user name and password are serviceadmin and Pa55_word. The name of the database deployment is db12c and the patch identification number is 24968615.

cURL Command

In the following cURL command, the request body is provided directly in the -d option.

curl -i -X PUT --cacert ~/cacert.pem -u serviceadmin:Pa55_word -H "X-ID-TENANT-NAME:usexample" -H "Content-Type:application/json" -d '{ "additionalNote" : "Patch precheck using REST API" }' https://dbaas.oraclecloud.com/paas/api/v1.1/instancemgmt/usexample/services/dbaas/instances/db12c/patches/checks/24968615

HTTP Status Code and Response Headers

HTTP/2.0 202
server: Oracle-Application-Server-11g
strict-transport-security: max-age=31536000;includeSubDomains
location: https://dbaas.oraclecloud.com/paas/api/v1.1/instancemgmt/usexample/services/DBaaS/instances/db12c/patches/checks/job/12221158
content-language: en
access-control-allow-headers: Content-Type, api_key, Authorization, X-ID-TENANT-NAME, X-USER-IDENTITY-DOMAIN-NAME
retry-after: 10
access-control-allow-methods: GET, POST, DELETE, PUT, OPTIONS, HEAD
x-oracle-dms-ecid: 005KB9F4Ru76uHFpR05Eid0007dd0002sd
x-oracle-dms-ecid: 005KB9F4Ru76uHFpR05Eid0007dd0002sd
access-control-allow-origin: *
x-frame-options: DENY
content-type: application/json
vary: user-agent
date: Mon, 29 May 2017 23:47:35 GMT

Response Body

{
	"status": "Completed",
	"details": {
		"message": "PATCHING-5227: Pre-Checking service for patch [24968615] is submitted as an asynchronous job.",
		"jobId": "12221158"
	}
}
Back to Top