Description
Command Detail
For example,
POST "https://192.168.0.1/ws/v2/service_cfg/dr/global?enable=No"
POST Syntax
Setting Parameters using
command line arguments is
limited to maximum of 26
arguments after the ?.
URI Parameters (extension to the Command URL separated by /): N/A
For POST, the value for the argument seen below must be specified, but for GET, there are no values
for arguments.
Note
Table 216: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
Description
URI Argument
Enable or Disable D/R Feature
Type: String
Value: "Yes", "No"
enable
Amount of time to wait before declaring signal is locked
Type: Integer
Value: 5
…
255 c
siglock
Amount of time to wait before declaring signal is lost
Type: Integer
Value: 5
…
2160000
siglost
Amount of time allowed for verification to complete
Type: Integer
Value: 10
…
255
verify
POST Examples
Example 1: Set various D/R global Setting Arguments
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. This example set the commode to Std.
curl -X POST -i
-H "Accept: application/json" -H "X-SESSION-ID: $token" -k
"https://192.168.0.1/ws/v2/service_cfg/dr/global?&siglock=40"
If successful, the return body will be:
"response": {
"code": "10",
"result": "success",
"message": ""
}
Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
259
API Definitions
Disaster Recovery (D/R) Configuration API