Commit Graph

50 Commits

Author SHA1 Message Date
daniceexi
471a104632 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 12:59:46 -04:00
daniceexi
b60378d8e4 update the doc part in xcatws.cgi for GET action against nodes/networks/osimages/policy to use keyword ALLRESOURCES 2014-06-04 06:19:11 -04:00
daniceexi
44452f4cd8 defect 4151:restapi: add error message if using incorrect authorize keys/passwd 2014-06-03 07:29:47 -04:00
daniceexi
d3a9856f9d REST API: support keyword ALLRESOURCES for GET nodes,networks,osimage,policy 2014-06-03 05:04:02 -04:00
Bruce Potter
6ef42b3ae8 fixed bug in xcatws.cgi handling attr values with = in it 2014-05-29 16:10:55 -04:00
daniceexi
1039462c44 xcatws.cgi: fix the output when slpnodes resource has no output; fix the output message for nodestat resource 2014-05-27 07:46:47 -04:00
daniceexi
0c7029f968 The script is used to run rest api test. 2014-04-24 04:37:18 -04:00
daniceexi
bdabf1656d Code drop for the new REST API implementation. It's ported back from master. 2014-04-24 04:36:30 -04:00
baiyuan
b7ec6919e9 fix Undefined subroutine &JSON::decode_json called at /opt/xcat/ws/xcatws.cgi line 168 2014-01-27 23:31:39 -05:00
jbjohnso
26e8951512 Restore xcatws understanding of existing code
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16816 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-27 19:09:17 +00:00
phamt
edbad6e498 Updated REST-API to support more xCAT commands and more z/VM options.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16691 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-19 15:26:59 +00:00
jbjohnso
5dbcb3dd65 Have xCAT WS support credentials via header rather than uri
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15179 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-14 19:19:13 +00:00
jbjohnso
496393222f Fix more instances of namespace for JSON functions
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14903 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-16 21:02:09 +00:00
jbjohnso
133551dd07 Some fixes for WS PUT operations
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14867 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-11 21:21:05 +00:00
jbjohnso
5ecab2d703 Repair JSON in web service (to_json is not imported to namespace on 'require', could do import, but just doing JSON:: to be clearer
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14866 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-11 20:52:46 +00:00
xq2005
24d81c3019 change version and json dependence
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13897 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-26 07:43:12 +00:00
xq2005
ece9baa5a4 change version and json dependence
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13896 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-26 07:25:01 +00:00
xq2005
9110102e1e change version and json dependence
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13895 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-26 07:18:39 +00:00
bp-sawyers
a18348883d Eliminated hard requires for SOAP::Lite and JSON
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13877 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-22 16:20:24 +00:00
daniceexi
788c4ac91c add again with new execute permission
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13860 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-21 01:04:41 +00:00
daniceexi
dcda42d7f3 remove to change the permission
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13859 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-21 01:02:53 +00:00
cjhardee
c30c73c726 Allowed the put data to be passed in the query string for table puts and patches
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13667 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-30 15:01:58 +00:00
daniceexi
418c371dae Add cgi to handle the status update for rhev-h when finished installing
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13556 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-20 13:51:40 +00:00
jbjohnso
8d93c5ec4a Fixes for xcatws
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13440 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-06 21:04:24 +00:00
xq2005
9ee701ca4a fix the problem for json return format with imbedded list
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13162 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-25 14:03:30 +00:00
arifali
3946f00fd5 corrected/added xcat-ws.conf for ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12172 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-10 10:25:29 +00:00
xq2005
3203501826 add the REST API of gettab
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11909 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-20 09:16:06 +00:00
xq2005
95d5f9db58 add REST API for capture image
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11906 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-20 07:54:21 +00:00
xq2005
4da98c6d66 add the API of image check command
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11893 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-19 09:31:33 +00:00
xq2005
2f65463e87 REST API for image list
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11892 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-19 08:50:55 +00:00
xq2005
430bb12d13 xdcp command in REST API
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11891 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-19 06:46:10 +00:00
xq2005
99e038c6a2 turn the debugging
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11859 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-15 07:08:32 +00:00
xq2005
af24bd9b4b add the xdsh rest api interface
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11858 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-15 06:54:28 +00:00
xq2005
5e49f775b4 add the rest api for vms
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11835 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-13 08:34:30 +00:00
cjhardee
b1611e7311 Added a version handler and turned debugging off.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11698 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-02-27 15:44:59 +00:00
xq2005
8669c79562 api interface about the node object
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11675 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-02-24 07:10:55 +00:00
xq2005
0f1f8a04ec support get/put/post/delete method on node object
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11662 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-02-22 02:24:16 +00:00
xq2005
2ea6192c9a get network object
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11648 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-02-21 05:30:56 +00:00
xq2005
e7e2b8c1c2 the put/get/post method for network object is completed
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11609 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-02-17 07:08:17 +00:00
xq2005
400cb3556e support get and put method on site object
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11597 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-02-16 13:06:45 +00:00
xq2005
66de9934d4 modify the code format by perltidy
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11593 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-02-16 02:42:44 +00:00
xq2005
ecd29fc982 fix the rest api response method bug
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11563 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-02-13 08:42:47 +00:00
xq2005
bebf2d2f32 restapi print header format error
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11509 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-02-08 05:55:13 +00:00
daniceexi
5420622ea2 Change the configuration file of xcat-ws to fit both rh and sles
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11367 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-01-12 02:44:51 +00:00
cjhardee
f4de3dc47f enabling the ws api install
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10958 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-11-02 19:45:48 +00:00
cjhardee
72dbd4beb9 Initial add
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10639 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-09-26 16:52:00 +00:00
cjhardee
72cdbc272b added rvitals
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10638 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-09-26 16:51:19 +00:00
cjhardee
384a4a1f6a Mostly output related changes and cleanup
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9802 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-06-14 18:58:31 +00:00
cjhardee
c5abc70779 Finished objectsHandler(i think)
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9659 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-05-23 18:04:23 +00:00
cjhardee
3be9a7e3c4 Move the WSAPI cgi
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9644 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-05-20 15:36:27 +00:00