2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-11 07:40:11 +00:00
Commit Graph

92 Commits

Author SHA1 Message Date
8f4d4f3631 Merge pull request #5174 from gurevichmark/restapi_no_key_match
REST API handle no key match for tables
2018-05-09 14:51:07 +08:00
ecc403b136 REST API handle no key match for tables 2018-05-07 16:12:19 -04:00
8e58122278 Add REST API beacon status function 2018-05-07 11:37:02 -04:00
9dff3bb734 Merge pull request #5143 from gurevichmark/openbmc_rest_api
REST API for OpenBMC nodes
2018-05-04 11:05:03 +08:00
dc9420296a Handle invalid tables in REST API 2018-04-30 13:06:05 -04:00
ac99793013 REST API for OpenBMC nodes 2018-04-26 15:15:47 -04:00
9fd4bcca45 Fix issue 5111: REST API does not respect the "host" setting in "policy" table 2018-04-23 08:42:09 -04:00
fdb3ccb3ce REST API doc fixes and Python example 2018-04-10 14:18:54 -04:00
9c7d9847ff clean up word typo 2018-04-09 23:13:01 -04:00
d2bb5a7290 add xCAT REST API for nodels 2018-04-03 05:33:47 -04:00
71bb049f21 Modify xcatws.cgi permission 2018-03-30 02:53:11 -04:00
231d934732 Define some attributes as array type in rest api ver 1.0
Split attribute with comma is not a standard way, this commit
bumped REST version to 1.0 to deal with these attributes in
array type.

```
curl -X GET -k 'http://10.5.101.10/xcatws/nodes/restnode1?userName=root&userPW=cluster'
{"restnode1":{"serialspeed":"115200","nicips.ib1":"10.0.0.100|fd55::214:5eff:fe15:849b","nicnetworks.ib0":"IB00","nicnetworks.ib1":"IB01","cons":"ipmi","postscripts":"syslog,remoteshell,syncfiles,hello,world2","nicips.ib0":"10.10.100.9","groups":"conpute,staticconsolegroup","postbootscripts":"otherpkgs","nictypes.ib0":"Infiniband","nicips.ib2":"10.0.0.103|10.0.0.104"}}

 curl -X GET -k 'http://10.5.101.10/xcatws/nodes/restnode1?userName=root&userPW=cluster&ver=1.0'
{"restnode1":{"nicnetworks.ib0":"IB00","nicnetworks.ib1":"IB01","cons":"ipmi","postscripts":["syslog","remoteshell","syncfiles","hello","world2"],"nicips.ib0":["10.10.100.9"],"nicips.ib2":["10.0.0.103","10.0.0.104"],"groups":["conpute","staticconsolegroup"],"postbootscripts":["otherpkgs"],"serialspeed":"115200","nicips.ib1":["10.0.0.100","fd55::214:5eff:fe15:849b"],"nictypes.ib0":"Infiniband"}}

```
2018-01-29 11:19:09 +08:00
4b5fa10b93 Add back in xcatws.cgi
Change-Id: I84a57f3191238cefa792481504d4325672b737a9
2017-10-20 13:59:32 -04:00
2001edd2f9 Delete xcatws.cgi 2017-08-31 09:01:06 -04:00
98b4d2cf9f zVM changes up till April 21
Change-Id: I6c2febd8797f3874fbd8b7bd445f7ce6785155e4
2017-04-21 14:07:34 -04:00
d11a56ac7b Add rest api for the node template
- Enhance global subroutine to support loading json via GET method
- Add --template option for mkdef
- Add GET interface to list/show the /templates/node resource
2016-09-12 15:31:49 +08:00
f9d339c3ba Update rest api for rinstall and console
- Refactor console api, console will be looked as a service resource
- Add rest api to support rinstall
2016-08-25 13:27:55 +08:00
7a3a0836e2 Add trust_host option in rest api for makeconservercf 2016-07-28 02:01:36 -04:00
db9a71750e Fix sytax errors reported by perltidy 2016-07-25 08:56:18 -04:00
fb911143fe perltidy all perl files, part 2 2016-07-21 13:27:40 -04:00
8187e3efa1 Add rest api helper interface to access non-xcat resource
Currently xcat rest service is running with apache user who do
not have the privilege to manage some local resource like credential
files needed by xcat web ui to get the conserver access.

This patch add scripts in xcatconfig to generate credential files
for conserver user. This patch also add a work around framework for
xcat restapi to provide the interface to get or set the system resource
so that restapi with apache privilege can retrieve the credential files.
2016-07-19 23:09:21 -04:00
6845606f29 Add restapi for console
Provide the interface for xcat web GUI to control console
resource.
2016-07-01 04:07:54 -04:00
ca7c9ad69a issue 1171: set SSL_verifycn_scheme => none for IO::Socket::SSL->new 2016-06-22 10:04:04 -04:00
98add47637 Issue 588: fix the issue that def command cannot display the value correctly when it has = inside 2016-01-13 21:03:16 -05:00
af02dbd3ba Add rest api doc to ReadTheDoc in rst format. 2016-01-04 06:52:21 -05:00
faf05c6753 set default scan_methord nmap 2015-08-11 03:06:27 -04:00
2fa4742127 update vitals restapi 2015-08-11 02:56:42 -04:00
3dd90a0faa update bmcdiscover restapi 2015-08-11 02:53:22 -04:00
d3e1ab3cd4 update bmcdiscover related rest api 2015-08-11 02:45:24 -04:00
9199cda4d9 defect#66 rest api for vitals all return 500 Internal Server Error 2015-08-10 22:45:10 -04:00
24f4e5b3c2 add ENV and raw command support for nodeshell. 2015-07-08 04:14:27 -04:00
b2d0ef4d87 provide mknb <arch> [-c] RESTAPI 2015-07-02 04:01:56 -04:00
0b85d95bfb add rest api to get BMC ip address source 2015-06-26 01:29:55 -04:00
1d1e7db8c9 add restapi for changing node name. 2015-05-25 02:32:35 -04:00
e2204267e6 add rest api for bmcdiscover to check bmc user and password for teamsun. 2015-05-22 06:01:13 -04:00
4a91c526c3 defect 4671: fix the issue that restapi cannot set attribute which name is password 2015-05-20 02:54:48 -04:00
2409539774 fix bug for PUT and POST attributwes of serviceprocessor object in RESTAPI 2015-05-18 04:58:22 -04:00
8cdde37902 fix bug that REST will return error message if no objection defined 2015-05-18 01:49:26 -04:00
6041cea621 the RESTAPI for supporting to add/modify user/password for BMC with rspconfig 2015-05-15 06:40:27 -04:00
47725c06ae restapi, fix the issue that cannot set attribute which name is password 2015-05-14 02:33:20 -04:00
6a8343d27d rest api for bmcdiscover 2015-05-13 03:10:25 -04:00
21204f4dde fix the issue that POST - /networks does not work. and fix the ssl connection failure on ubuntu 2015-03-26 07:15:23 -04:00
f3ba9ab3eb fix the specific format in the doc of restapi which causes the getxcatdocs (pandoc) cannot generate doc for REST_API_Reference 2014-12-14 08:40:21 -05:00
50a441209b Code drop for supporting KVM/VMware based virtualization in rest api interface 2014-10-23 08:17:16 -04:00
899428db2c defect 4178,4179: pass the [all] parameter to inventory and vitals resource, this is must have for ppc node; make the return code of rinv and rvitals always to be 0 so that rest api could handle the return message which has both success and failure. 2014-06-30 13:00:28 -04:00
ef3f29352f update the doc part in xcatws.cgi for GET action against nodes/networks/osimages/policy to use keyword ALLRESOURCES 2014-06-04 06:18:07 -04:00
1925650c96 defect 4151:restapi: add error message if using incorrect authorize keys/passwd 2014-06-03 07:32:30 -04:00
b78515b8bc REST API: support keyword ALLRESOURCES for GET nodes,networks,osimage,policy 2014-06-03 05:03:04 -04:00
6dabd85bfe fixed bug in xcatws.cgi handling attr values with = in it 2014-05-29 16:08:54 -04:00
8da129f633 xcatws.cgi: fix the output when slpnodes resource has no output; fix the output message for nodestat resource 2014-05-27 07:47:39 -04:00