Protocol Device Control
2 Show all protocol control info in JSON:
curl -k -H "X-SESSION-ID: $token" "https://192.168.0.1/ws/v2/device_ctl/protocols?js=1"
Expected output (values are for example purposes only):
{
}
3 Show a single protocol control item in JSON:
curl -k -H "X-SESSION-ID: $token"
"https://192.168.0.1/ws/v2/device_ctl/protocols?http&js=1"
Expected output (values are for example purposes only):
{
}
POST Method Examples:
Change protocol control configurations
1 Change SNMP protocol configuration:
curl -k -X POST -H "X-SESSION-ID: $token"
"https://192.168.0.1/ws/v2/device_ctl/protocols?snmp=Enable&js=1"
If successful, the return body will be:
{
}
And SNMP protocol will be enabled.
2 Change IGMP protocol configuration:
curl -k -X POST -H "X-SESSION-ID: $token"
"https://192.168.0.1/ws/v2/device_ctl/protocols?igmp=Disable&js=1"
If successful, the return body will be:
{
}
And IGMP protocol will be disabled.
Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
276
"devicectl": {
"protocols": {
"settings": {
"http": "HTTPS",
"snmp": "Enable",
"igmp": "Enable",
"syslog": "Syslog UDP",
"slogsrvip": "0.0.0.0",
"slogsrvprt": "514",
"mpe": "Fwd None",
"idletimeout": "0",
"globaldns": "Enable"
}
}
}
"devicectl": {
"protocols": {
"settings": {
"http": "HTTPS"
}
}
}
"response": {
"code": "10",
"result": "success",
"message": "Success"
}
"response": {
"code": "10",
"result": "success",
"message": "Success"
}
API Definitions