XtremIO RestAPI version 4.0.2 build 80 Post command for snapshot creation not
working
I am trying to create a snapshot of a consistency group in XtremIO using CURL. Unfortunately it fails stating it requires cluster-id even though I have mentioned cluster-name in the command. Can some one help me on what's going on wrong here?
I just tried both using POSTMAN and curl and could get it to work. I did notice that the name is case sensitive (originally i entered marco_set and it didn't find it), so maybe try this?
Thank you Mabela. It worked perfectly. But I am struggling now to delete a snapshot-set. Bash is not accepting the cluster-name which is coming after "&"
I am receiving the following error, when I try to do snapshot refresh. Could you please let me know what could be wrong here? I am sure this is the right cluster-id
I tried the below with POSTMAN and it worked, but i am not using multi cluster. Do you have multiple clusters deployed to XMS? If so, can you try using the name of the cluster instead of the #:
Thank you. It worked when I used the cluster index in the url instead of cluster-id in the data section.
I was able to rename the old snapshot and do a refresh. Currently working on capturing the error code so that can pass it another script to generate tickets.
mabela
33 Posts
2617
0
Posted October 3rd, 2016 12:00
I just tried both using POSTMAN and curl and could get it to work. I did notice that the name is case sensitive (originally i entered marco_set and it didn't find it), so maybe try this?
Below is what i tried:
Curl:
curl -k "https://username:PW@XMS_IP/api/json/v2/types/snapshot-sets?name=Marco_SET&cluster-name=myxbrick01" -X DELETE
POSTMAN:
DELETE https://XMS_IP/api/json/v2/types/snapshot-sets?name=Marco_SET&cluster-name=myxbrick01