About the RESTConf Agent
Cisco NX-OS RESTConf is an HTTP -based protocol for configuring data that YANG version 1 defines, using datastores in NETCONF.
NETCONF defines configuration datastores and a set of Create, Retrieve, Update, and Delete (CRUD) operations that can access these datastores. The YANG language defines the syntax and semantics of datastore content, operational data, protocol operations, and event notifications.
Cisco NX-OS RESTConf uses HTTP operations to provide CRUD operations on a conceptual datastore containing YANG-defined data. This data is compatible with a server which implements NETCONF datastores.
The RESTCONF protocol supports both XML and JSON payload encodings. User authentication happens through the HTTP Basic Authentication.
The following table shows the Protocol operations that the Cisco NX-OS RESTConf Agent supports:
RESTConf |
NETCONF Equivalent |
---|---|
OPTIONS |
NETCONF: none |
HEAD |
NETCONF: none |
GET |
NETCONF: <get-config>, <get> |
POST |
NETCONF: <edit-config> (operation="create") |
PUT |
NETCONF: <edit-config> (operation="create/replace") |
PATCH |
NETCONF: <edit-config> (operation="merge") |
DELETE |
NETCONF: <edit-config> (operation="delete") |