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 -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
"https://192.168.0.1/ws/v2/service_cfg/dr/global"
If successful, the return body will be:
"dr": {
"global": {
"enable": "Yes",
"siglock": "40",
"siglost": "120",
"verify": "60",
"profile": "Local"
}
}
The "profile" parameter is only for display, configuring the parameter is not currently supported.Note
Disaster Recovery (D/R) Backup Transport Configuration Command
Table 217: Command Details
DescriptionCommand Detail
https://192.168.0.1/ws/v2/service_cfg/dr/tuningCommand URL
Allows set or get of D/R backup transport configuration.Command Information
GET, POSTHTTP Methods
Read, WriteAccess Type
User, AdminAccess Level
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"
GET Syntax
Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
260
API Definitions
Disaster Recovery (D/R) Configuration API