This function sets values for AutoSSL's metadata keys. This allows you to replace certificates that AutoSSL did not issue and toggle other AutoSSL notifications.
Note:
set_autossl_metadata
function. However, this function accepts a single key and value pair as a parameter instead of JSON. Additionally, you can only enter one key and value pair per function call.set_autossl_metadata
function or make multiple calls to this function.key required | string The AutoSSL metadata key that you wish to modify.
Example: key=notify_autossl_expiry |
value required | integer Whether to allow AutoSSL to replace certificates that it did not issue for the or Whether to send a notification for the
Note: For reference, the system preconfigures AutoSSL metadata keys to the following values:
Example: value=1 |
object |
whmapi1 --output=jsonpretty \ set_autossl_metadata_key \ key='notify_autossl_expiry' \ value='1'
{- "metadata": {
- "command": "set_autossl_metadata_key",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}