Reference Guide

Table Of Contents
Example
curl -X GET -k -u admin:admin -H "accept:application/json"
"https://10.11.86.113/restconf/data/interfaces/interface/port-channel10"
Delete a port-channel configuration
RESTCONF
endpoint
/restconf/data/interfaces/interface/port-channel10
JSON content None
Parameters
port-channel id-number Enter port-channelid-number, where id-number is from 1
to 128.
Example
curl -X DELETE -k -u admin:admin -H "accept: application/json"
-H "Content-Type: application/json"
"https://10.11.86.113/restconf/data/interfaces/interface/port-channel10"
Remove port-channel minimum link configuration
RESTCONF
endpoint
/restconf/data/interfaces/interface/port-channel10/min-links
JSON content None
Parameters
port-channel id-number Enter port-channelid-number, where id-number is from 1
to 128.
Example
curl -X DELETE -k -u admin:admin -H "accept:application/json"
-H "Content-Type:application/json"
"https://10.11.86.113/restconf/data/interfaces/interface/port-channel10/
min-links"
VLAN
Create VLAN interface
RESTCONF
endpoint
/restconf/data/interfaces
JSON content
{
"interface": [{
"type": "iana-if-type:l2vlan",
"enabled": true,
"description": "vlan20",
"name": "vlan20"
}]
}
Parameters
type string Enter iana-if-type:l2vlan for a VLAN interface.
enabled bool Enter true to enable the VLAN; enter false to disable the VLAN.
description string Enter a text string to describe the VLAN, using a maximum of 80
alphanumeric characters.
name string Enter vlan vlan-id, where vlan-id is from 1 to 4093.
Example
curl -X POST u admin:admin k "https://10.11.86.113/restconf/data/
interfaces"
-H "accept: application/json" -H "Content-Type: application/json"
-d '{ "interface": [{ "type": "iana-if-type:l2vlan", "enabled": true,
"description": "vlan20", "name": "vlan20" }]}'
Configure VLAN IP address
RESTCONF API
761