cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1755
Views
6
Helpful
1
Replies

Command to delete ftd from fmc

kamtarias
Level 1
Level 1

Dear All,

We have a requirement to delete multiple FTD's from FMC. Is there a command or REST API to do this or do we need to manually do one by one using GUI?

1 Reply 1

marce1000
VIP
VIP

 

 - You can use the REST API to delete multiple FTD devices from the FMC. You can use the DELETE method of the REST API to delete a device by specifying the device ID in the API call. Here's an example of how you can do this using cURL:

curl -X DELETE -H "Content-Type: application/json" -H "Authorization: Bearer <API_TOKEN>" "<FMC_URL>/api/fmc_config/v1/domain/e276abec-e0f2-11e3-8169-6d9ed49b625f/device/<DEVICE_ID>"

You can use a loop or a script to call this API for multiple devices. Make sure to replace <API_TOKEN> with your FMC API token, <FMC_URL> with the URL of your FMC, and <DEVICE_ID> with the ID of the device you want to delete.

Note: The REST API method for deleting devices is only available in FMC versions 6.2.0 and later.

 M.

 

 

 



-- Each morning when I wake up and look into the mirror I always say ' Why am I so brilliant ? '
    When the mirror will then always repond to me with ' The only thing that exceeds your brilliance is your beauty! '
Review Cisco Networking for a $25 gift card