You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a customer who is automating serverless vulnerability reporting and they would like to leverage a script like the one we have for hosts. Here is the path to the hosts example. prismacloud-api-python/prismacloud/api/cwpp/_hosts.py
Describe the solution you'd like
Support for serverless vulnerability reporting.
Describe alternatives you've considered
No alternatives at this point
Additional context
Customer is unable to leverage the api to automate vulnerability reporting like they do for hosts and containers.
The text was updated successfully, but these errors were encountered:
Create a new file. File name: _serverless.py. Store this file in prismacloud-api-python/prismacloud/api/cwpp
# Serverless
class ServerlessPrismaCloudAPICWPPMixin:
""" Prisma Cloud Compute Serverless Endpoints Class """
# Get serverless function scan results
def serverless_list_read(self, query_params=None):
result = self.execute_compute('GET', 'api/v1/serverless', query_params=query_params, paginated=True)
return result
# Download serverless function scan results
def serverless_download(self, query_params=None):
result = self.execute_compute('GET', 'api/v1/serverless/download?', query_params=query_params)
return result
# Start serverless function scan
def serverless_start_scan(self):
result = self.execute_compute('POST', 'api/v1/serverless/scan')
return result
# Stop serverless function scan
def serverless_stop_scan(self):
result = self.execute_compute('POST', 'api/v1/serverless/stop')
return result
Is your feature request related to a problem?
I have a customer who is automating serverless vulnerability reporting and they would like to leverage a script like the one we have for hosts. Here is the path to the hosts example. prismacloud-api-python/prismacloud/api/cwpp/_hosts.py
Describe the solution you'd like
Support for serverless vulnerability reporting.
Describe alternatives you've considered
No alternatives at this point
Additional context
Customer is unable to leverage the api to automate vulnerability reporting like they do for hosts and containers.
The text was updated successfully, but these errors were encountered: