Aruba Activate support external API with JSON format.
URL
https://activate.arubanetworks.com/api/ext/inventory.json?action=update
POST
json={"devices":[{"mac":"00:0B:86:CF:95:8C"
,"folderId" : "2f3362fe-a8ca-11e1-9eaf-a4badbe0f786"} , {"mac":"D8:C7:C8:C4:6B:EC" ,"folderId" :
"2f3362fe-a8ca-11e1-9eaf-a4badbe0f786"} , {"mac": "6C:F3:7F:C1:44:DE" ,"folderId" :
"2f3362fe-a8ca-11e1-9eaf-a4badbe0f786"} , {"mac": "D8:C7:C8:C8:EB:E8" ,"folderId" :
"2f3362fe-a8ca-11e1-9eaf-a4badbe0f786"} , {"mac": "D8:C7:C8:C4:40:67" ,"folderId" :
"2f3362fe-a8ca-11e1-9eaf-a4badbe0f786"}]}
HTTP/1.1 200 OK
Date: Thu, 15
May 2014 02:33:42 GMT
Cache-Control:
no-cache
Content-Disposition:
inline;filename=inventory.json
Content-Length:
93
Content-Type:
application/json; charset=utf-8
Expires: -1
Pragma:
no-cache
Keep-Alive:
timeout=15, max=100
Connection:
Keep-Alive
Data
{"info":{"api":"inventory","version":"1.4"},"message":{"text":"5
devices updated.","code":0}}
0 件のコメント:
コメントを投稿