#!/usr/bin/env python
import securitycenter

# Please fill out the information below
username = 'USERNAME'
password = 'PASSWORD'
host = 'HOSTNAME OR IP ADDRESS'

sc = securitycenter.SecurityCenter(host, username, password)

assets = sc.assets()

print 'Repositories\n------------'
for repo in assets['repositories']:
    print repo['id'], repo['name']

print '\nAssets\n------'
for asset in assets['assets']:
    print asset['id'], asset['name']
#!/usr/bin/env python
import securitycenter

# Please fill out the information below
username = 'USERNAME'
password = 'PASSWORD'
host = 'HOSTNAME OR IP ADDRESS'

sc = securitycenter.SecurityCenter(host, username, password)

assets = sc.assets()

print 'Repositories\n------------'
for repo in assets['repositories']:
    print repo['id'], repo['name']

print '\nAssets\n------'
for asset in assets['assets']:
    print asset['id'], asset['name']
#!/usr/bin/env python # Please fill out the information below