01-16-2021 12:04 AM
HI ACI pro's,
According to the REST API guide, there are two ways to delete an object in ACI:
- HTTP DELETE operation (no examples given)
- HTTP POST operation, referencing the object DN with the attribute "status":"deleted"
What is the most common and correct way? Or or both methods equally valid?
Solved! Go to Solution.
01-16-2021 05:33 AM
Depending on the version, both methods will work. On earlier version, only the post method was supported with the status property change.
Robert
01-16-2021 05:37 AM
Hi Johannes
From my point of view, the easiest way is sending a HTTP DELETE to the DN of the object.
For example: Delete EPG "WEB1" under application profile "PROD" in tenant "XYZ":
DELETE https://<APIC>/api/mo/uni/tn-XYZ/ap-PROD/epg-WEB1.json
HTH
Marcel
01-16-2021 05:33 AM
Depending on the version, both methods will work. On earlier version, only the post method was supported with the status property change.
Robert
01-16-2021 05:37 AM
Hi Johannes
From my point of view, the easiest way is sending a HTTP DELETE to the DN of the object.
For example: Delete EPG "WEB1" under application profile "PROD" in tenant "XYZ":
DELETE https://<APIC>/api/mo/uni/tn-XYZ/ap-PROD/epg-WEB1.json
HTH
Marcel
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide