v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-138818.9 KB
projects

Signs an SSH public key for a user to authenticate to a virtual machine on Google Compute Engine.

post/v1/{+parent}:signSshPublicKey

Path parameters

parentstring required

Required. The parent for the signing request. Format: projects/{project}/locations/{location}

Request body

serviceAccountstring

Optional. The service account for the instance. If the instance in question does not have a service account, this field should be left empty. If the wrong service account is provided, this operation will return a signed certificate that will not be accepted by the VM.

sshPublicKeystring

Required. The SSH public key to sign.

computeInstancestring

The Compute instance to sign the SSH public key for. Expected format: projects/{project}/zones/{zone}/instances/{numeric_instance_id}

cloudRunResourcestring

Optional. The Cloud Run resource to sign the SSH public key for. Expected formats: - projects/{project}/locations/{location}/services/{service} - projects/{project}/locations/{location}/workerPools/{worker_pool} - projects/{project}/locations/{location}/jobs/{job} - projects/{project}/locations/{location}/instances/{instance}

appEngineInstancestring

The App Engine instance to sign the SSH public key for. Expected format: apps/{app}/services/{service}/versions/{version}/instances/{instance}

Response

Successful response

All 8 operations