cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
670
Views
0
Helpful
2
Replies

Use of ConfD REST API interface for non-configuration purpose

mahajain
Cisco Employee
Cisco Employee

ConfD provide REST API interface which can be used for configuration of device. This interface also refer to device Yang model.

Can same interface be used for non configuration activity e.g. fetching device metrics ?

1 Accepted Solution

Accepted Solutions

alam.bilal
Cisco Employee
Cisco Employee

A device-model can have not only the configuration data but also operational data.

So if there are metrics/operational-data modeled/exposed via its device's YANG model then it can be retrieved by any of the APIs.

The URL for the operational data where the GET is done might be slightly different to that of the configuration data. Example on NSO using RESTCONF:

http://localhost:8080/restconf/data

vs

http://localhost:8080/restconf/operations

View solution in original post

2 Replies 2

alam.bilal
Cisco Employee
Cisco Employee

A device-model can have not only the configuration data but also operational data.

So if there are metrics/operational-data modeled/exposed via its device's YANG model then it can be retrieved by any of the APIs.

The URL for the operational data where the GET is done might be slightly different to that of the configuration data. Example on NSO using RESTCONF:

http://localhost:8080/restconf/data

vs

http://localhost:8080/restconf/operations

Thanks Bilal.