Skip to content

Commit

Permalink
Merge pull request PaloAltoNetworks#172 from PaloAltoNetworks/feature…
Browse files Browse the repository at this point in the history
…/add-inventoty-v3-support

Feature/add inventoty v3 support
  • Loading branch information
SimOnPanw committed Apr 12, 2024
2 parents d53d685 + a847b31 commit ceda701
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
21 changes: 20 additions & 1 deletion prismacloud/api/cspm/_endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,26 @@ def asset_inventory_list_read(self, query_params=None):
return self.execute('GET', 'v2/inventory', query_params=query_params)

def asset_inventory_list_read_post(self, body_params=None):
return self.execute('POST', 'v2/inventory', body_params=body_params)
return self.execute('POST', 'v2/inventory', body_params=body_params)

"""
Asset (Resources) Inventory V3
[x] LIST
[ ] CREATE
[ ] READ
[ ] UPDATE
[ ] DELETE
Additional:
[x] LIST (v3)
[x] LIST WITH FILTERS(v3)
"""

def asset_inventory_list_read_v3(self, query_params=None):
return self.execute('GET', 'v3/inventory', query_params=query_params)

def asset_inventory_list_read_postv_3(self, body_params=None):
return self.execute('POST', 'v3/inventory', body_params=body_params)

"""
(Assets) Resources
Expand Down
2 changes: 1 addition & 1 deletion prismacloud/api/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = "5.2.15"
version = "5.2.16"

0 comments on commit ceda701

Please sign in to comment.