You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The orchestrator value is not correct in the example. The right values are: kubernetes, openshift, etc but not container. Also you need to add containerRuntime to the API call otherwise it failed with the error 400 Bad Request. $ curl -k \ -u <USER> \ -H 'Content-Type: application/json' \ -X POST \ -o twistlock-defender-helm.tar.gz \ -d \ '{ "orchestration": "container", "consoleAddr": "servo-vmware71", "namespace": "twistlock" }' \ "https://<CONSOLE>/api/v<VERSION>/defenders/helm/twistlock-defender-helm.tar.gz"
Documentation link
https://pan.dev/compute/api/post-defenders-helm-twistlock-defender-helm-tar-gz/#curl-request
Describe the problem
The orchestrator value is not correct in the example. The right values are: kubernetes, openshift, etc but not container. Also you need to add
containerRuntime
to the API call otherwise it failed with the error 400 Bad Request.$ curl -k \ -u <USER> \ -H 'Content-Type: application/json' \ -X POST \ -o twistlock-defender-helm.tar.gz \ -d \ '{ "orchestration": "container", "consoleAddr": "servo-vmware71", "namespace": "twistlock" }' \ "https://<CONSOLE>/api/v<VERSION>/defenders/helm/twistlock-defender-helm.tar.gz"
Suggested fix
This should be the correct curl example.
curl -k \ -u <USER> \ -H 'Content-Type: application/json' \ -X POST \ -o twistlock-defender-helm.tar.gz \ -d \ '{ "orchestration": "kubernetes", "containerRuntime": "containerd", "consoleAddr": "servo-vmware71", "namespace": "twistlock" }' \ https://<CONSOLE>/api/v<VERSION>/defenders/helm/twistlock-defender-helm.tar.gz"
The text was updated successfully, but these errors were encountered: