Apply Patch to Target Instances

post

/api/v1/blockchainPlatforms/patches/{patchId}/apply

Apply patch to one or more target instances.

Request

Supported Media Types
Path Parameters
Body ()
List of target instance IDs to apply the patch
Root Schema : PatchApplyPayload
Type: array
List of patch target instance IDs
Show Source
Back to Top

Response

Supported Media Types

202 Response

Accepted
Body ()
Root Schema : PatchApplySummary
Type: object
Show Source
Nested Schema : applyStatus
Type: array
Patch application request status for all targets
Show Source
Nested Schema : PatchApplyStatus
Type: object
Show Source

401 Response

Not authorized

404 Response

Invalid parameters

409 Response

Operation conflict
Body ()
Root Schema : Error
Type: object
Error Information.
Show Source
Nested Schema : errors
Type: array
list of errors
Show Source
Nested Schema : warnings
Type: array
list of warnings
Show Source

500 Response

Service unavailable
Back to Top

Examples

This endpoint is used to apply a patch to one or more target instances.

The following example shows how to apply a patch to one or more target instances by submitting a POST request on the REST resource using cURL.

curl -X POST http://<hostname>:<port>/api/v1/blockchainPlatforms/patches/obp-patch-19-3-3/apply 
-H 'Authorization: Basic amFzc2l0ZXN0OndlbGNvbWUx' 
-H  'Content-Type: application/json' 
-d '["e1f7bcfe-cc7e-4d19-97fb-772b231fcf99"]'

Example of the Response Body

The following example shows the contents of the response body in JSON format:

{
  "patchId" : "obp-patch-19-3-3",
  "applyStatus" : [ {
    "instanceId" : "e1f7bcfe-cc7e-4d19-97fb-772b231fcf55",
    "instanceName" : "JasFounder",
    "status" : "Success",
    "statusURL" : "http://myvm.oracle.com:7070/api/v1/blockchainPlatforms/instances/56cda494-e776-416e-a2fa-c7e2a95955b8/operation/IDp6T6cqcEOUe8XMJEpHi4S2PnYCY6xGkuPazlGAGM9C8=/status"
  } ]
}
Back to Top