Skip to main content

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

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

Created successfully

Response Headers

  • AuditUid

    string

    Audit uid for the request

Schema

    uidstringrequired
Loading...