Cisco D9800 Reference Manual page 208

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

Advertisement

Output Configuration Command
All GET examples will apply to the DPM ASI PE settings, but the same examples can be applied to the
Note
DPM MOIP PE settings, by simply replacing the 'asi' in the URI with 'moip'.
Example 2: Get full table of DPM ASI Parameters for all PE's
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 returns the full DPM ASI Output Settings for all
PE's.
curl -X GET -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
"https://192.168.0.1/ws/v2/service_cfg/output/asi/pe"
If successful, the return body will be (please note this is a snippet of the full return body):
"output": {
}
Example 3: Get the table of DPM ASI Parameters for a specific PE
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 returns the DPM ASI Output Settings for a specific
PE, in this case PE 1.
curl -X GET -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
"https://192.168.0.1/ws/v2/service_cfg/output/asi/pe?peid=1"
If successful, the return body will look like:
"output": {
}
Example 4: Get specific parameters of the DPM ASI Settings for a specific PE
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 returns the pmtpid and output channel of the DPM
ASI Output Settings for a specific PE, in this case PE 1.
curl -X GET -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
"https://192.168.0.1/ws/v2/service_cfg/output/asi/pe?peid=1&pmtpid&outchan"
Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
196
"asi": {
"pe": [
{
"peid": "PE1",
"action": "Pass",
"pmtpid": "8191",
"outchan": "105"
},
{
"peid": "PE2",
"action": "Drop",
"pmtpid": "8191",
"outchan": "0"
},
]
}
"asi": {
"pe": {
"peid": "PE1",
"action": "Pass",
"pmtpid": "8191",
"outchan": "105"
}
}
API Definitions

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents