Reference Guide

Table Of Contents
Devices
/api/DeviceService/HostKeys
This URL returns the list of known host keys.
GET method for HostKeys
Description This method returns the list of known host keys.
Privilege DEVICE_CONFIGURATION
HTTP response
codes
200
Example
response body
{
"@odata.context": "/api/$metadata#Collection(DeviceService.HostKey)",
"@odata.count": 1,
"value": [
{
"@odata.type": "#DeviceService.HostKey",
"@odata.id": "/api/DeviceService/HostKeys(1)",
"Id": 1,
"Identifier": "1.1.1.1",
"Key":
"AAAAB3NzaC1yc2EAAAADAQABAAABAQDX2iFTkHd9LrRMhi02xTBlA5e/t/BGzwI21orZm/
Bb3OG6VWGmha9X/6X159IUiHgSQxPrwAt9/
GvfPKDFuIsRgoTyPKHZEIOZru1oKBAAV5Sm8xt9o1H8ovn+M/
qNTuSKuAwLLmvBKqb
+eWEGt4TVbq1A4Q0AxHkvJKlAhKYoOS0q6pJjYbi1chuy2wAYtS0JWc8OBG18UiaZq0SGF
mbP7cq4bdys4A49tht239Zo9Dl4MEcPW2qtcMUgg7SknKbTbe7Uc3NtX73qPLa/
BSLMfsd7qGEwkPPtDGReBqTjr
ZhVB065Ecr2kjldvPp3U/cnHYycXMRxD4dIr3DhWB9V",
"Type": "SSH_KNOWN_HOSTS",
"AssociatedDevice": 0
}
]
}
/api/DeviceService/Actions/DeviceService.AddKeys
This URL enables you to manually add the known host keys.
POST method for DeviceService.AddKeys
Description
This method enables you to manually add the known host keys.
Privilege DEVICE_CONFIGURATION
HTTP response
codes
200
Example request
body
{
"HostKeys":[
{
"Id":0,
"Identifier":"10.35.155.224",
"Key":"AAAAB3NzaC1yc2EAAAADAQABAAABAQDX2iFTkHd9LrRMhi02xTBlA5e/t/
598 APIs specific to OpenManage Enterprise