Network Snapshots
Description |
Manages networks running configurations in NEO (creating, restoring, uploading, downloading, saving, deleting, etc.) |
|||||||||||
Request URL |
/neo/app/network_snapshots |
|||||||||||
Main Operations |
|
Description |
Creates a new snapshot |
|||||||||||
Request URL |
POST /neo/app/network_snapshots |
|||||||||||
Response |
HTTP response location header will contain an ID created for the new snapshot |
|||||||||||
Status Codes |
Note: status code 415 UNSUPPORTED MEDIA TYPE occurs when case systems are not Mellanox or Cumulus |
Request Data:
{
"name"
:"<name>"
,
"description"
:"<desc>"
,
"systems"
:[
"<system_ip>"
,"<system_ip>"
,"<system_ip>"
]
}
Description |
Receives a tar file containing a previously saved snapshot |
|||||||||||
Request URL |
POST /app/network_snapshots?full_content=true |
|||||||||||
Request Content Type |
Multipart/form-data |
|||||||||||
Response |
Snapshot tar file that is downloaded from NEO to the user's download directory |
|||||||||||
Status Codes |
Note: status code 415 UNSUPPORTED MEDIA TYPE occurs when case systems are not Mellanox or Cumulus |
Description |
Retrieves a list of all snapshots in NEO |
|||||||||||
Request URL |
GET /neo/app/network_snapshots |
Response:
{
"network_snapshots"
:[
{"type"
:"<user | daily>"
,
"name"
:"<name>"
,
"description"
:"<desc>"
,
"systems"
:[
"<system_ip>"
,"<system_ip>"
,"<system_ip>"
],
"date"
:"< date_time >"
}
]
}
Description |
Retrieves information on a specific snapshot in NEO |
|||||||||||
Request URL |
GET /neo/app/network_snapshots/<name>/<system_ip> |
|||||||||||
Response |
{ |
Description |
Downloads a previously saved snapshot |
|||||||||||
Request URL |
GET /neo/app/network_snapshots/<name>?full_content=true |
|||||||||||
Response |
Snapshot tar file that is downloaded from NEO to the user's download directory |
Description |
Removes an existing snapshot |
|||||||||||
Request URL |
DELETE /neo/app/network_snapshots/<name> |
|||||||||||
Request Data |
N/A |
|||||||||||
Response |
Location header includes a URI with a Job ID for snapshot deletion. |
Description |
Edits a specific snapshot's description |
|||||||||||
Request URL |
PUT /neo/app/network_snapshots/<name> |
|||||||||||
Request Data |
{ "description":"<desc>" } |
|||||||||||
Response |
HTTP response location header will contain an ID created for the new snapshot |
|||||||||||
Status Codes |
Note: status code 415 UNSUPPORTED MEDIA TYPE occurs when case systems are not Mellanox or Cumulus |
Description |
Applies a specific snapshot on the fabric |
|||||||||||
Request URL |
POST /neo/app/network_snapshots/<name> |
|||||||||||
Request Data |
{ |
|||||||||||
Response |
HTTP response location header will contain an ID created for the new snapshot |
Description |
Saves a snapshot with a new name |
|||||||||||
Request URL |
PUT /neo/app/network_snapshots/<name> |
|||||||||||
Request Data |
{ |
|||||||||||
Response |
HTTP response location header will contain an ID created for the new snapshot |