in customizations/AccountFactory/BatchUpdate/update_pp.py [0:0]
def search_provisioned_product_full_list():
'''Get complete list of provisioned products'''
pp_list = list()
filters = {"Key" : "Account", "Value" : "self"}
try:
pp_dict = SC.search_provisioned_products(AccessLevelFilter=filters)
pp_list = pp_dict['ProvisionedProducts']
except Exception as exe:
error_and_exit('Failed to get provisioned products list. ' + str(exe))
while 'NextPageToken' in pp_dict:
next_token = pp_dict['NextPageToken']
try:
pp_dict = SC.search_provisioned_products(AccessLevelFilter=filters,
PageToken=next_token)
pp_list += pp_dict['ProvisionedProducts']
except Exception as exe:
error_and_exit('Failed to get complete provisioned products list: ' + str(exe))
return pp_list