Tools

Miscellaneous Resources for NetFoundry API

HelpAPI for BASH

HelpAPI is an interactive terminal console.

Python Module

Python Package Index module
Python3 interface to the NetFoundry API
pip install netfoundry

Looking for the Python guide?

Postman

Scripts

# Supply email addresses one per line on standard input or use --invitees INVITEES_FILE
python3 ./bulkInviteEndpoints.py \
            --metadata laptop \
            --network-name ZitiBastions \
            --attributes salesEndpoints \
            --credentials credentials.json  <<< "alice.faulkner@example.com"

python3 ./bulkInviteEndpoints.py \
            --metadata mobile \
            --network-name ZitiBastions \
            --attributes salesEndpoints \
            --credentials credentials.json  <<EOF
alice.faulkner@example.com
bob.criton@example.com
EOF
  • bulkEditRoleAttributes.py
    replace the role attributes on all Endpoints, Edge Routers, or Services; optionally limited to those that match a pattern
python3 ./bulkEditRoleAttributes.py endpoints \
            --credentials credentials.json \
            --attributes sandbox staging production \
            --network-name ZitiBastions \
            --include ".*laptop$"                                       

Ansible Modules

Looking for the Ansible Guide?

Demos

Looking for the Quickstart Demo?

More Control with Python

Looking for the Python guide?