Disaster Recovery (D/R) Configuration API
GET Examples
Example 2: Retrieve the full D/R global Settings
The following example assumes that the user has successfully logged onto the unit, received the session ID,
and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
change the IP to the specific unit IP in use.
curl -X GET -i
"https://192.168.0.1/ws/v2/service_cfg/dr/global"
If successful, the return body will be:
"dr": {
}
Note
The "profile" parameter is only for display, configuring the parameter is not currently supported.
Disaster Recovery (D/R) Backup Transport Configuration Command
Table 217: Command Details
Command Detail
Command URL
Command Information
HTTP Methods
Access Type
Access Level
GET Syntax
Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
260
-H "Accept: application/json" -H "X-SESSION-ID: $token" -k
"global": {
"enable": "Yes",
"siglock": "40",
"siglost": "120",
"verify": "60",
"profile": "Local"
}
Description
https://192.168.0.1/ws/v2/service_cfg/dr/tuning
Allows set or get of D/R backup transport configuration.
GET, POST
Read, Write
User, Admin
All D/R backup tuning Settings
GET "https://192.168.0.1/ws/v2/service_cfg/dr/tuning"
Single D/R backup tuning Setting, for example,
GET "https://192.168.0.1/ws/v2/service_cfg/dr/tuning?csirec=1",
GET "https://192.168.0.1/ws/v2/service_cfg/dr/tuning?csirec=2", or
GET "https://192.168.0.1/ws/v2/service_cfg/dr/tuning?csirec=3"
API Definitions