Skip to content

Instantly share code, notes, and snippets.

@afaqk9394
Created November 3, 2019 06:40
Show Gist options
  • Select an option

  • Save afaqk9394/6ecf4732961243b52c8df1bdec87f660 to your computer and use it in GitHub Desktop.

Select an option

Save afaqk9394/6ecf4732961243b52c8df1bdec87f660 to your computer and use it in GitHub Desktop.
List all ACI tenants
from acitoolkit import *
url = 'https://sandboxapicdc.cisco.com'
usr_name = 'admin'
password = 'ciscopsdt'
session = Session(url, usr_name, password)
nodes = Node.get(session)
tenants = Tenant.get(session)
for tenant in tenants:
print (tenant.name)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment