Cisco Cisco Evolved Programmable Network Manager 2.0 Developer's Guide

Page of 254
  
 
 
Cisco EPN Manager 2.0.3 RESTCONF NBI Guide  
 
 
58 
4.20 Resource Activation 
RESTCONF NBI supports the setting up of the resource level configuration using various operations like 
Termination Point Configuration, Template Based Configuration (TBC), and Model Based Configuration 
(MBC). 
The operations listed below are supported as part of Resource Activation.   
4.20.1 Operations 
4.20.1.1 
Run CLI Configuration  
Restconf NBI supports configuration using CLI Templates. Invoking this NBI will run the CLI Configuration in 
the template on the target device with the set of parameters applied. 
 
Operation 
Description 
run-cli-configuration 
This operation can be used to run cli configuration using templates. 
HTTP Method  
Resource Path  
POST 
/operations/v1/cisco-resource-activation:run-cli-configuration 
Request Message 
Request Content Type 
application/xml, application/yang.operation +xml, application/json, 
application/yang.operation+json 
Request Data 
Request data of type run-cli-configuration-request that contains the details of 
the template to run. 
Response Message 
Response Content Type 
application/xml, application/yang.operation +xml, application/json, 
application/yang.operation+json 
Response Data 
Return response of type run-cli-configuration-response that contains the details 
of the job executing the cli configuration which can be used to check the status. 
HTTP Status Code 
  200 OK - Success with response message-body 
  401, 403 – Authentication and Authorization errors. 
  400 Bad Request - Invalid request message.  
  500 Internal Server Error - operation-failed. 
Please refer to RESTCONF standard status codes and standard error response 
data for more details. 
 
4.20.1.1.1 
Run CLI Configuration Request  
 
Name 
Type 
Description 
run-cli-configuration-request 
Container element 
Holds the data for template details  
template-name 
String  
Template Name. 
node-ref 
String (FDN)  
FDN of the device where the cli from the 
template gets executed. 
parameter-list 
List  
List of name/value pairs for the parameters 
for the template. 
name 
String  
Name of the parameter. 
value 
String  
Value of the parameter.