Skip to main content

Add SSH authorized key

POST 

/node/:hostname/user/:name/ssh-key

Add an SSH authorized key for a user on the target node.

Request

Path Parameters

    hostname stringrequired

    Possible values: non-empty

    Target agent hostname, reserved routing value (_any, _all), or label selector (key:value).

    name stringrequired

    Possible values: non-empty

    User account name.

Body

required

SSH public key to add.

    key stringrequired

    Full SSH public key line (e.g., "ssh-ed25519 AAAA... user@host").

Responses

Key added.

Schema

    job_id uuid

    The job ID used to process this request.

    results

    object[]

    required

  • Array [

  • hostname stringrequired

    The hostname of the agent.

    status stringrequired

    Possible values: [ok, failed, skipped]

    The status of the operation for this host.

    changed boolean

    Whether the operation modified system state.

    error string

    Error message if the agent failed.

  • ]

Loading...