Skip to content

List known hosts

GET
/repositories/{workspace}/{repo_slug}/pipelines_config/ssh/known_hosts

Find repository level known hosts.

workspace
required
string

This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example {workspace UUID}.

repo_slug
required
string

The repository.

The retrieved known hosts.

Media type application/json
Paginated Pipeline Known Hosts

A paged list of known hosts.

object
page

Page number of the current results. This is an optional element that is not provided in all responses.

integer
values

The values of the current page.

Array
0
object
type
required
string
uuid

The UUID identifying the known host.

string
hostname

The hostname of the known host.

string
public_key
object
type
required
string
key_type

The type of the public key.

string
key

The base64 encoded public key.

string
md5_fingerprint

The MD5 fingerprint of the public key.

string
sha256_fingerprint

The SHA-256 fingerprint of the public key.

string
size

Total number of objects in the response. This is an optional element that is not provided in all responses, as it can be expensive to compute.

integer
pagelen

Current number of objects on the existing page. The default value is 10 with 100 being the maximum allowed value. Individual APIs may enforce different values.

integer
next

Link to the next page if it exists. The last page of a collection does not have this value. Use this link to navigate the result set and refrain from constructing your own URLs.

string format: uri
previous

Link to previous page if it exists. A collections first page does not have this value. This is an optional element that is not provided in all responses. Some result sets strictly support forward navigation and never provide previous links. Clients must anticipate that backwards navigation is not always available. Use this link to navigate the result set and refrain from constructing your own URLs.

string format: uri
Example generated
{
"page": 1,
"values": [
{
"type": "example",
"uuid": "example",
"hostname": "example",
"public_key": {
"type": "example",
"key_type": "example",
"key": "example",
"md5_fingerprint": "example",
"sha256_fingerprint": "example"
}
}
],
"size": 1,
"pagelen": 1,
"next": "https://example.com",
"previous": "https://example.com"
}