Skip to main content

Private Key

SSH Keys

Specification

{
"name": "<string>",
"description": "<string>",
"privateKeyType": "<string>",
"privateKey": "<string>",
"publicKey": "<string>",
"hostname": "<string>"
}

Structure values

Field NameTypeDescriptionRequiredDefault
nameStringPrivate key name. Must be unique within an organization.Required
descriptionStringExpanded, user-generated description of the private key.OptionalNone
privateKeyTypeStringThe type of private key. SSH for SSH Keys.Required
privateKeyStringThe private key to use as an identity for when making outbound SSH connections from a Magpie Cluster.Required
publicKeyStringThe public key corresponding to the private key. This field is for your records only and is not used by Magpie.OptionalNone
hostnameStringThe hostname corresponding to the SSH key. If left blank, the SSH key will be used by default for connecting to all SSH hosts.OptionalNone

Example

SSH key for Github.com

{
"name": "github",
"description": "SSH Key to authenticate with Github to download private libraries",
"privateKeyType": "SSH",
"privateKey": "-----BEGIN RSA PRIVATE KEY----- ...", // Special characters must be escaped to create valid JSON. Recommend defining as part of the Create command instead.
"publicKey": "ssh-rsa AAAAB3NzaC1yc2EAAAAD ...",
"hostname": "github.com"
}

Google Cloud Platform (GCP) Keys

Specification

{
"name": "<string>",
"description": "<string>",
"privateKeyType": "<string>",
"privateKey": "<string>",
}

Structure values

Field NameTypeDescriptionRequiredDefault
nameStringPrivate key name. Must be unique within an organization.Required
descriptionStringExpanded, user-generated description of the private key.OptionalNone
privateKeyTypeStringThe type of private key. SSH for SSH Keys.Required
privateKeyStringThe private key to use as an identity for when making outbound SSH connections from a Magpie Cluster.Required

Example

GCP Key

{
"name": "gcp_prod_lake",
"description": "Google Cloud Platform key with access to Prod Bigquery Table",
"privateKeyType": "GCP",
"privateKey": "{<JSON GCP Key>}", // Special characters must be escaped to create valid JSON. Recommend defining as part of the Create command instead.
}