Example Code for the FTD REST API Cookbook Procedures

This project contains Python3 scripts for the FTD REST API cookbook

Use this example code to perform REST API operations as described in the cookbook on an FTD device.

The files in examples/ftd_api_scripts are standalone Python3 scripts to execute the end to end cookbook procedures.
The files in examples/ftd_api_resources contain the functions used to perform REST API requests from the standalone scripts.

To execute from the command line:

These scripts require Python version 3.0 or greater and the Requests library.

You will need to provide device host, port, user, passwd, and sometimes other parameters. For example,

cd examples/ftd_api_scripts
set PYTHONPATH=../examples
python deploy.py ftd.example.com 443 admin Admin123
View code on GitHub

Code Exchange Community

Get help, share code, and collaborate with other developers in the Code Exchange community.View Community
Disclaimer:
Cisco provides Code Exchange for convenience and informational purposes only, with no support of any kind. This page contains information and links from third-party websites that are governed by their own separate terms. Reference to a project or contributor on this page does not imply any affiliation with or endorsement by Cisco.