QUESTION:
How do I use use web services to update a container?
RESOLUTION:
This is an example of a JSON formatted request to update a container (your serial numbers will be different):
#!/bin/sh
curl -k -i -H "Content-Type: application/json" -H "Accept: application/json" -X \
POST -d '{
"username": "your_user_name_here",
"password": "your_password_here",
"containerDetail": {
"name": "container 3",
"serialNumber": 600008,
"type": "test",
"departmentName":null,
"comment": "created via api",
"commentVisible": false,
"actionProfileSerialNumber": -1,
"severityRule":null,
"rules":null,
"members":[
{
"serialNumber":1180009,
"type":"test",
"containerName":"",
"deviceName":"malmo router",
"testName":"System Uptime"
}
],
"readOnly":false,
"useMessageEvents":false,
"smartNotify":false
}
}' https://traverse_server/api/json/admin/container/update
APPLIES TO:
All versions of Traverse
REFERENCE:
None