For getting list of patches from server
GET
/Patches
http://localhost:8084/WAMServer/webresources/resources/Patches
Bearer eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJXQU1TZXJ2ZXIiLCJzdWIiOiJhZG1pbiIsImF1ZCI6IltTY2FuLCBBTSwgRGlhZ25vc3RpY3MsIFBhdGNoTWFuYWdlciwgVXBncmFkZSwgRXhwb3J0SW1wb3J0LCBVbmluc3RhbGwsIE1hbmFnZUxvZ3MsIEFkbWluaXN0cmF0b3JdIiwiZXhwIjoxNTQwODc3MTgwLCJpYXQiOjE1NDA4NzYyODAsImp0aSI6IjEifQ.BHS1mFaB7sRUyRzfiAXwTJL-xfF2VgLubkca-YDiM7k
Installing multiple patches on multiple hosts
POST
/Patches/Apply
http://localhost:8084/WAMServer/webresources/resources/Patches/Apply
Bearer eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJXQU1TZXJ2ZXIiLCJzdWIiOiJhZG1pbiIsImF1ZCI6IltVcGdyYWRlLCBBTSwgTWFuYWdlTG9ncywgVW5pbnN0YWxsLCBBZG1pbmlzdHJhdG9yLCBTY2FuLCBQYXRjaE1hbmFnZXIsIERpYWdub3N0aWNzLCBFeHBvcnRJbXBvcnRdIiwiZXhwIjoxNTQwODk1NDgyLCJpYXQiOjE1NDA4OTQ1ODIsImp0aSI6IjEifQ.alDbKPA2g_nEl4fNSap3XHJNL_v66AXqwwTOElJm9uI
application/json
{ "patchesInfo" : [{ "bundleFiles": [], "components": "AM", "details": "Name : p82p1 \nVersion : 8.2.0.1 \nDate : Thu Feb 22 22:17:43 MST 2018 \nRequired Components: AM \nDescription : \nAgent patch for Unix agent 8.2 for WebLogicSvr 8.0.0.1 release\n \nAM/lib/site_perl/5.10.0/aix-thread-multi/NetIQ/WebLogicSvr.pm\nAM/lib/site_perl/5.10.0/aix-thread-multi/NetIQ/BaseMO3_0.pm\nAM/mo/config/WebLogicSvrMsg.msg\nAM/lib/site_perl/5.10.0/PA-RISC1.1-thread-multi/NetIQ/WebLogicSvr.pm\nAM/lib/site_perl/5.10.0/PA-RISC1.1-thread-multi/NetIQ/BaseMO3_0.pm\nAM/lib/site_perl/5.10.0/IA64.ARCHREV_0-thread-multi/NetIQ/WebLogicSvr.pm\nAM/lib/site_perl/5.10.0/IA64.ARCHREV_0-thread-multi/NetIQ/BaseMO3_0.pm\nAM/lib/site_perl/5.10.0/i686-linux-thread-multi/NetIQ/WebLogicSvr.pm\nAM/lib/site_perl/5.10.0/i686-linux-thread-multi/NetIQ/BaseMO3_0.pm\nAM/mo/weblogicsvr/java/lib/WebLogicSvr12x.jar\nAM/lib/site_perl/5.10.0/x86_64-linux-thread-multi/NetIQ/WebLogicSvr.pm\nAM/lib/site_perl/5.10.0/x86_64-linux-thread-multi/NetIQ/BaseMO3_0.pm\nAM/lib/site_perl/5.10.0/ia64-linux-thread-multi/NetIQ/WebLogicSvr.pm\nAM/lib/site_perl/5.10.0/ia64-linux-thread-multi/NetIQ/BaseMO3_0.pm\nAM/lib/site_perl/5.10.0/sun4-solaris-thread-multi/NetIQ/WebLogicSvr.pm\nAM/lib/site_perl/5.10.0/sun4-solaris-thread-multi/NetIQ/BaseMO3_0.pm\nAM/lib/site_perl/5.10.0/i86pc-solaris-thread-multi/NetIQ/WebLogicSvr.pm\nAM/lib/site_perl/5.10.0/i86pc-solaris-thread-multi/NetIQ/BaseMO3_0.pm\n", "file": "p82p1.tar", "fileLoc": "C:\\Users\\msantosh\\.WAM\\DERBYDB\\patches\\agent\\p82p1.zip", "index": -1, "name": "p82p1", "path": "C:\\Users\\msantosh\\.WAM\\DERBYDB\\patches\\agent\\p82p1.zip", "version": "8.2.0.1" }], "hosts" : [ { "aminstalled": "true", "amstatus": "Running", "amversion": "8.0.0.0", "hostname": "IDCDVAM878", "id": 12, "osarch": "amd64", "ostype": "Linux", "patchDetails": "8.2.0.1\n8.1.0.14\n8.1.0.12\n###\nAPPLY (8.1.0.14) on Thu Oct 25 04:04:21 PDT 2018\nAPPLY (8.2.0.1) on Thu Oct 25 04:04:27 PDT 2018\nREJECT DUPLICATE (8.2.0.1) on Thu Oct 25 04:06:14 PDT 2018\nREMOVE (8.2.0.1) on Thu Oct 25 04:08:41 PDT 2018\nAPPLY (8.2.0.1) on Thu Oct 25 04:26:45 PDT 2018\nREJECT DUPLICATE (8.2.0.1) on Thu Oct 25 04:28:14 PDT 2018\nAPPLY (8.1.0.12) on Thu Oct 25 04:49:46 PDT 2018\nREMOVE (8.1.0.12) on Thu Oct 25 04:59:41 PDT 2018\nREMOVE (8.2.0.1) on Thu Oct 25 04:59:47 PDT 2018\nREMOVE (8.1.0.14) on Thu Oct 25 04:59:52 PDT 2018\nAPPLY (8.1.0.12) on Thu Oct 25 05:04:51 PDT 2018\nAPPLY (8.1.0.14) on Thu Oct 25 05:04:57 PDT 2018\nREJECT DUPLICATE (8.1.0.12) on Thu Oct 25 22:32:20 PDT 2018\nREJECT DUPLICATE (8.1.0.14) on Thu Oct 25 22:32:20 PDT 2018\nREJECT DUPLICATE (8.1.0.14) on Mon Oct 29 22:05:49 PDT 2018\nAPPLY (8.2.0.1) on Mon Oct 29 22:05:50 PDT 2018\n", "updateType": "NONE", "wamclientstatus": "true", "wamclientversion": "1.0.0" } ] }
Uninstalling a patch from a host or hosts.
POST
/Patches/Remove
http://localhost:8084/WAMServer/webresources/resources/Patches/Remove
Bearer eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJXQU1TZXJ2ZXIiLCJzdWIiOiJhZG1pbiIsImF1ZCI6IltQYXRjaE1hbmFnZXIsIFVuaW5zdGFsbCwgTWFuYWdlTG9ncywgVXBncmFkZSwgQU0sIERpYWdub3N0aWNzLCBBZG1pbmlzdHJhdG9yLCBFeHBvcnRJbXBvcnQsIFNjYW5dIiwiZXhwIjoxNTQwOTc2NDcxLCJpYXQiOjE1NDA5NzU1NzEsImp0aSI6IjEifQ.hTsxsxYldhm4pHry8n4ybcU34CxJ9oktQ4cSQwZHrRc
application/json
{ "patchesInfo" : "8.2.0.1", "hosts" : { "aminstalled": "true", "amstatus": "Running", "amversion": "8.0.0.0", "hostname": "idcdvam985.amdom009.lab", "id": 12, "osarch": "amd64", "ostype": "Linux", "patchDetails": "8.2.0.1\n8.1.0.14\n8.1.0.12\n###\nAPPLY (8.1.0.14) on Thu Oct 25 04:04:21 PDT 2018\nAPPLY (8.2.0.1) on Thu Oct 25 04:04:27 PDT 2018\nREJECT DUPLICATE (8.2.0.1) on Thu Oct 25 04:06:14 PDT 2018\nREMOVE (8.2.0.1) on Thu Oct 25 04:08:41 PDT 2018\nAPPLY (8.2.0.1) on Thu Oct 25 04:26:45 PDT 2018\nREJECT DUPLICATE (8.2.0.1) on Thu Oct 25 04:28:14 PDT 2018\nAPPLY (8.1.0.12) on Thu Oct 25 04:49:46 PDT 2018\nREMOVE (8.1.0.12) on Thu Oct 25 04:59:41 PDT 2018\nREMOVE (8.2.0.1) on Thu Oct 25 04:59:47 PDT 2018\nREMOVE (8.1.0.14) on Thu Oct 25 04:59:52 PDT 2018\nAPPLY (8.1.0.12) on Thu Oct 25 05:04:51 PDT 2018\nAPPLY (8.1.0.14) on Thu Oct 25 05:04:57 PDT 2018\nREJECT DUPLICATE (8.1.0.12) on Thu Oct 25 22:32:20 PDT 2018\nREJECT DUPLICATE (8.1.0.14) on Thu Oct 25 22:32:20 PDT 2018\nREJECT DUPLICATE (8.1.0.14) on Mon Oct 29 22:05:49 PDT 2018\nAPPLY (8.2.0.1) on Mon Oct 29 22:05:50 PDT 2018\n", "updateType": "NONE", "wamclientstatus": "true", "wamclientversion": "1.0.0" } }
Forcefully uninstalling a patch from a host or hosts.
POST
/Patches/ForcefulRemove
http://localhost:8084/WAMServer/webresources/resources/Patches/ForcefulRemove
Bearer eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJXQU1TZXJ2ZXIiLCJzdWIiOiJhZG1pbiIsImF1ZCI6IltQYXRjaE1hbmFnZXIsIFVuaW5zdGFsbCwgTWFuYWdlTG9ncywgVXBncmFkZSwgQU0sIERpYWdub3N0aWNzLCBBZG1pbmlzdHJhdG9yLCBFeHBvcnRJbXBvcnQsIFNjYW5dIiwiZXhwIjoxNTQwOTc2NDcxLCJpYXQiOjE1NDA5NzU1NzEsImp0aSI6IjEifQ.hTsxsxYldhm4pHry8n4ybcU34CxJ9oktQ4cSQwZHrRc
application/json
{ "patchesInfo" : "8.2.0.1", "hosts" : { "aminstalled": "true", "amstatus": "Running", "amversion": "8.0.0.0", "hostname": "idcdvam985.amdom009.lab", "id": 12, "osarch": "amd64", "ostype": "Linux", "patchDetails": "8.2.0.1\n8.1.0.14\n8.1.0.12\n###\nAPPLY (8.1.0.14) on Thu Oct 25 04:04:21 PDT 2018\nAPPLY (8.2.0.1) on Thu Oct 25 04:04:27 PDT 2018\nREJECT DUPLICATE (8.2.0.1) on Thu Oct 25 04:06:14 PDT 2018\nREMOVE (8.2.0.1) on Thu Oct 25 04:08:41 PDT 2018\nAPPLY (8.2.0.1) on Thu Oct 25 04:26:45 PDT 2018\nREJECT DUPLICATE (8.2.0.1) on Thu Oct 25 04:28:14 PDT 2018\nAPPLY (8.1.0.12) on Thu Oct 25 04:49:46 PDT 2018\nREMOVE (8.1.0.12) on Thu Oct 25 04:59:41 PDT 2018\nREMOVE (8.2.0.1) on Thu Oct 25 04:59:47 PDT 2018\nREMOVE (8.1.0.14) on Thu Oct 25 04:59:52 PDT 2018\nAPPLY (8.1.0.12) on Thu Oct 25 05:04:51 PDT 2018\nAPPLY (8.1.0.14) on Thu Oct 25 05:04:57 PDT 2018\nREJECT DUPLICATE (8.1.0.12) on Thu Oct 25 22:32:20 PDT 2018\nREJECT DUPLICATE (8.1.0.14) on Thu Oct 25 22:32:20 PDT 2018\nREJECT DUPLICATE (8.1.0.14) on Mon Oct 29 22:05:49 PDT 2018\nAPPLY (8.2.0.1) on Mon Oct 29 22:05:50 PDT 2018\n", "updateType": "NONE", "wamclientstatus": "true", "wamclientversion": "1.0.0" } }