Deny a key within a rule
POST/vedsdk/sshrules/rule/key/deny
Denies the key under the rule identified by HostId and Account. Other rules with the same key are not changed.
The decision takes effect only while the rule is in Enforce mode.
A key that is revoked, has expired, or was replaced under this rule by a key rotation cannot be denied: it is already refused, so the request is turned away rather than recorded. A key a rotation is replacing can still be denied until its grace period ends, which ends its access under this rule straight away.
Required scope: sshrules:manage
Request
Responses
- 200
- 400
- 403
- 404
- 409
- 500
The rule denies the key.
HostId, Account or FingerprintSHA256 is missing, or a value is invalid.
The caller does not have Write permission on the SSH authorization profile.
The rule, the key or the CA key does not exist, or the rule does not have this key.
The key is revoked, has expired, or was replaced under this rule by a key rotation.
An unexpected error occurred.