Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »


https://github.com/digitalocean/pynetbox

instantiate the API

import pynetbox
nb = pynetbox.api(
    'http://localhost:8000',
    private_key_file='/path/to/private-key.pem',
    token='d6f4e314a5b5fefd164995169f28ae32d987704f'
)

List of devices:

nb.dcim.devices.all()
[test1-leaf1, test1-leaf2]
  • No labels