Apply a Patch

put

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

Applies a patch to a MySQL Cloud Service instance.

Request

Supported Media Types
Path Parameters
Header Parameters
Body ()
The request body contains details about the patch request. A request body is required, so either pass in the desired options, or use an empty object {}.
Root Schema : patch-apply-request-request
Type: object
The request body contains information about the patch request. All attributes are optional.
Show Source

Response

Supported Media Types

202 Response

Accepted. See Status Codes for information about other possible HTTP status codes.
Body ()
Root Schema : Response Body
Type: object
Title: Response Body
The response body contains information about the operation.
Show Source

Examples

The following example shows how to apply a patch to a MySQL Cloud Service instance by submitting a PUT 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 PUT \
  -u "username:password" \
  -H "X-ID-TENANT-NAME: ExampleIdentityDomain" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d "{'additionalNote': 'Applying 5.7.16-EE patch as discussed with team on KB-43123.'}" \
  https://rest_server_url/paas/api/v1.1/instancemgmt/ExampleIdentityDomain/services/MySQLCS/instances/MyTestInstance/patches/5.7.16-EE

Example of Response Header

The following shows an example of the response header.

HTTP/1.1 202 Accepted
Server: Oracle-Application-Server-11g
Location: https://rest_server_url:433/paas/api/v1.1/instancemgmt/ExampleIdentityDomain/services/MySQLCS/instances/MyTestInstance/patches/applied/job/4207169
Content-Language: en
Access-Control-Allow-Headers: Content-Type, api_key, Authorization
Retry-After: 60
Access-Control-Allow-Methods: GET, POST, DELETE, PUT, OPTIONS, HEAD
X-ORACLE-DMS-ECID: 004Gt2kHHrD6uHFpR05Eid0003Vg0000bC
X-ORACLE-DMS-ECID: 004Gt2kHHrD6uHFpR05Eid0003Vg0000bC
Access-Control-Allow-Origin: *
X-Frame-Options: DENY
Content-Type: application/json
Vary: user-agent
Date: Tue, 13 Dec 2016 21:13:15 GMT
Connection: close

Example of Response Body

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

{
	"status": "Completed",
	"details": {
		"message": "PATCHING-5068: Patching service with patch [5.7.16-EE] is submitted as an asynchronous job.",
		"jobId": "4207169"
	}
}