AddTrustedHost
Trigger this action to define an SSH peer as an SSH known host.
Use the HTTP POST method with the resource
/mgmt/actionqueue/default
, specifying
a request payload with the following format:{
"AddTrustedHost": {
"Host": "IP_address",
"Type": "key_type",
"Key": "key"
}
}
- Host
- String
- Type
- String
- Key
- String
Example
To set the host with the IP address 10.97.111.108 as a trusted host, post the following payload
to https://yourhost:5554/mgmt/actionqueue/default
:
{
"AddTrustedHost": {
"Host": "10.97.111.108",
"Type": "ssh-rsa",
"Key": "AAAAB3NzaC1yc2EAAAABIwAAAIEA1J/99rRvdZmVvkaKvcG2a+PeCm25
p8OJl87SA6mtFxudA2ME6n3lcXEakpQ8KFTpPbBXt+yDKNFR9gNHIfRl
UDho1HAN/a0gEsvrnDY5wKrTcRHrqDc/x0buPzbsEmXi0lud5Pl7+BXQ
VpPbyVujoHINCrx0k/z7Qpkozb4qZd8=="
}
}