HP VAN SDN Controller REST API Guide

Sample request
POST /sdn/v2.0/systems/{system_uid}/action
Valid request data: "backup" -- Backup the given system
Sample response
1 {
2 "uri": "/sdn/v2.0/backups/23232323",
3 "session_ids" : {
4 "session_id" : "23232323",
5 "nodetokens" : []
6 }}
Location header:
/sdn/v2.0/backups/{session_id}
Response codes
Normal: Accepted (202)
Error: Unauthorized (401), Not Found (404), Service Unavailable (503)
Restore system
This API is asynchronous.
Sample request
POST /sdn/v2.0/systems/{system_uid}/action
Valid request data: restore-- Restore the given system.
Sample response
{
"session_ids": {
"nodetokens": [],
"session_id": "RLUEcAKeTA"
},
"uri": "file:///opt/sdn/backup/restore.log"
}
Location header: file:///opt/sdn/backup/restore.log
NOTE: There is no API to check for restore status; rather, one will need to log onto the controller
that is being restored and check the file specified by the location header.
Response codes
Normal: Accepted (202)
Error: Unauthorized (401), Not Found (404), Service Unavailable (503)
Systems/{system uid}/backup
Retrieve restore information
Sample request
Retrieve restore information:
GET /sdn/v2.0/systems/{system uid}/backup
There is no request body for this API.
34 /sdn/v2.0