added feature flag collection

This commit is contained in:
mischa 2022-06-21 09:19:28 +02:00
parent acf9a68430
commit 545129c8a5
2 changed files with 8 additions and 1 deletions

View File

@ -1,4 +1,4 @@
[ipsecconnectors1] [panfwservices1.txt]
cxp = US-EAST-2 cxp = US-EAST-2
segments = Prod segments = Prod
group = Development group = Development

7
get.py
View File

@ -128,6 +128,13 @@ tenantName = data[0]['name']
logging.info(f'Tenant Name: {tenantName}') logging.info(f'Tenant Name: {tenantName}')
logging.info(f'Tenant ID: {tenantNetworkId}') logging.info(f'Tenant ID: {tenantNetworkId}')
# Get feature flags
logging.info('=== Collecting Feature Flags')
r = alkira_get(s, f'/tenantenabledfeatures')
data = r.json()
print('# Credentials')
print(json.dumps(data, indent=4))
# Get credentials # Get credentials
logging.info('=== Collecting Credentials') logging.info('=== Collecting Credentials')
r = alkira_get(s, f'/credentials') r = alkira_get(s, f'/credentials')