restore-key
Imports a backup-encryption certificate and private key so encrypted backups can be decrypted and restored. Supports dry-run planning to preview changes before applying them.
Instructions
dbabrain common.cli restore-key: A backup-encryption certificate to import.
Changes or removes something. A command on the emergency-operations list takes confirm: "yes" and a reason in its request, as on the command line.
Request fields (pass them as request):
target: The instance.
sqlcmd: Run it where the SQL Server is: the run-sqlcmd request without its sql - for an instance this machine cannot reach over a driver. Instead of target.
certificate_name: The certificate.
cer_path: The public half.
pvk_path: The private key.
password: The key's password.
dry_run: Plan only: change nothing.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "restore-key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |