remote-credential-add
Register an OS login credential and its cmd_access for a remote server, supporting password or key authentication plus optional SSH or WinRM access details.
Instructions
dbabrain common.cli remote-credential-add: An OS login to register, and the cmd_access that names it.
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):
server_id (required): The machine.
host: Its address.
server_description: What it is.
username (required): The OS account.
password: Its password - encrypted, never written.
password_ref: Or an existing secret.
auth_type: password | key.
key_file: The key, for key auth.
credential_name: Which login in users.json; default: the instance's own.
role: A label.
account_owner: Who owns the account.
note: Why it exists.
method: ssh | winrm - write the cmd_access too.
platform: windows | linux.
port: The port.
shell: The shell.
ssl: winrm: TLS.
enabled: The cmd_access block's own switch.
replace: Overwrite an existing one.
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": "remote-credential-add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |