cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1909
Views
5
Helpful
1
Replies

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

Steven Li
Level 1
Level 1

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

mvolf
Cisco Employee
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

mvolf
Cisco Employee
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