Create a known host
Create a repository level known host.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example {workspace UUID}.
The repository.
Request Body required
Section titled “ Request Body required ”The known host to create.
object
The UUID identifying the known host.
The hostname of the known host.
object
The type of the public key.
The base64 encoded public key.
The MD5 fingerprint of the public key.
The SHA-256 fingerprint of the public key.
Example generated
{ "type": "example", "uuid": "example", "hostname": "example", "public_key": { "type": "example", "key_type": "example", "key": "example", "md5_fingerprint": "example", "sha256_fingerprint": "example" }}Responses
Section titled “ Responses ”The known host was created.
object
The UUID identifying the known host.
The hostname of the known host.
object
The type of the public key.
The base64 encoded public key.
The MD5 fingerprint of the public key.
The SHA-256 fingerprint of the public key.
Example generated
{ "type": "example", "uuid": "example", "hostname": "example", "public_key": { "type": "example", "key_type": "example", "key": "example", "md5_fingerprint": "example", "sha256_fingerprint": "example" }}Headers
Section titled “ Headers ”The URL of the newly created pipeline known host.
The account or repository does not exist.
Base type for most resource objects. It defines the common type element that identifies an object’s type. It also identifies the element as Swagger’s discriminator.
object
object
Optional structured data that is endpoint-specific.
object
Example generated
{ "type": "example", "error": { "message": "example", "detail": "example", "data": {} }}A known host with the provided hostname already exists.
Base type for most resource objects. It defines the common type element that identifies an object’s type. It also identifies the element as Swagger’s discriminator.
object
object
Optional structured data that is endpoint-specific.
object
Example generated
{ "type": "example", "error": { "message": "example", "detail": "example", "data": {} }}