Created
November 3, 2019 06:40
-
-
Save afaqk9394/6ecf4732961243b52c8df1bdec87f660 to your computer and use it in GitHub Desktop.
List all ACI tenants
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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