View All Available Patches
/paas/api/v1.1/instancemgmt/{identityDomainId}/services/MySQLCS/instances/{serviceId}/patches/available
Request
-
identityDomainId: string
Name of the identity domain for the MySQL Cloud Service account.
-
serviceId: string
The user-defined name of the Oracle MySQL Cloud Service instance.
-
X-ID-TENANT-NAME: string
Name of the identity domain for the MySQL Cloud Service account.
Response
- application/json
200 Response
object
-
availablePatchGuiMetadata(optional):
object availablePatchGuiMetadata
Instruction to the metadata GUI about the patch.
-
componentPatches(optional):
array componentPatches
Group the details of each patches in the component.
-
displayName(optional):
string
Display name of the patch.
-
entryDate(optional):
string
Date and time the patch was created.
-
entryUserId(optional):
string
Name of the entity 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 executing the patch causes service downtime.
-
isAutoApply(optional):
boolean
Flag that indicates whether the patch can be applied automatically.
-
isCustomerVisible(optional):
boolean
Flag that indicates whether the patch is visible.
-
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.
-
metaVersion(optional):
string
The release version of metadata service manager.
-
patchCategory(optional):
string
Category of the patch. For example:
General
,Upgrade
,Multiple
,Security
, and so on. -
patchComponents(optional):
array patchComponents
Group the details of the patch to be applied.
-
patchCustomActions(optional):
array patchCustomActions
List of customer actions during patching.
-
patchDescription(optional):
string
Description of the patch.
-
patchId(optional):
string
Patch ID.
-
patchNumber(optional):
string
Patch number.
-
patchReleaseUrl(optional):
string
URL that provides more information about the patch.
-
patchSeverity(optional):
string
Severity of the patch. For example
Normal
,Mandatory
,Recommended
, and so on. -
patchType(optional):
string
Patch type classification. For example,
Quarterly
,Security
. -
releaseDate(optional):
string
Date and time the patch was released.
-
releaseVersion(optional):
string
Release version of the component in this patch.
-
requiresRestart(optional):
boolean
Flag that indicates whether the patch requires a restart of the service instance.
-
serviceType(optional):
string
Type of MySQL Cloud Service, which is
MySQLCS
. -
serviceTypeVersions(optional):
string
MySQL Cloud Service instance version to which the patch can be applied. For example:
5.7
,Any
, whereAny
indicates that the patch can be applied to any version. -
serviceVersion(optional):
string
MySQL Cloud Service instance version to which the patch can be applied. For example:
5.7
,Any
, whereAny
indicates that the patch can be applied to any version. -
supportedStrategy(optional):
string
Supported patching strategy. For example:
In Place
.
object
-
supportsPreCheck(optional):
boolean
Flag that indicates whether the patch supports precheck operations.
array
-
[0]:
object patch-component-details-info
Group the details of each patch in the component.
array
-
[0]:
object patch-component-applied-info
Group the details of the patch to be applied.
array
object
-
description(optional):
string
Description of the patch.
-
displayName(optional):
string
Display name of the component in this patch.
-
id(optional):
integer
ID of a component patch.
-
preserveFiles(optional):
array preserveFiles
List of files to be preserved during patching.
-
releaseVersion(optional):
string
Release version of the component in this patch.
-
version(optional):
string
Version of the patch component.
-
zipBundles(optional):
array zipBundles
Zips that contain the patched binaries or patches.
array
array
-
[0]:
object patch-zip-bundle-info
Group the details of zips for the patched binaries.
object
-
displayName(optional):
string
Display name of this component.
-
id(optional):
integer
ID of a component patch.
-
md5sum(optional):
string
Checksum used to validate the patch binary.
-
provisioningObjectRef(optional):
string
Location of binary to use when creating a new service instance.
-
releaseDate(optional):
string
Release date of this version.
-
releaseUrl(optional):
string
URL for more information about this release.
-
storageKey(optional):
string
Location of the patch zip on the cloud.
-
zipVersion(optional):
string
Software version that is included in the zip.
object
-
component(optional):
string
Name of the component in this patch. For example,
mysql
. -
id(optional):
integer
ID of a component patch.
-
md5sum(optional):
string
Checksum used to validate the patch binary.
-
patchingObjectRef(optional):
string
Location of binary to use when patching a service instance.
-
preserveFiles(optional):
array preserveFiles
List of files to be preserved during patching.
-
provisioningObjectRef(optional):
string
Location of binary to use when creating a new service instance.
-
version(optional):
string
Version of the patch component.
array
Examples
The following example shows how to view a list of available patches for a MySQL Cloud Service instance 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" \
https://rest_server_url/paas/api/v1.1/instancemgmt/ExampleIdentityDomain/services/MySQLCS/instances/MyTestInstance/patches/available
Example of Response Header
The following shows an example of the response header.
HTTP/1.1 200 OK
Date: Wed, 30 Nov 2016 20:23:03 GMT
Server: Oracle-Application-Server-11g
Content-Length: 1544
X-ORACLE-DMS-ECID: 70Id0LGzY0z2NcfS0002sAIci5Nq00G0pH
X-ORACLE-DMS-ECID: 70Id0LGzY0z2NcfS0002sAIci5Nq00G0pH
X-Frame-Options: DENY
Access-Control-Allow-Methods: GET, POST, DELETE, PUT, OPTIONS, HEAD
Access-Control-Allow-Origin: *
Content-Language: en
Access-Control-Allow-Headers: Content-Type, api_key, Authorization
Vary: Accept-Encoding,User-Agent
Content-Type: application/json
Set-Cookie: BIGipServerc1sa112_dc1_psm=213548112.28161.0000; path=/
Example of Response Body
The following shows an example of the response body in JSON format.
[ { "availablePatchGuiMetadata": { "supportsPreCheck": true }, "patchId": "5.7.16-EE", "patchNumber": "5.7.16", "patchCategory": "Upgrade", "patchSeverity": "Normal", "includesConfigUpgrade": false, "patchDescription": "MySQL Server version 5.7.16", "patchReleaseUrl": "https:\/\/dev.mysql.com\/doc\/relnotes\/mysql\/5.7\/en\/news-5-7-16.html", "serviceType": "MySQLCS", "serviceVersion": "5.7", "releaseDate": "2016-10-12T09:00:00.000+0000", "entryDate": "2016-11-28T21:58:04.226+0000", "entryUserId": "OCLOUD9_TAS_APPID", "componentPatches": { "mysql": { "id": 2801, "version": "5.7", "releaseVersion": "5.7.16", "displayName": "MySQL Server version 5.7.16", "description": "MySQL Server version 5.7.16", "zipBundles": { "MSAAS": { "id": 2967, "md5sum": "cc134947c4e3d5d0f644ef3b9bd52115", "provisioningObjectRef": "MSCS\/5.7.16\/MySQL_Binaries-5.7.16.zip", "storageKey": "MSCS\/5.7.16\/MySQL_Binaries-5.7.16.zip", "releaseDate": "10\/12\/2016", "releaseUrl": "https:\/\/dev.mysql.com\/doc\/relnotes\/mysql\/5.7\/en\/news-5-7-16.html", "displayName": "MySQL Server version 5.7.16" } }, "preserveFiles": [ ] } }, "patchComponents": [ { "id": 2801, "component": "mysql", "version": "5.7", "md5sum": "cc134947c4e3d5d0f644ef3b9bd52115", "provisioningObjectRef": "MSCS\/5.7.16\/MySQL_Binaries-5.7.16.zip", "patchingObjectRef": "MSCS\/5.7.16\/MySQL_Binaries-5.7.16.zip", "preserveFiles": [ ] } ], "patchType": "Quarterly", "requiresRestart": true, "serviceTypeVersions": "ANY", "isDeleted": false, "isCustomerVisible": false, "isAutoApply": false, "induceDownTime": false, "displayName": "5.7.16", "supportedStrategy": "In Place", "releaseVersion": "5.7.16", "patchCustomActions": [ ] } ]