Add Global Scan Settings
POST/api/v31.02/settings/scan
x-prisma-cloud-target-env: {"permission":"systemOperations","saas":true,"self-hosted":true}
x-public: true
Configures the Prisma Cloud Compute scanner settings.
For more information, see Configure Scanning.
cURL Request
Refer to the following example cURL request that configures the following scan intervals:
- Scan registries and serverless functions once per week.
- Scan images, containers, and hosts once per day.
$ curl -k \
-u <USER> \
-H 'Content-Type: application/json' \
-X POST \
-d \
'{
"imagesScanPeriodMs":86400000,
"containersScanPeriodMs": 86400000,
"systemScanPeriodMs": 86400000,
"serverlessScanPeriodMs": 604800000,
"registryScanPeriodMs":604800000
}' \
"https://<CONSOLE>/api/v<VERSION>/settings/scan"
Request
Responses
- 200
- default
OK