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

Right way to delete objects in ACI

Johannes Luther
Level 4
Level 4

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
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
Spotlight
Spotlight

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
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

Marcel Zehnder
Spotlight
Spotlight

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

 

 

Save 25% on Day-2 Operations Add-On License