Cisco D9800 Reference Manual page 276

Network transport receiver
Hide thumbs Also See for D9800:
Table of Contents

Advertisement

Disaster Recovery (D/R) Configuration API
Table 220: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
URI Argument
peid (Key)
csirec (Key)
bkpchan
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
"https://192.168.0.1/ws/v2/service_cfg/dr/channels?peid=PE1&csirec=1&bkpchan=30"
If successful, the return body will look be:
"response": {
}
GET Examples
Example 2: Retrieve the full D/R backup 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/channels"
If successful, the return body will be:
"dr": {
Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
264
-H "Accept: application/json" -H "X-SESSION-ID: $token" -k
"code": "10",
"result": "success",
"message": ""
-H "Accept: application/json" -H "X-SESSION-ID: $token" -k
"channels": [
{
"peid": "PE1",
"csirec": "1",
"bkpchan": "201",
},
{
"peid": "PE1",
"csirec": "2",
"bkpchan": "0",
},
{
"peid": "PE1",
Description
D/R backup channel Program Entry ID
Type: String
Values: "PE1" ... "PE16"
Record index of D/R backup Transport
Type: Integer
Values: 1 ... 3
D/R backup channel number
Type: Integer
Values: 0 ... 65535
API Definitions

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents