Skip to content

Commit

Permalink
Merge pull request #124 from PaloAltoNetworks/fix/number-of-return-line
Browse files Browse the repository at this point in the history
change the limit to get 1000 results
  • Loading branch information
SimOnPanw authored Feb 6, 2023
2 parents 1e6ff80 + bb71e30 commit 667ae7a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions prismacloud/api/posture/_endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ def search_config_read(self, search_params):
next_page_token = api_response['data'].pop('nextPageToken', None)
while next_page_token:
api_response = self.execute(
'POST', 'search/config/page', body_params={'pageToken': next_page_token})
'POST', 'search/config/page', body_params={'limit':1000,'pageToken': next_page_token, 'withResourceJson':'true'})
if 'items' in api_response:
result.extend(api_response['items'])
next_page_token = api_response.pop('nextPageToken', None)
Expand All @@ -512,7 +512,7 @@ def search_event_read(self, search_params, subsearch=None):
next_page_token = api_response['data'].pop('nextPageToken', None)
while next_page_token:
api_response = self.execute(
'POST', 'search/config/page', body_params={'pageToken': next_page_token})
'POST', 'search/config/page', body_params={'limit':1000,'pageToken': next_page_token})
if 'items' in api_response:
result.extend(api_response['items'])
next_page_token = api_response.pop('nextPageToken', None)
Expand All @@ -527,7 +527,7 @@ def search_iam_read(self, search_params):
next_page_token = api_response['data'].pop('nextPageToken', None)
while next_page_token:
api_response = self.execute(
'POST', 'api/v1/permission/page', body_params={'pageToken': next_page_token})
'POST', 'api/v1/permission/page', body_params={'limit':1000,'pageToken': next_page_token, 'withResourceJson':'true'})
if 'items' in api_response:
result.extend(api_response['items'])
next_page_token = api_response.pop('nextPageToken', None)
Expand Down
2 changes: 1 addition & 1 deletion prismacloud/api/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
""" version file """

version = '5.1.5'
version = '5.1.6'

0 comments on commit 667ae7a

Please sign in to comment.