Apply Patch to Target Instances
post
/api/v1/blockchainPlatforms/patches/{patchId}/apply
Apply patch to one or more target instances.
Request
Supported Media Types
- application/json
Path Parameters
-
patchId: string
Unique patch identifier
List of target instance IDs to apply the patch
Response
Supported Media Types
- application/json
202 Response
Accepted
Root Schema : PatchApplySummary
Type:
Show Source
object
-
applyStatus(optional):
array applyStatus
Patch application request status for all targets
-
patchId(optional):
string
Patch ID that was applied
Nested Schema : applyStatus
Type:
array
Patch application request status for all targets
Show Source
Nested Schema : PatchApplyStatus
Type:
Show Source
object
-
instanceId(optional):
string
Patch applied instance ID
-
instanceName(optional):
string
Patch applied instance display name
-
status(optional):
string
Allowed Values:
[ "Success", "Failure" ]
Patch application request status -
statusURL(optional):
string
Patch request status URL
401 Response
Not authorized
404 Response
Invalid parameters
409 Response
Operation conflict
Root Schema : Error
Type:
object
Error Information.
Show Source
-
errors(optional):
array errors
list of errors
-
message:
string
A human-readable error string.
-
status:
string
A short error status that defines the error, meant for programmatic parsing.
-
warnings(optional):
array warnings
list of warnings
500 Response
Service unavailable
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" } ] }