Create on demand cluster compliance scan
POST/v1/spectroclusters/:uid/features/complianceScan/onDemand
Create on demand cluster compliance scan
Request
Path Parameters
uid stringrequired
Header Parameters
ProjectUid string
Scope the request to the specified project uid
- application/json
Body
kubeBench
Cluster compliance scan config for kube bench driver
runScanboolean
kubeHunter
Cluster compliance scan config for kube hunter driver
runScanboolean
sonobuoy
Cluster compliance scan config for sonobuoy driver
runScanboolean
syft
Cluster compliance scan config for syft driver
config
Cluster compliance scan specification
formatstring
Possible values: [cyclonedx-json
, github-json
, spdx-json
, syft-json
]
labelSelectorstring
location
object
Object identity meta
namestring
uidstring
namespacestring
podNamestring
scopestring
Possible values: [cluster
, namespace
, label-selector
, pod
]
runScanboolean
Responses
- 201
Created successfully
Response Headers
AuditUid
string
Audit uid for the request
- application/json
- Schema
- Example (from schema)
Schema
uidstringrequired
{
"uid": "string"
}
Loading...