About the RESTCONF Agent
Cisco NX-OS RESTCONF is an HTTP -based protocol for configuring data that are defined in YANG version 1, using datastores defined in NETCONF.
NETCONF defines configuration datastores and a set of Create, Retrieve, Update, and Delete (CRUD) operations that can be used to 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 is done 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") |