Cisco Cisco Evolved Programmable Network Manager 2.0 Developer's Guide
Cisco Evolved Programmable Network Manager 2.0.1 RESTCONF API Guide
47
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 further detail.
data for further detail.
4.18 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.
Termination Point Configuration, Template Based Configuration (TBC), and Model Based Configuration
(MBC).
The operations listed below are supported as part of Resource Activation.
4.18.1 Operations
4.18.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.
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
Request Content Type
application/xml, application/yang.operation +xml, application/json,
application/yang.operation+json
application/yang.operation+json
Request Data
Request data of type run-cli-configuration-request that contains the details of
the template to run.
the template to run.
Response Message
Response Content Type
Response Content Type
application/xml, application/yang.operation +xml, application/json,
application/yang.operation+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.
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 further detail.
data for further detail.
4.18.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.
template gets executed.
parameter-list
List
List of name/value pairs for the parameters