Skip to content

/AWS1/CL_TRN=>IMPORTHOSTKEY()

About ImportHostKey

Adds a host key to the server that's specified by the ServerId parameter.

Method Signature

IMPORTING

Required arguments:

IV_SERVERID TYPE /AWS1/TRNSERVERID /AWS1/TRNSERVERID

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

IV_HOSTKEYBODY TYPE /AWS1/TRNHOSTKEY /AWS1/TRNHOSTKEY

The private key portion of an SSH key pair.

Transfer Family accepts RSA, ECDSA, and ED25519 keys.

Optional arguments:

IV_DESCRIPTION TYPE /AWS1/TRNHOSTKEYDESCRIPTION /AWS1/TRNHOSTKEYDESCRIPTION

The text description that identifies this host key.

IT_TAGS TYPE /AWS1/CL_TRNTAG=>TT_TAGS TT_TAGS

Key-value pairs that can be used to group and search for host keys.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_TRNIMPORTHOSTKEYRSP /AWS1/CL_TRNIMPORTHOSTKEYRSP