cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

279
Views
0
Helpful
2
Replies
Johannes Luther
Enthusiast

Right way to delete objects in ACI

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?

2 ACCEPTED SOLUTIONS

Accepted Solutions
Robert Burns
Cisco Employee

Depending on the version, both methods will work.  On earlier version, only the post method was supported with the status property change.

Robert

View solution in original post

Marcel Zehnder
Participant

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

 

 

View solution in original post

2 REPLIES 2
Robert Burns
Cisco Employee

Depending on the version, both methods will work.  On earlier version, only the post method was supported with the status property change.

Robert

View solution in original post

Marcel Zehnder
Participant

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

 

 

View solution in original post

Content for Community-Ad