v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1458293303.1 KB

Adds a host key to the server that's specified by the <code>ServerId</code> parameter.

post/#X-Amz-Target=TransferService.ImportHostKey

Headers

X-Amz-Target'TransferService.ImportHostKey' required

Request body

ServerIdstring required

The identifier of the server that contains the host key that you are importing.

HostKeyBodystring password required
<p>The private key portion of an SSH key pair.</p> <p>Transfer Family accepts RSA, ECDSA, and ED25519 keys.</p>
Descriptionstring

The text description that identifies this host key.

Response

Success

ServerIdstring required

Returns the server identifier that contains the imported key.

HostKeyIdstring required

Returns the host key identifier for the imported key.