diff --git a/prismacloud/api/cspm/_endpoints.py b/prismacloud/api/cspm/_endpoints.py index d7aeda7..32789a3 100644 --- a/prismacloud/api/cspm/_endpoints.py +++ b/prismacloud/api/cspm/_endpoints.py @@ -455,7 +455,7 @@ def integration_delete(self, integration_id): Resource Lists [x] LIST - [ ] CREATE + [X] CREATE [ ] READ [ ] UPDATE [x] DELETE @@ -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 diff --git a/prismacloud/api/cwpp/_credentials.py b/prismacloud/api/cwpp/_credentials.py index 5ba565e..c70ff28 100644 --- a/prismacloud/api/cwpp/_credentials.py +++ b/prismacloud/api/cwpp/_credentials.py @@ -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) ) diff --git a/prismacloud/api/version.py b/prismacloud/api/version.py index 259167a..bde2ac3 100644 --- a/prismacloud/api/version.py +++ b/prismacloud/api/version.py @@ -1 +1 @@ -version = "5.2.18" +version = "5.2.20"