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

ACI - Contract Programming

narottamoza
Level 1
Level 1

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"
            }
      
        }
      }]
    }
   }],
}'

0 Replies 0