Created
October 6, 2019 23:55
-
-
Save ibenrodriguez/46352827a7f19022b1643792ac8852fd to your computer and use it in GitHub Desktop.
hook policy apoctl command
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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