Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/add resource list create #176

Merged
merged 3 commits into from
Jul 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
Loading