diff --git a/get.py b/get.py index bf3b7af..a565a98 100755 --- a/get.py +++ b/get.py @@ -115,10 +115,12 @@ def alkira_delete(session, uri): return response # Authenticate +logging.info('=== Authenticating') s = alkira_login() logging.debug(s) # Get TenantID +logging.info('=== Fetching Tenant Info') r = alkira_get(s, '/tenantnetworks') data = r.json() tenantNetworkId = data[0]['id'] @@ -127,28 +129,28 @@ logging.info(f'Tenant Name: {tenantName}') logging.info(f'Tenant ID: {tenantNetworkId}') # Get credentials -logging.info('Checking Credentials') +logging.info('=== Collecting Credentials') r = alkira_get(s, f'/credentials') data = r.json() print('# Credentials') print(json.dumps(data, indent=4)) # Get connectors -logging.info('Checking Connectors') +logging.info('=== Collecting Connectors') r = alkira_get(s, f'/tenantnetworks/{tenantNetworkId}/connectors') data = r.json() print('# Connectors') print(json.dumps(data, indent=4)) # Get services -logging.info('Checking services') +logging.info('=== Collecting services') r = alkira_get(s, f'/tenantnetworks/{tenantNetworkId}/services') data = r.json() print('# Services') print(json.dumps(data, indent=4)) # Get Global CIDR -logging.info('Checking Global CIDR') +logging.info('=== Collecting Global CIDR') r = alkira_get(s, f'/tenantnetworks/{tenantNetworkId}/global-cidr-lists') data = r.json() print('# Global CIDR')