Examples For Restconf Rpcs - Cisco Catalyst 4500 Series Software Configuration Manual

Cisco ios xe release 3.9.xe and cisco ios release 15.2(5)ex
Hide thumbs Also See for Catalyst 4500 Series:
Table of Contents

Advertisement

Chapter 6
Programmability
Remove the description from an interface by sending the following RPC

Examples for RESTCONF RPCs

Get the TFTP source interface by sending the following RPC:
Configure the TFTP source interface by sending the following RPC:
Enter an HTTP delete request by sending the following RPC:
Using ODM Models
You use ODM models to retrieve read-only operational state data from the system. For this, you must
enable Secure Shell Version 2 (SSHv2), activate the ODM, and set the time interval at which the models
will collect information from the system.
Each ODM model has a corresponding parser, which polls the specified operational data according to
the specified polling interval in milliseconds. See the following sections:
<rpc message-id="101" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<edit-config>
<target>
<running/>
</target>
<config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
<native xmlns="http://cisco.com/ns/yang/ned/ios">
<interface>
<TenGigabitEthernet>
<name>4/1</name>
<description xc:operation="delete"/>
</TenGigabitEthernet>
</interface>
</native>
</config>
</edit-config>
</rpc>
GET http://10.106.30.33:80/restconf/api/running/native/ip/tftp/source-interface
PATCH
http://10.106.30.33:80/restconf/api/running/native/ip/tftp/source-interface/GigabitEth
ernet
payload = "{\n
\"GigabitEthernet\": \"2/2\"\n}"
DELETE http://10.106.30.33:55080/api/running/native/ip/tftp/source-interface/
For the HTTP delete request do not use:
Note
http://10.106.30.33:80/restconf/api/running/native/ip/tftp/source-interface/
Enabling SSHv2, page 6-17
Activating and Deactivating the ODM, page 6-17
Enabling the Polling Mode, page 6-19
Displaying Supported Parsers and Polling Intervals, page 6-20
Catalyst 4500 Series Switch, Cisco IOS Software Configuration Guide - Cisco IOS XE 3.9.xE and IOS 15.2(5)Ex
Using ODM Models
6-15

Advertisement

Table of Contents
loading

Table of Contents