ADSM-L

[ADSM-L] Script to register node using Curl and Rest API

2016-04-01 13:33:24
Subject: [ADSM-L] Script to register node using Curl and Rest API
From: Anderson Douglas <ander.douglas AT GMAIL DOT COM>
To: ADSM-L AT VM.MARIST DOT EDU
Date: Fri, 1 Apr 2016 14:31:09 -0300
Hello



Here we have started news tests using REST API through Operation
center. We adopted Curl to send the commands.

Some commands like this below runs normally



curl -X GET -H "Accept: application/json" -H "OC-API-Version: 1.0" -k
--user aaa:bbb https://xx.xx.xx.xx:11090/oc/api/help

curl -X PUT -H "Accept: application/json" -H "OC-API-Version: 1.0" -k
--user aaa:bbb 
https://xx.xx.xx.xx:11090/oc/api/servers/<inst>/clients/<node>/unlock



Now we need to implementade a rest command to register a node into
TSM, But not able. Does anyone know how to do this?



This is a link with REST API supportable commands

http://www-01.ibm.com/support/docview.wss?uid=swg21973011





Anderson Douglas da Silva