View Status of a Patching Precheck Operation

get

/paas/api/v1.1/instancemgmt/{identityDomainId}/services/MySQLCS/instances/{serviceId}/patches/checks/job/{jobId}

Returns the status of a patching precheck operation.

Request

Path Parameters
Header Parameters

Response

Supported Media Types

200 Response

OK. See Status Codes for information about other possible HTTP status codes.
Body ()
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.
Root Schema : patch-precheck-view-response
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 patching precheck messages. No patching precheck messages are returned when the precheck completes successfully.
Show Source

Examples

The following example shows how to view a specific patch precheck operation (job) by submitting a GET request on the REST endpoint using cURL.

Note: The command in this example uses the URL structure https://rest_server_url/resource-path, where rest_server_url is the Oracle Public Cloud or Oracle Cloud Machine REST server to contact for your identity domain or tenant name. See Send Requests for the appropriate URL structure to use on Oracle Public Cloud or Oracle Cloud Machine.

cURL Command

curl -i -X GET \
  -u "username:password" \
  -H "X-ID-TENANT-NAME: ExampleIdentityDomain" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d "{}" \
  https://rest_server_url/paas/api/v1.1/instancemgmt/ExampleIdentityDomain/services/MySQLCS/instances/MyTestInstance/patches/checks/job/4202954

Example of Response Header

The following shows an example of the response header.

HTTP/1.1 200 OK
Server: Oracle-Application-Server-11g
Content-Language: en
Content-Location: https://rest_server_url:443/paas/api/v1.1/instancemgmt/ExampleIdentityDomain/services/MySQLCS/instances/MyTestInstance/patches/checks/job/4202954
Access-Control-Allow-Headers: Content-Type, api_key, Authorization
Access-Control-Allow-Methods: GET, POST, DELETE, PUT, OPTIONS, HEAD
X-ORACLE-DMS-ECID: 001Gsqo4OvN6uHFpR0H7id0006BS0003Ik
X-ORACLE-DMS-ECID: 001Gsqo4OvN6uHFpR0H7id0006BS0003Ik
Access-Control-Allow-Origin: *
X-Frame-Options: DENY
Content-Type: application/json
Vary: user-agent
Date: Tue, 13 Dec 2016 17:39:34 GMT
Content-Length: 384
Connection: keep-alive

Example of Response Body

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

{
	"id": 2759,
	"jobId": "4202954",
	"patchId": "5.7.16-EE",
	"jsonResult": "{\"resultMessage\":\"Precheck operation got successful\",\"messages\":[]}",
	"startDate": "2016-12-13T17:25:38.616+0000",
	"endDate": "2016-12-13T17:26:02.801+0000",
	"performedBy": "someone@example.org",
	"inProgress": false,
	"status": "PASSED_PRECHECK",
	"preCheckMessages": [],
	"statusMessage": "Precheck operation got successful"
}