SDK reference / Models / Compute

SshKey

Kind: class

Namespace: Egulu.Sdk.Models.Compute

A saved SSH public key (imported, or generated by the platform whose private key was shown once and is never stored). Weak keys are refused:ssh-dss, and RSA under 3072 bits. A VM that names the key gets the key line at creation; later changes to the key (an expiry, a delete)do not reach VMs that already have it, because the key line is copied into the VM (the response says so on delete).

Properties

NameTypeJSON nameDescription
AnnotationsModels.Compute.SshKey_annotations?annotationsAt most 256 KiB in all; never policy input.
Bitsint?bitsThe size of the key in bits (the modulus of an RSA key, the curve of an ECDSA key, 256 for ed25519).
Commentstring?commentThe key's comment: the one given, or the one at the end of the key line; may be empty. At most 128 characters.
CreateTimeDateTimeOffset?createTimeThe createTime property
DeleteTimeDateTimeOffset?deleteTimeThe deleteTime property
DisplayNamestring?displayNameUp to 63 characters.
Etagstring?etag"{generation}"; send it back in If-Match.
ExpireTimeDateTimeOffset?expireTimeAfter this time the key cannot be named by a new VM or template. VMs that already have it keep it. At most 10 years ahead.
Expiredbool?expiredTrue once `expireTime` has passed.
Fingerprintstring?fingerprint`SHA256:` and the unpadded base64 digest of the key, as `ssh-keygen -l` and the guest's auth log print it.
KeyTypestring?keyTypeThe key type of the line, for example `ssh-ed25519`.
LabelsModels.Compute.SshKey_labels?labelsAt most 64.
Namestring?nameThe resource name, for example projects/p/locations/l/instances/i.
OriginModels.Compute.SshKey_origin?originIMPORTED for a key a person brought, GENERATED for one this API made (its private key was returned once, in the generate answer, and was not kept).
PublicKeystring?publicKeyOne OpenSSH public key line (`ssh-ed25519`, `ecdsa-sha2-nistp256|384|521`, `ssh-rsa` of 3072 bits or more, or an `sk-` type). A private key is refused.
PurgeTimeDateTimeOffset?purgeTimeThe purgeTime property
Reconcilingbool?reconcilingTrue while the platform works toward the spec.
Uidstring?uidUUIDv7, never reused.
UpdateTimeDateTimeOffset?updateTimeThe updateTime property