Skip to content

Instantly share code, notes, and snippets.

@ibenrodriguez
Created October 6, 2019 23:55
Show Gist options
  • Save ibenrodriguez/46352827a7f19022b1643792ac8852fd to your computer and use it in GitHub Desktop.
Save ibenrodriguez/46352827a7f19022b1643792ac8852fd to your computer and use it in GitHub Desktop.
hook policy apoctl command
apoctl api update hookpolicy 5d93638b36063 \
--api https://api.console.aporeto.com \
--namespace /namespace \
--data '{
"ID": "5d93638b311ddc0036063",
"annotations": {},
"associatedTags": [],
"certificateAuthority": "",
"clientCertificate": "",
"clientCertificateKey": "",
"continueOnError": false,
"createTime": "2019-10-01T14:32:43.251Z",
"description": "",
"disabled": true,
"endpoint": "https://hooks.zap.com/hooks/catch/1112/o2xq/",
"expirationTime": null,
"fallback": false,
"metadata": [],
"mode": "Both",
"name": "Alert on vulnerability score",
"namespace": "/namespace",
"normalizedTags": [
"$id=5d936381ddc000123k6063",
"$identity=hookpolicy",
"$name=Alert on vulnerability score",
"$namespace=/namespace"
],
"propagate": true,
"propagationHidden": false,
"protected": false,
"subject": [
[
"app=kubeinvaders",
"vuln:cvss=alert-on-6"
]
],
"updateTime": "2019-10-01T15:02:55.237Z"
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment