POST Alerts Key Rotation Test All
The POST /Alerts/KeyRotation/TestAll method is used to test all SSH The SSH (secure shell) protocol provides for secure connections between computers. It provides several options for authentication, including public key, and protects the communications with strong encryption. key rotation alerts. This method returns HTTP 200 OK on a success with details about the SSH key rotation alert or a response of “NoActionTaken” if no keys match the test criteria entered.
By default, a maximum of 100 alerts will be generated during a test. The maximum value is configurable with the Key Rotation Alert Test Result Limit setting in Keyfactor Command application settings (see Application Settings: Console Tab). If more than 100 alerts are generated, no email messages will be sent and you'll have the opportunity to view the first 100 alerts generated.
If you're using an event handler, the event handler is run and the handler actions taken (PowerShell script run, event log message written) when the test is run. This is true regardless of the setting of the SendAlerts flag.
Table 195: POST Alerts Key Rotation Test All Input Parameters
Parameter |
In |
Description |
---|---|---|
EvaluationDate | Body |
Required. A string indicating the start date/time for the test. The date and time should be given using the ISO 8601 UTC time format YYYY-MM-DDTHH:mm:ss.000Z (e.g. 2023-11-19T16:23:01Z). You can use the date range to simulate running the alerts a month from now instead of today, for example, or put in a broad date range to be sure you pick up some expiring keys for testing purposes. |
PreviousEvaluationDate | Body | Required. A string indicating the end date/time for the test. The date and time should be given using the ISO 8601 UTC time format YYYY-MM-DDTHH:mm:ss.000Z (e.g. 2023-11-19T16:23:01Z). |
SendAlerts | Body | A Boolean indicating whether to send alert emails with the test (true) or not (false). The default is false. |
Table 196: POST Alerts Key Rotation Test All Response Data
Parameter | Description |
---|---|
KeyRotationAlerts |
An object containing alert details resulting from the test. |
AlertBuildResult | A string indicating the outcome of the test (e.g. Success). |


