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

Cisco FMC Deployment using API

Rajdeep Datta
Level 1
Level 1

Hello Folks,

Hope you are doing well.

I am new to to the security and tring to setup a LAB with FTD and FMC.

I just configured an interface of FTD from FMC but while deploying that getting error related to CPU and now trying to do it from CLI using API.

I am running below command but getting some error not able to recognise it.

curl -k -X POST 'https://192.168.X.X/api/fmc_config/v1/domain/e276abec-e0f2-11e3-8169-6d9ed49b625f/deployment/deployments' -H 'Content-Type: application/json' -H 'X-auth-access-token: ab965bc4-6694-4664-b64b-f80fcab33fc1' -d '{"type": "DeploymentRequest","forceDeploy": true,"ignoreWarning": true,"version": "1.0","deviceList": ["95a8fb98-1ad1-11ef-be1c-da7bb9791eb4"]}'

 

Error:

{"error":{"category":"FRAMEWORK","messages":[{"description":"URL Invalid."}],"severity":"ERROR"}}

 

Can anyone help me here with pusing the deployment from FMC CLI to FTD ?

 

Thanks in Advance

1 Reply 1

mfr-6
Spotlight
Spotlight

hi @Rajdeep Datta 

I'm afraid you point to the wrong URL. I cannot find this endpoint both in the documentation: https://www.cisco.com/c/en/us/td/docs/security/firepower/660/api/REST/firepower_management_center_rest_api_quick_start_guide_660/Objects_In_The_REST_API.html and API Explorer.

You can find available endpoints in FMC's API Explorer: https://<your-fmc-address>/api/api-explorer

Mateusz Frak NetDevOps | DevNet | Automation
Please mark this post as helpful if it solves your issue, to make this visible for other users, thank you!
Review Cisco Networking for a $25 gift card