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

528
Views
0
Helpful
1
Replies
Highlighted
Beginner

Updating FTD Device Interface Configuration using FMC API

I'm doing a PUT request using FMC REST API  to change the physicalinterface configuration of a FP2000 series firewall, however I get the return message below. 

 

{"error": {
"category": "FRAMEWORK",
"messages": [
{ "description": "Post not allowed for Physical Interfaces."
}],"severity": "ERROR"}}

 

When I do the PUT request I use the following link https://fmcrestapisandbox.cisco.com/api/fmc_config/v1/domain/e276abec-e0f2-11e3-8169-6d9ed49b625f/devices/devicerecords/<Device ID/Container UUID>/physicalinterfaces

 

In the Body of the message I have:


{
"type": "PhysicalInterface",
"enabled": false,
"MTU": 1500,
"managementOnly": false,
"securityZone": {
"id": "8d770a60-44cf-11e9-9199-2424ffccb8e1",
"type": "SecurityZone"
},
"ifname": "Intf1",
"ipv4": {
"static": {
"address": "1.2.3.5",
"netmask": "25"
}
},
"name": "GigabitEthernet0/8"
}

 

Please assist

Everyone's tags (5)
1 REPLY 1
Highlighted
Cisco Employee

Re: Updating FTD Device Interface Configuration using FMC API

I too am having an issue with the physicalinterfaces POST API. Mine however is that the "enabled" = True isn't working. That said, I've build a Python package, called fmcapi, that might could help you with your API calls. Check it out at https://github.com/daxm/fmcapi/