cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3420
Views
0
Helpful
3
Replies

ACI - REST API - Create Snapshot with Postman

ju.mahieu
Level 1
Level 1

Hi,

I would like to create a snapshot with Postman.

I have tried the following :

https://{{URL}}/api/node/mo/uni/fabric/configexp-defaultOneTime.json

Body :

"configExportP\":{\"attributes\":{\"dn\":\"uni/fabric/configexp-defaultOneTime\",\"name\":\"defaultOneTime\",\"snapshot\":\"true\",\"targetDn\":\"\",\"adminSt\":\"triggered\",\"rn\":\"configexp-defaultOneTime\",\"status\":\"created,modified\"}}"

Unfortunately, I have the error code :

 "error": {
        "attributes": {
          "code": "400",
          "text": "incomplete node at line '1'"

Any ideas ?

Thank you

Ju

1 Accepted Solution

Accepted Solutions

Marcel Zehnder
Spotlight
Spotlight

Hi Ju

Just POST the following to https://<APIC>/api/mo.json

{
"configExportP": {
"attributes": {
"dn": "uni/fabric/configexp-defaultOneTime",
"adminSt": "triggered"
}
}
}

Marcel

View solution in original post

3 Replies 3

Marcel Zehnder
Spotlight
Spotlight

Hi Ju

Just POST the following to https://<APIC>/api/mo.json

{
"configExportP": {
"attributes": {
"dn": "uni/fabric/configexp-defaultOneTime",
"adminSt": "triggered"
}
}
}

Marcel

Thank you Marcel !

It works :-)

Ju

Say i am running a yml script and i am triggering a snapshot at the very beginning of it. I want to wait for that snapshot to fully formed before i proceed to the next task.. 

The answer of this post is the same as i would see it if i will initiate a snapshot from the APIC GUI - that the snapshot was triggered, however it will take some time before it collect all the info and is available in the UI..

is there a way for making the reply come back only once the snapshot was completely formed ? 

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Save 25% on Day-2 Operations Add-On License