Update Runtime App-embedded Policy
PUT/api/v32.07/policies/runtime/app-embedded
x-prisma-cloud-target-env: {"permission":"policyRuntimeServerless"}
Updates the runtime policy for app-embedded deployments. All rules in the policy are updated in a single shot.
This endpoint maps to the Add rule button in Defend > Runtime > App-Embedded policy in the Console UI.
cURL Request
The following cURL command overwrites all rules in your current policy with a new policy that has a single rule.
$ curl 'https://<CONSOLE>/api/v<VERSION>/policies/runtime/app-embedded' \
-k \
-X PUT \
-u <USER> \
-H 'Content-Type: application/json' \
-d \
'{
"rules":[
{
"name":"my-rule",
"collections":[
{
"name":"All"
}
],
"processes":{
"effect":"alert"
},
"network":{
"effect":"alert"
},
"dns":{
"effect":"alert"
}
}
]
}'
Note: No response will be returned upon successful execution.
Request
Responses
- 200
- default
OK