cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
789
Views
5
Helpful
1
Replies
Highlighted
Beginner

How to query the “commit queue” details (status) via REST API or RESTCONF API?

After you commit your request on commit-queue via cli command line or via REST API or RESTCONF API , a commit-queue item/ID would be returned, eg: queue-item 9494530158, you then can query your request's status via cli command line:

 

ncs# show devices commit-queue queue-item 9494530158 details

 

What is the corresponding REST API or RESTCONF API to query the queue-item status?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Cisco Employee

The URL path part would be /restconf/data/devices/commit-queue/queue-item=9494530158; but this would return data about active commit item, if the commit has already completed (successfully or otherwise), you need /restconf/data/devices/commit-queue/completed/queue-item=9494530158

View solution in original post

1 REPLY 1
Highlighted
Cisco Employee

The URL path part would be /restconf/data/devices/commit-queue/queue-item=9494530158; but this would return data about active commit item, if the commit has already completed (successfully or otherwise), you need /restconf/data/devices/commit-queue/completed/queue-item=9494530158

View solution in original post