/mgmt/status/default/SSHTrustedHostStatus GET
Use the HTTP GET method with the
/mgmt/status/default/SSHTrustedHostStatus
resource to view the SSH known host table
on the appliance.
Resource URL
https://host:port/mgmt/status/default/SSHTrustedHostStatus
Where
port is 5554 by default.Request headers
The following header must be sent with the request:
- Authorization
- This header must be sent to perform authentication.
Request body format
None.
Security requirements
The caller must be authenticated as an appliance user with sufficient authority. For more information about security, see Types of user and how they are authenticated and User authorization, credential mapping, and access profiles.
Response status codes
- 200
- Status information retrieved successfully.
- 400
- Invalid data provided.
- 401
- Not authenticated.
- 403
- Not authorized.
Response headers
- Content-Type
- This header is returned with a value of
application/json
.
Response body format
The response is in JSON format. The response includes information about known SSH hosts. Each
object contains the following fields:
- Host
- String.
- Type
- String.
Examples
The following example requests information about known SSH hosts on the appliance.
The following URL is used with the HTTP GET
method:
https://localhost:5554/mgmt/status/default/SSHTrustedHostStatus
The following listing shows an example received
response:
{
"_links": {
"self": {
"href": "/mgmt/status/default/SSHTrustedHostStatus"
},
"doc": {
"href": "/mgmt/docs/status/SSHTrustedHostStatus"
}
},
"SSHTrustedHostStatus": [
{
"Host": "9.20.32.227",
"Type": "ssh-rsa"
},
{
"Host": "9.20.32.231",
"Type": "ecdsa-sha2-nistp256"
},
{
"Host": "9.20.33.218",
"Type": "ecdsa-sha2-nistp256"
},
{
"Host": "9.20.33.238",
"Type": "ecdsa-sha2-nistp256"
},
{
"Host": "9.20.33.238",
"Type": "ssh-rsa"
},
{
"Host": "9.20.33.8",
"Type": "ssh-rsa"
},
{
"Host": "9.20.58.175",
"Type": "ssh-rsa"
},
{
"Host": "9.20.87.170",
"Type": "ssh-rsa"
}
]
}