v1

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

Creates an Instance.

post/v2/{+parent}/instances

Path parameters

parentstring required

Required. The location and project in which this Instance should be created.

Query parameters

instanceIdstring

Optional. The unique identifier for the Instance. It must begin with letter, and cannot end with hyphen; must contain fewer than 50 characters. The name of the instance becomes {parent}/instances/{instance_id}. If not provided, the server will generate a unique instance_id.

validateOnlyboolean

Optional. Indicates that the request should be validated and default values populated, without persisting the request or creating any resources.

Request body

defaultUriDisabledboolean

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

uidstring

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.

expireTimestring google-datetime

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

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

Optional. Restart policy for the Instance.

createTimestring google-datetime

Output only. The creation time.

deleteTimestring google-datetime

Output only. The deletion time.

labelsobject
updateTimestring google-datetime

Output only. The last-modified time.

descriptionstring

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

clientstring

Arbitrary identifier for the API client.

observedGenerationstring 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.

reconcilingboolean

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.

encryptionKeystring

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

urlsstring[]

Output only. All URLs serving traffic for this Instance.

gpuZonalRedundancyDisabledboolean

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

creatorstring

Output only. Email address of the authenticated creator.

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.

encryptionKeyShutdownDurationstring google-duration

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

namestring

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

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

The action to take if the encryption key is revoked.

satisfiesPzsboolean

Output only. Reserved for future use.

iapEnabledboolean

Optional. IAP settings on the Instance.

generationstring 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.

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.

etagstring

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

logUristring

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

serviceAccountstring
invokerIamDisabledboolean

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.

lastModifierstring

Output only. Email address of the last authenticated modifier.

annotationsobject
clientVersionstring

Arbitrary version identifier for the API client.

Response

Successful response