Hi All,
I am trying to delete the implicate created contract during L2 policy creation through Open Stack GBP integration. I am trying to delete it through cURL command and JSON API. Below are the script but not able to delete it. Please can anyone help me here.
curl -X POST -k https://1.1.1.1/api/aaaLogin.json -d '{ "aaaUser" : { "attributes" : { "name" : "abc", "pwd" : "abc#123!" } } }' -c cookie.txt
curl-b cookie.txt-X POST -k https: //1.1.1.1/api/node/mo/uni/tn-_soc6_c431c3f96fdd464986d8b218afc234d7.json -d
'{
"totalCount": "1",
"imdata": [{
"fvTenant": {
"attributes": {
"descr": "",
"dn": "uni/tn-_soc6_c431c3f96fdd464986d8b218afc234d7",
"name": "_soc6_c431c3f96fdd464986d8b218afc234d7",
"ownerKey": "",
"ownerTag": ""
},
"children": [{
"vzSubj": {
"attributes": {
"consMatchT": "AtleastOne",
"descr": "",
"name": "implicit-utzone6epg1",
"prio": "unspecified",
"provMatchT": "AtleastOne",
"revFltPorts": "yes",
"targetDscp": "unspecified",
"status" : "deleted"
}
}
}]
}
}],
}'