Skip to content

Commit

Permalink
Merge pull request #176 from PaloAltoNetworks/feature/add_resource_li…
Browse files Browse the repository at this point in the history
…st_create

Feature/add resource list create
  • Loading branch information
SimOnPanw authored Jul 3, 2024
2 parents 551dd7a + 33632d5 commit 0918d86
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion prismacloud/api/cspm/_endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ def integration_delete(self, integration_id):
Resource Lists
[x] LIST
[ ] CREATE
[X] CREATE
[ ] READ
[ ] UPDATE
[x] DELETE
Expand All @@ -466,6 +466,9 @@ def resource_list_list_read(self):

def resource_list_delete(self, resource_list_id):
return self.execute('DELETE', 'v1/resource_list/%s' % resource_list_id)

def resource_list_create(self, resource_list_to_add):
return self.execute('POST', 'v1/resource_list', body_params=resource_list_to_add)

"""
Compliance Reports
Expand Down
4 changes: 2 additions & 2 deletions prismacloud/api/cwpp/_credentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ def credential_list_create(self, body):

def credential_list_delete(self, cred):
return self.execute_compute(
'DELETE', '/api/v1/credentials/%s' % urllib.parse.quote(cred)
'DELETE', 'api/v1/credentials/%s' % urllib.parse.quote(cred)
)

def credential_list_usages_read(self, cred):
return self.execute_compute(
'GET', '/api/v1/credentials/%s/usages' % urllib.parse.quote(cred)
'GET', 'api/v1/credentials/%s/usages' % urllib.parse.quote(cred)
)
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.18"
version = "5.2.20"

0 comments on commit 0918d86

Please sign in to comment.