projects

GET /v2/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}

Changed on

Gets an Instance

Request

  • Base URL
    https://run.googleapis.com
  • Auth
    • OAuth 2 and OAuth 2
      Implicithttps://accounts.google.com/o/oauth2/auth
      Scopeshttps://www.googleapis.com/auth/cloud-platform
      Authorization codehttps://accounts.google.com/o/oauth2/auth
      Token URLhttps://accounts.google.com/o/oauth2/token
      Scopeshttps://www.googleapis.com/auth/cloud-platform
    • or OAuth 2 and OAuth 2
      Implicithttps://accounts.google.com/o/oauth2/auth
      Scopeshttps://www.googleapis.com/auth/run
      Authorization codehttps://accounts.google.com/o/oauth2/auth
      Token URLhttps://accounts.google.com/o/oauth2/token
      Scopeshttps://www.googleapis.com/auth/run
    • or OAuth 2 and OAuth 2
      Implicithttps://accounts.google.com/o/oauth2/auth
      Scopeshttps://www.googleapis.com/auth/run.readonly
      Authorization codehttps://accounts.google.com/o/oauth2/auth
      Token URLhttps://accounts.google.com/o/oauth2/token
      Scopeshttps://www.googleapis.com/auth/run.readonly

Path parameters

projectsId, string required
locationsId, string required
instancesId, string required

Query parameters

$.xgafv, '1' | '2'

V1 error format.

access_token, string

OAuth access token.

alt, 'json' | 'media' | 'proto'

Data format for response.

callback, string

JSONP

fields, string

Selector specifying which fields to include in a partial response.

key, string

API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.

oauth_token, string

OAuth 2.0 token for the current user.

prettyPrint, boolean

Returns response with indentations and line breaks.

quotaUser, string

Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

uploadType, string

Legacy upload protocol for media (e.g. "media", "multipart").

upload_protocol, string

Upload protocol for media (e.g. "raw", "multipart").

Response

Successful response

GoogleCloudRunV2Instance required

A Cloud Run Instance represents a single group of containers running in a region.

annotations, object
binaryAuthorization, GoogleCloudRunV2BinaryAuthorization

Settings for Binary Authorization feature.

client, string

Arbitrary identifier for the API client.

clientVersion, string

Arbitrary version identifier for the API client.

conditions, GoogleCloudRunV2Condition[]

Output only. The Conditions of all other associated sub-resources. They contain additional diagnostics information in case the Instance does not reach its Serving state. See comments in reconciling for additional information on reconciliation process in Cloud Run.

containerStatuses, GoogleCloudRunV2ContainerStatus[]

Output only. Status information for each of the specified containers. The status includes the resolved digest for specified images.

containers, GoogleCloudRunV2Container[]

Required. Holds the single container that defines the unit of execution for this Instance.

createTime, string google-datetime

Output only. The creation time.

creator, string

Output only. Email address of the authenticated creator.

defaultUriDisabled, boolean

Optional. Disables public resolution of the default URI of this Instance.

deleteTime, string google-datetime

Output only. The deletion time.

description, string

User-provided description of the Instance. This field currently has a 512-character limit.

encryptionKey, string

A reference to a customer managed encryption key (CMEK) to use to encrypt this container image. For more information, go to https://cloud.google.com/run/docs/securing/using-cmek

encryptionKeyRevocationAction, 'ENCRYPTION_KEY_REVOCATION_ACTION_UNSPECIFIED' | 'PREVENT_NEW' | 'SHUTDOWN'

The action to take if the encryption key is revoked.

encryptionKeyShutdownDuration, string google-duration

If encryption_key_revocation_action is SHUTDOWN, the duration before shutting down all instances. The minimum increment is 1 hour.

etag, string

Optional. A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates.

expireTime, string google-datetime

Output only. For a deleted resource, the time after which it will be permamently deleted.

generation, string int64

Output only. A number that monotonically increases every time the user modifies the desired state. Please note that unlike v1, this is an int64 value. As with most Google APIs, its JSON representation will be a string instead of an integer.

gpuZonalRedundancyDisabled, boolean

Optional. True if GPU zonal redundancy is disabled on this instance.

iapEnabled, boolean

Optional. IAP settings on the Instance.

ingress, 'INGRESS_TRAFFIC_UNSPECIFIED' | 'INGRESS_TRAFFIC_ALL' | 'INGRESS_TRAFFIC_INTERNAL_ONLY' | 'INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER' | 'INGRESS_TRAFFIC_NONE'

Optional. Provides the ingress settings for this Instance. On output, returns the currently observed ingress settings, or INGRESS_TRAFFIC_UNSPECIFIED if no revision is active.

invokerIamDisabled, boolean

Optional. Disables IAM permission check for run.routes.invoke for callers of this Instance. For more information, visit https://cloud.google.com/run/docs/securing/managing-access#invoker_check.

labels, object
lastModifier, string

Output only. Email address of the last authenticated modifier.

launchStage, 'LAUNCH_STAGE_UNSPECIFIED' | 'UNIMPLEMENTED' | 'PRELAUNCH' | 'EARLY_ACCESS' | 'ALPHA' | 'BETA' | 'GA' | 'DEPRECATED'

The launch stage as defined by Google Cloud Platform Launch Stages. Cloud Run supports ALPHA, BETA, and GA. If no value is specified, GA is assumed. Set the launch stage to a preview stage on input to allow use of preview features in that stage. On read (or output), describes whether the resource uses preview features. For example, if ALPHA is provided as input, but only BETA and GA-level features are used, this field will be BETA on output.

logUri, string

Output only. The Google Console URI to obtain logs for the Instance.

name, string

The fully qualified name of this Instance. In CreateInstanceRequest, this field is ignored, and instead composed from CreateInstanceRequest.parent and CreateInstanceRequest.instance_id.

nodeSelector, GoogleCloudRunV2NodeSelector

Hardware constraints configuration.

observedGeneration, string int64

Output only. The generation of this Instance currently serving traffic. See comments in reconciling for additional information on reconciliation process in Cloud Run. Please note that unlike v1, this is an int64 value. As with most Google APIs, its JSON representation will be a string instead of an integer.

reconciling, boolean

Output only. Returns true if the Instance is currently being acted upon by the system to bring it into the desired state. When a new Instance is created, or an existing one is updated, Cloud Run will asynchronously perform all necessary steps to bring the Instance to the desired serving state. This process is called reconciliation. While reconciliation is in process, observed_generation will have a transient value that might mismatch the intended state. Once reconciliation is over (and this field is false), there are two possible outcomes: reconciliation succeeded and the serving state matches the Instance, or there was an error, and reconciliation failed. This state can be found in terminal_condition.state.

restartPolicy, 'RESTART_POLICY_UNSPECIFIED' | 'ALWAYS' | 'ON_FAILURE' | 'NEVER'

Optional. Restart policy for the Instance.

sandboxes, GoogleCloudRunV2SandboxConfiguration

Configuration for sandboxes.

satisfiesPzs, boolean

Output only. Reserved for future use.

serviceAccount, string
sshEnabled, boolean

Optional. Enables SSH access to the Instance.

terminalCondition, GoogleCloudRunV2Condition

Defines a status condition for a resource.

uid, string

Output only. Server assigned unique identifier for the trigger. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.

updateTime, string google-datetime

Output only. The last-modified time.

urls, string[]

Output only. All URLs serving traffic for this Instance.

volumes, GoogleCloudRunV2Volume[]

A list of Volumes to make available to containers.

vpcAccess, GoogleCloudRunV2VpcAccess

VPC Access settings. For more information on sending traffic to a VPC network, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.

Changes

    • info

      the security scope https://www.googleapis.com/auth/cloud-platform was added to the endpoint's security scheme Oauth2

    • info

      the security scope https://www.googleapis.com/auth/cloud-platform was added to the endpoint's security scheme Oauth2c

    • info

      the security scope https://www.googleapis.com/auth/run.readonly was removed from the endpoint's security scheme Oauth2

    1 more change in this revision