projects

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

post/v1/{+parent}:signSshPublicKey

Request

  • Base URL: https://oslogin.googleapis.com
  • URL: https://oslogin.googleapis.com/v1/{+parent}:signSshPublicKey
  • Auth: OAuth 2 (implicit, authorization URL https://accounts.google.com/o/oauth2/auth, scopes: https://www.googleapis.com/auth/cloud-platform) and OAuth 2 (authorization code, authorization URL https://accounts.google.com/o/oauth2/auth, token URL https://accounts.google.com/o/oauth2/token, scopes: https://www.googleapis.com/auth/cloud-platform)

Path parameters

parentstring required

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

Request body

appEngineInstancestring

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

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}

computeInstancestring

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

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.

Response

Successful response

Changes

    • breaking

      removed the request body

    • breaking

      removed the media type */* for the response with the status