View Available Patches
/paas/api/v1.1/instancemgmt/{identityDomainId}/services/jaas/instances/{serviceId}/patches/available
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
-
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.
Response
- application/json
200 Response
array
-
Array of:
object available-patches
Each object contains information about a patch. A patch with a
patchCategory
value ofMajorPatch
is a WebLogic Server software version upgrade patch.
object
patchCategory
value of MajorPatch
is a WebLogic Server software version upgrade patch.-
availablePatchGuiMetadata(optional):
object availablePatchGuiMetadata
Instruction to the metadata UI about the patch.
-
componentPatches(optional):
object componentPatches
A map that groups details of one or more components in the patch. A component could be WLS, OTD, JDK, OTD_JDK, or ORACLE_TOOLS.
-
displayName(optional):
string
Display name of this patch.
-
entryDate(optional):
string
Date and time the patch is created.
-
entryUserId(optional):
string
Name of the user that created the patch.
-
includesConfigUpgrade(optional):
boolean
Flag that indicates whether the patch includes a configuration upgrade.
-
induceDownTime(optional):
boolean
Flag that indicates whether the patching induces a downtime of the service.
-
isAutoApply(optional):
boolean
Flag that indicates whether the patch can be applied automatically.
-
isCustomerVisible(optional):
boolean
Flag that indicates whether the patch is visible to customer.
-
isDeleted(optional):
boolean
Flag that indicates whether the patch has been deleted and is no longer available. The information about the patch is not removed from the list of available patches in order to maintain an historical record of all patches.
-
isUpgrade(optional):
boolean
Upgrade flag.
-
lastprePreCheckResult(optional):
object lastprePreCheckResult
Groups information about the last precheck operation. This attribute is displayed only when a precheck has been performed on a patch.
-
metaVersion(optional):
string
The release version of metadata service manager.
-
minToolsVersion(optional):
string
Minimum version of the Oracle Cloud Tools required by the patch.
-
patchCategory(optional):
string
Category of the patch. Valid values include:
ORACLE_TOOLS
,General
,JDK
,Multiple
,Security
,VM_SCRIPTS
,MajorPatch
, and so on.Note: A value of
MajorPatch
indicates this patch is a WebLogic Server software version upgrade patch.See Upgrade the WebLogic Server Version for an Oracle Java Cloud Service Instance in Administering Oracle Java Cloud Service.
-
patchCustomActions(optional):
array patchCustomActions
List of custom actions during the patching process.
-
patchDescription(optional):
string
Description of the patch.
-
patchId(optional):
string
ID used to identify the patch.
-
patchReleaseUrl(optional):
string
URL that provides more information about the patch.
-
patchSeverity(optional):
string
Severity of the patch. For example,
Critical
,Mandatory
,Recommended
,Optional
, and so on. -
patchType(optional):
string
Patch type classification. Valid values include:
COMPOSITE
- composite patchJCS_TOOLS
- Oracle Java Cloud Service tools updateJDK
- JDK updateJRF_UPDATE
- Oracle JRF updatePS
- patch setPSU
- patch set update
-
releaseDate(optional):
string
Date and time the patch is released.
-
releaseVersion(optional):
string
Service-level release version of this patch.
-
requiresRestart(optional):
boolean
Flag that indicates whether the patch requires a restart of the service instance.
-
restartStrategy(optional):
string
Restart type. For example:
RESTART_AFTER_PATCH
-
serviceType(optional):
string
Type of service that is to be patched. For Oracle Java Cloud Service, service type is
JaaS
. -
serviceTypeVersions(optional):
string
Oracle Java Cloud Service instance version to which the patch can be applied. For example:
14.1
,Any
, whereAny
indicates that the patch can be applied to any version. -
serviceVersion(optional):
string
Service version the patch targets. For example, for Oracle Java Cloud Service instance, the version could be
12cRelease214
or12c
. -
supportedStrategy(optional):
string
Strategy that will be used to apply this patch. For example:
Rolling
,In Place
object
-
supportsPreCheck(optional):
boolean
Flag that indicates whether the patch supports precheck via the web user interface.
object
-
componentname(optional):
object componentname
This attribute is the actual component name for the target service type. For example, an Oracle Java Cloud Service component name could be
WLS
. Each object is one component.
object
-
endDate(optional):
string
Date and time that the patching precheck operation stopped.
-
id(optional):
integer
ID of the operation.
-
inProgress(optional):
boolean
Flag that indicates whether the patch precheck is still in progress.
-
jobId(optional):
string
Job ID for the patching precheck operation.
-
jsonResult(optional):
string
System messages.
-
patchId(optional):
string
Patch ID.
-
performedBy(optional):
string
Name of the user account used to perform the patch precheck.
-
preCheckMessages(optional):
array preCheckMessages
List of patching precheck messages. No patching precheck messages are returned when the precheck completes successfully.
-
startDate(optional):
string
Date and time that the patching precheck operation started.
-
status(optional):
string
Status of the patching precheck operation. Valid values include:
PASSED_PRECHECK
- Patching precheck passed.DIDNT_PASS_PRECHECK
- Patching precheck did not pass. Check thepreCheckMessages
attribute for more information.DIDNT_FINISHED_PRECHECK
- An internal error was encountered and the patching precheck could not be performed.
-
statusMessage(optional):
string
Last status message for the operation.
array
object
WLS
. Each object is one component.-
expectedAppliedPatches(optional):
string
List of prerequisite patches that should already be applied prior to installing this patch.
Note: If you have applied custom patches other than those defined on this list, you will need to reapply them after applying this patch.
-
id(optional):
integer
ID of a component patch.
-
releaseVersion(optional):
string
Component-level release version of the component patch.
-
version(optional):
string
Component version that this patch is going to update.
-
zipBundles(optional):
object zipBundles
Zips that contain the artifacts for patching target components (for example, patched binaries or patches for the service volumes).
object
-
artifactname(optional):
object artifactname
This attribute is the actual artifact name for the target service type, component, and component version (for example,
JDK
or WLS). Each object is one artifact.
object
JDK
or WLS). Each object is one artifact.-
displayName(optional):
string
Display name for the artifact.
-
id(optional):
integer
ID to identify the artifact.
-
md5sum(optional):
string
Checksum used to validate the artifact (for example, the patch binary).
-
provisioningObjectRef(optional):
string
Location of binary to use when creating a new service instance.
-
releaseDate(optional):
string
Release date for the artifact.
-
releaseUrl(optional):
string
URL that provides more information about the artifact.
-
storageKey(optional):
string
Location of the patch artifact on the cloud.
-
zipVersion(optional):
string
Software version that is included in the artifact.
array
Examples
The following example shows how to view available patches 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/available
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: Thu, 11 May 2017 17:02:53 GMT
Example of Response Body
The following is an example of a response body where a WebLogic Server Patch Set Update (PSU) is available for patching.
[
{
"availablePatchGuiMetadata": {
"supportsPreCheck": true
},
"lastprePreCheckResult": {
"id": 20316,
"jobId": "23786904",
"patchId": "wls_patch_12.2.1.2.2_180120",
"jsonResult": "{\"resultMessage\":\"No errors\",\"messages\":[]}",
"startDate": "2018-03-27T18:34:29.984+0000",
"endDate": "2018-03-27T18:36:40.561+0000",
"performedBy": "username",
"inProgress": false,
"status": "PASSED_PRECHECK",
"preCheckMessages": [],
"statusMessage": "No errors"
},
"patchId": "wls_patch_12.2.1.2.2_180120",
"patchCategory": "PATCH",
"patchSeverity": "Normal",
"includesConfigUpgrade": false,
"patchDescription": "WLS PIPELINE UPDATE 12.2.1.2.2",
"patchReleaseUrl": "https://support.oracle.com/epmos/faces/PatchDetail?patchId=26860993",
"serviceType": "JaaS",
"serviceVersion": "12cRelease212",
"releaseDate": "2018-01-20T01:40:00.000+0000",
"entryDate": "2018-05-10T20:08:47.835+0000",
"entryUserId": "smctl",
"componentPatches": {
"WLS": {
"id": 12902,
"version": "12.2.1.2.8",
"releaseVersion": "12.2.1.2.180120",
"expectedAppliedPatches": "opatch:19795066,19154304,18905788,19632480,19030178,22754279,19002423,21663638",
"zipBundles": {
"JDK": {
"id": 62472,
"md5sum": "51c0768028b642cf3a37bfdb72550c3a",
"storageKey": "jcs/JDK/8.0.161/180116/jdk.zip",
"zipVersion": "1.8.0_161",
"releaseDate": "2018-01-16",
"releaseUrl": "http://www.oracle.com/technetwork/java/javase/8all-relnotes-2226344.html#R180_161",
"displayName": "JDK"
},
"WLS": {
"id": 62473,
"md5sum": "09ea08d07b8e097ac36e026c25128a77",
"storageKey": "jcs/FMW/12.2.1.2.2/180119/fmiddleware.zip",
"releaseDate": "2018-01-20",
"releaseUrl": "https://support.oracle.com/epmos/faces/PatchDetail?patchId=26860993",
"displayName": "Middleware"
}
},
"preserveFiles": []
},
"OTD": {
"id": 12901,
"version": "12.2.1.2.4",
"releaseVersion": "12.2.1.2.180116",
"zipBundles": {
"OTD_JDK": {
"id": 62471,
"md5sum": "51c0768028b642cf3a37bfdb72550c3a",
"storageKey": "jcs/JDK/8.0.161/180116/jdk.zip",
"zipVersion": "1.8.0_161",
"releaseDate": "2018-01-16",
"releaseUrl": "http://www.oracle.com/technetwork/java/javase/8all-relnotes-2226344.html#R180_161",
"displayName": "OTD JDK"
}
},
"preserveFiles": []
}
},
"patchType": "PSU",
"requiresRestart": true,
"serviceTypeVersions": "ANY",
"isDeleted": false,
"displayName": "12.2.1.2.180120",
"supportedStrategy": "Rolling",
"releaseVersion": "12.2.1.2.180120",
"patchCustomActions": [],
"restartStrategy": "RESTART_AFTER_PATCH",
"isUpgrade": false
}
]
The following is an example of a response body where a WebLogic Server software version upgrade patch is available for patching (indicated by MajorPatch
in patchCategory
).
[{
"availablePatchGuiMetadata":{
"supportsPreCheck":true
},
"patchId":"wls_upg_12.2.1.3.190115_for_12cRelease212",
"patchCategory":"MajorPatch",
"patchSeverity":"Normal",
"includesConfigUpgrade":false,
"patchDescription":"WebLogic Server 12.2.1.3.0 with PSU Update 12.2.1.3.190115",
"patchReleaseUrl":"https://support.oracle.com/epmos/faces/PatchDetail?patchId\u003d28710939",
"serviceType":"JaaS",
"serviceVersion":"12cRelease212",
"releaseDate":"2019-01-14T17:40:00.000+0000",
"entryDate":"2019-02-05T12:04:51.975+0000",
"entryUserId":"smctl",
"componentPatches":{
},
"patchType":"PSU",
"requiresRestart":false,
"isDeleted":false,
"displayName":"12.2.1.3.190115",
"releaseVersion":"12.2.1.3.190115",
"patchCustomActions":[
],
"restartStrategy":"RESTART_AFTER_PATCH",
"isUpgrade":true,
"extensionId":0
}]