View All Patching Precheck Operations

get

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

Returns the status of all patching precheck operations that have been executed against the service instance.

Note: Patching is not supported for Oracle Java Cloud Service instances if you have installed any product that modifies MW_HOME (such as Oracle WebCenter Portal and Oracle Data Integrator). Patching is also not supported if you are reusing a license via the Bring Your Own License (BYOL) entitlement (for any product that modifies MW_HOME). Because patching replaces the contents of MW_HOME, patching prechecks flag this condition and patching fails.

Request

Path Parameters
Header Parameters
Back to Top

Response

Supported Media Types

200 Response

OK. See Status Codes for information about other possible HTTP status codes.
Body ()
Root Schema : view-precheck-response
Type: array
The response body contains information about all patching precheck operations.
Show Source
  • view-precheck
    The response body includes information about the patch precheck. When viewing all patching prechecks, the response body includes information about all patch prechecks executed on this service instance.
Nested Schema : view-precheck
Type: object
The response body includes information about the patch precheck. When viewing all patching prechecks, the response body includes information about all patch prechecks executed on this service instance.
Show Source
Nested Schema : preCheckMessages
Type: array
List of precheck messages. No messages are returned when the precheck completes successfully.
Show Source
Nested Schema : precheckResultItems
Type: array
List of precheck result items. No items are returned when the precheck completes successfully.
Show Source
Back to Top

Examples

The following example shows how to view all patching precheck operations for an Oracle Java Cloud Service instance by submitting a GET 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 GET -u username:password -H "X-ID-TENANT-NAME:ExampleIdentityDomain" https://rest_server_url/paas/api/v1.1/instancemgmt/ExampleIdentityDomain/services/jaas/instances/ExampleInstance/patches/checks

Example of Response Header

The following shows an example of the response header:

HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Date: Fri, 05 May 2017 23:02:36 GMT

Example of Response Body

The following shows an example of the response body in JSON format.

[
   {
      "id":2001,
      "jobId":"4853126",
      "patchId":"Patch_12.1.3.0.6",
      "startDate":"2017-05-05T22:56:44.431+0000",
      "endDate":"2017-05-05T22:58:37.953+0000"
      "performedBy":"username",
      "inProgress":false,
      "status":"PASSED_PRECHECK",
      "href":"https://rest_server_url/paas/api/v1.1/instancemgmt/ExampleIdentityDomain/services/JaaS/instances/ExampleInstance/patches/checks/job/4853126",
      "preCheckMessages":[],
      "statusMessage":"Completed"
   },
   {
      "id":1952,
      "jobId":"4786564",
      "patchId":"otd_jdk1.7.0_95",
      "startDate":"2017-05-03T21:34:14.859+0000",
      "endDate":"2017-05-03T21:36:08.951+0000"
      "performedBy":"username",
      "inProgress":false,
      "status":"PASSED_PRECHECK",
      "href":"https://rest_server_url/paas/api/v1.1/instancemgmt/ExampleIdentityDomain/services/JaaS/instances/ExampleInstance/patches/checks/job/4786564",
      "preCheckMessages":[],
      "statusMessage":"Completed"
   }
]
Back to Top