Generate Serverless Bundle for Defender
POST/api/v30.00/defenders/serverless/bundle
x-prisma-cloud-target-env: {"permission":"manageDefenders","saas":true,"self-hosted":true}
x-public: true
Downloads a ZIP file with serverless Defender bundle.
Refer to the following values to assign:
- For
provider
: Useaws
orazure
. - For
runtime
:- If you use
aws
, then you can add the runtime values:python
,python3.6
,python3.7
,python3.8
,python3.9
,nodejs12.x
,nodejs14.x
,dotnet6
,java8
,java11
, orruby2.7
. - If you use
azure
, then you can adddotnet3
ordotnet6
.
- If you use
cURL Request
Refer to the following example cURL command:
$ curl -k \
-u <USER> \
-H 'Content-Type: application/octet-stream' \
-o serverless_bundle.zip \
-X POST \
-d '{"provider": ["aws"], "runtime": ["nodejs14.x"]}' \
"https://<CONSOLE>/api/v<VERSION>/defenders/serverless/bundle"
Request
- application/json
Body
provider common.CloudProvider
Possible values: [aws,azure,gcp,alibaba,oci,others
]
CloudProvider represents the cloud provider
proxyCA string
ProxyCA is the proxy’s CA certificate for Defender to trust.
runtime shared.LambdaRuntimeType
Possible values: [python,python3.6,python3.7,python3.8,python3.9,nodejs12.x,nodejs14.x,dotnetcore2.1,dotnetcore3.1,dotnet6,java8,java11,ruby2.7
]
LambdaRuntimeType represents the runtime type of the serverless function The constants used are taken from: https://docs.aws.amazon.com/lambda/latest/dg/API_CreateFunction.html#SSS-CreateFunction-request-Runtime
Responses
- 200
- default
OK
Loading...