instances
Creates, updates, deletes, gets or lists an instances resource.
Overview
| Name | instances |
| Type | Resource |
| Id | google.run.instances |
Fields
The following fields are returned by SELECT queries:
- get
- list
| Name | Datatype | Description |
|---|---|---|
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. |
annotations | object | |
binaryAuthorization | object | Settings for the Binary Authorization feature. (id: GoogleCloudRunV2BinaryAuthorization) |
client | string | Arbitrary identifier for the API client. |
clientVersion | string | Arbitrary version identifier for the API client. |
conditions | array | 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 | array | Output only. Status information for each of the specified containers. The status includes the resolved digest for specified images. |
containers | array | 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 | string | The action to take if the encryption key is revoked. (ENCRYPTION_KEY_REVOCATION_ACTION_UNSPECIFIED, PREVENT_NEW, SHUTDOWN) |
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 | string | 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. (INGRESS_TRAFFIC_UNSPECIFIED, INGRESS_TRAFFIC_ALL, INGRESS_TRAFFIC_INTERNAL_ONLY, INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER, INGRESS_TRAFFIC_NONE) |
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 | string | 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. (LAUNCH_STAGE_UNSPECIFIED, UNIMPLEMENTED, PRELAUNCH, EARLY_ACCESS, ALPHA, BETA, GA, DEPRECATED) |
logUri | string | Output only. The Google Console URI to obtain logs for the Instance. |
nodeSelector | object | Optional. The node selector for the instance. (id: GoogleCloudRunV2NodeSelector) |
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 | string | Optional. Restart policy for the Instance. (RESTART_POLICY_UNSPECIFIED, ALWAYS, ON_FAILURE, NEVER) |
satisfiesPzs | boolean | Output only. Reserved for future use. |
serviceAccount | string | |
terminalCondition | object | Defines a status condition for a resource. (id: GoogleCloudRunV2Condition) |
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 | array | Output only. All URLs serving traffic for this Instance. |
volumes | array | A list of Volumes to make available to containers. |
vpcAccess | object | Optional. VPC Access configuration to use for this Revision. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc. (id: GoogleCloudRunV2VpcAccess) |
| Name | Datatype | Description |
|---|---|---|
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. |
annotations | object | |
binaryAuthorization | object | Settings for the Binary Authorization feature. (id: GoogleCloudRunV2BinaryAuthorization) |
client | string | Arbitrary identifier for the API client. |
clientVersion | string | Arbitrary version identifier for the API client. |
conditions | array | 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 | array | Output only. Status information for each of the specified containers. The status includes the resolved digest for specified images. |
containers | array | 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 | string | The action to take if the encryption key is revoked. (ENCRYPTION_KEY_REVOCATION_ACTION_UNSPECIFIED, PREVENT_NEW, SHUTDOWN) |
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 | string | 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. (INGRESS_TRAFFIC_UNSPECIFIED, INGRESS_TRAFFIC_ALL, INGRESS_TRAFFIC_INTERNAL_ONLY, INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER, INGRESS_TRAFFIC_NONE) |
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 | string | 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. (LAUNCH_STAGE_UNSPECIFIED, UNIMPLEMENTED, PRELAUNCH, EARLY_ACCESS, ALPHA, BETA, GA, DEPRECATED) |
logUri | string | Output only. The Google Console URI to obtain logs for the Instance. |
nodeSelector | object | Optional. The node selector for the instance. (id: GoogleCloudRunV2NodeSelector) |
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 | string | Optional. Restart policy for the Instance. (RESTART_POLICY_UNSPECIFIED, ALWAYS, ON_FAILURE, NEVER) |
satisfiesPzs | boolean | Output only. Reserved for future use. |
serviceAccount | string | |
terminalCondition | object | Defines a status condition for a resource. (id: GoogleCloudRunV2Condition) |
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 | array | Output only. All URLs serving traffic for this Instance. |
volumes | array | A list of Volumes to make available to containers. |
vpcAccess | object | Optional. VPC Access configuration to use for this Revision. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc. (id: GoogleCloudRunV2VpcAccess) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | projectsId, locationsId, instancesId | Gets an Instance | |
list | select | projectsId, locationsId | pageSize, pageToken, showDeleted | Lists Instances. Results are sorted by creation time, descending. |
create | insert | projectsId, locationsId | validateOnly, instanceId | Creates an Instance. |
patch | update | projectsId, locationsId, instancesId | updateMask, validateOnly, allowMissing | Updates an Instance. |
delete | delete | projectsId, locationsId, instancesId | etag, validateOnly | Deletes an Instance |
stop | exec | projectsId, locationsId, instancesId | Stops an Instance. | |
start | exec | projectsId, locationsId, instancesId | Starts an Instance. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
instancesId | string | |
locationsId | string | |
projectsId | string | |
allowMissing | boolean | |
etag | string | |
instanceId | string | |
pageSize | integer (int32) | |
pageToken | string | |
showDeleted | boolean | |
updateMask | string (google-fieldmask) | |
validateOnly | boolean |
SELECT examples
- get
- list
Gets an Instance
SELECT
name,
annotations,
binaryAuthorization,
client,
clientVersion,
conditions,
containerStatuses,
containers,
createTime,
creator,
defaultUriDisabled,
deleteTime,
description,
encryptionKey,
encryptionKeyRevocationAction,
encryptionKeyShutdownDuration,
etag,
expireTime,
generation,
gpuZonalRedundancyDisabled,
iapEnabled,
ingress,
invokerIamDisabled,
labels,
lastModifier,
launchStage,
logUri,
nodeSelector,
observedGeneration,
reconciling,
restartPolicy,
satisfiesPzs,
serviceAccount,
terminalCondition,
uid,
updateTime,
urls,
volumes,
vpcAccess
FROM google.run.instances
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND instancesId = '{{ instancesId }}' -- required
;
Lists Instances. Results are sorted by creation time, descending.
SELECT
name,
annotations,
binaryAuthorization,
client,
clientVersion,
conditions,
containerStatuses,
containers,
createTime,
creator,
defaultUriDisabled,
deleteTime,
description,
encryptionKey,
encryptionKeyRevocationAction,
encryptionKeyShutdownDuration,
etag,
expireTime,
generation,
gpuZonalRedundancyDisabled,
iapEnabled,
ingress,
invokerIamDisabled,
labels,
lastModifier,
launchStage,
logUri,
nodeSelector,
observedGeneration,
reconciling,
restartPolicy,
satisfiesPzs,
serviceAccount,
terminalCondition,
uid,
updateTime,
urls,
volumes,
vpcAccess
FROM google.run.instances
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
AND showDeleted = '{{ showDeleted }}'
;
INSERT examples
- create
- Manifest
Creates an Instance.
INSERT INTO google.run.instances (
data__ingress,
data__clientVersion,
data__gpuZonalRedundancyDisabled,
data__labels,
data__volumes,
data__client,
data__restartPolicy,
data__encryptionKeyRevocationAction,
data__binaryAuthorization,
data__invokerIamDisabled,
data__annotations,
data__nodeSelector,
data__encryptionKey,
data__iapEnabled,
data__serviceAccount,
data__containers,
data__description,
data__launchStage,
data__etag,
data__name,
data__encryptionKeyShutdownDuration,
data__defaultUriDisabled,
data__vpcAccess,
projectsId,
locationsId,
validateOnly,
instanceId
)
SELECT
'{{ ingress }}',
'{{ clientVersion }}',
{{ gpuZonalRedundancyDisabled }},
'{{ labels }}',
'{{ volumes }}',
'{{ client }}',
'{{ restartPolicy }}',
'{{ encryptionKeyRevocationAction }}',
'{{ binaryAuthorization }}',
{{ invokerIamDisabled }},
'{{ annotations }}',
'{{ nodeSelector }}',
'{{ encryptionKey }}',
{{ iapEnabled }},
'{{ serviceAccount }}',
'{{ containers }}',
'{{ description }}',
'{{ launchStage }}',
'{{ etag }}',
'{{ name }}',
'{{ encryptionKeyShutdownDuration }}',
{{ defaultUriDisabled }},
'{{ vpcAccess }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ validateOnly }}',
'{{ instanceId }}'
RETURNING
name,
done,
error,
metadata,
response
;
# Description fields are for documentation purposes
- name: instances
props:
- name: projectsId
value: "{{ projectsId }}"
description: Required parameter for the instances resource.
- name: locationsId
value: "{{ locationsId }}"
description: Required parameter for the instances resource.
- name: ingress
value: "{{ ingress }}"
description: |
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.
valid_values: ['INGRESS_TRAFFIC_UNSPECIFIED', 'INGRESS_TRAFFIC_ALL', 'INGRESS_TRAFFIC_INTERNAL_ONLY', 'INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER', 'INGRESS_TRAFFIC_NONE']
- name: clientVersion
value: "{{ clientVersion }}"
description: |
Arbitrary version identifier for the API client.
- name: gpuZonalRedundancyDisabled
value: {{ gpuZonalRedundancyDisabled }}
description: |
Optional. True if GPU zonal redundancy is disabled on this instance.
- name: labels
value: "{{ labels }}"
- name: volumes
description: |
A list of Volumes to make available to containers.
value:
- gcs:
mountOptions:
- "{{ mountOptions }}"
readOnly: {{ readOnly }}
bucket: "{{ bucket }}"
nfs:
server: "{{ server }}"
path: "{{ path }}"
readOnly: {{ readOnly }}
cloudSqlInstance:
instances:
- "{{ instances }}"
emptyDir:
sizeLimit: "{{ sizeLimit }}"
medium: "{{ medium }}"
secret:
secret: "{{ secret }}"
items:
- version: "{{ version }}"
mode: {{ mode }}
path: "{{ path }}"
defaultMode: {{ defaultMode }}
name: "{{ name }}"
- name: client
value: "{{ client }}"
description: |
Arbitrary identifier for the API client.
- name: restartPolicy
value: "{{ restartPolicy }}"
description: |
Optional. Restart policy for the Instance.
valid_values: ['RESTART_POLICY_UNSPECIFIED', 'ALWAYS', 'ON_FAILURE', 'NEVER']
- name: encryptionKeyRevocationAction
value: "{{ encryptionKeyRevocationAction }}"
description: |
The action to take if the encryption key is revoked.
valid_values: ['ENCRYPTION_KEY_REVOCATION_ACTION_UNSPECIFIED', 'PREVENT_NEW', 'SHUTDOWN']
- name: binaryAuthorization
description: |
Settings for the Binary Authorization feature.
value:
useDefault: {{ useDefault }}
breakglassJustification: "{{ breakglassJustification }}"
policy: "{{ policy }}"
- name: invokerIamDisabled
value: {{ invokerIamDisabled }}
description: |
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.
- name: annotations
value: "{{ annotations }}"
- name: nodeSelector
description: |
Optional. The node selector for the instance.
value:
accelerator: "{{ accelerator }}"
- name: encryptionKey
value: "{{ encryptionKey }}"
description: |
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
- name: iapEnabled
value: {{ iapEnabled }}
description: |
Optional. IAP settings on the Instance.
- name: serviceAccount
value: "{{ serviceAccount }}"
- name: containers
description: |
Required. Holds the single container that defines the unit of execution for this Instance.
value:
- readinessProbe:
timeoutSeconds: {{ timeoutSeconds }}
grpc:
port: {{ port }}
service: "{{ service }}"
periodSeconds: {{ periodSeconds }}
initialDelaySeconds: {{ initialDelaySeconds }}
failureThreshold: {{ failureThreshold }}
httpGet:
port: {{ port }}
path: "{{ path }}"
httpHeaders:
- name: "{{ name }}"
value: "{{ value }}"
tcpSocket:
port: {{ port }}
ports: "{{ ports }}"
command: "{{ command }}"
env: "{{ env }}"
resources:
startupCpuBoost: {{ startupCpuBoost }}
limits: "{{ limits }}"
cpuIdle: {{ cpuIdle }}
livenessProbe:
timeoutSeconds: {{ timeoutSeconds }}
grpc:
port: {{ port }}
service: "{{ service }}"
periodSeconds: {{ periodSeconds }}
initialDelaySeconds: {{ initialDelaySeconds }}
failureThreshold: {{ failureThreshold }}
httpGet:
port: {{ port }}
path: "{{ path }}"
httpHeaders:
- name: "{{ name }}"
value: "{{ value }}"
tcpSocket:
port: {{ port }}
image: "{{ image }}"
args: "{{ args }}"
sourceCode:
inlinedSource:
sources:
- content: "{{ content }}"
filename: "{{ filename }}"
cloudStorageSource:
generation: "{{ generation }}"
bucket: "{{ bucket }}"
object: "{{ object }}"
name: "{{ name }}"
workingDir: "{{ workingDir }}"
startupProbe:
timeoutSeconds: {{ timeoutSeconds }}
grpc:
port: {{ port }}
service: "{{ service }}"
periodSeconds: {{ periodSeconds }}
initialDelaySeconds: {{ initialDelaySeconds }}
failureThreshold: {{ failureThreshold }}
httpGet:
port: {{ port }}
path: "{{ path }}"
httpHeaders:
- name: "{{ name }}"
value: "{{ value }}"
tcpSocket:
port: {{ port }}
dependsOn: "{{ dependsOn }}"
sandboxLauncher: {{ sandboxLauncher }}
volumeMounts: "{{ volumeMounts }}"
baseImageUri: "{{ baseImageUri }}"
buildInfo:
sourceLocation: "{{ sourceLocation }}"
functionTarget: "{{ functionTarget }}"
- name: description
value: "{{ description }}"
description: |
User-provided description of the Instance. This field currently has a 512-character limit.
- name: launchStage
value: "{{ launchStage }}"
description: |
The launch stage as defined by [Google Cloud Platform Launch Stages](https://cloud.google.com/terms/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.
valid_values: ['LAUNCH_STAGE_UNSPECIFIED', 'UNIMPLEMENTED', 'PRELAUNCH', 'EARLY_ACCESS', 'ALPHA', 'BETA', 'GA', 'DEPRECATED']
- name: etag
value: "{{ etag }}"
description: |
Optional. A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates.
- name: name
value: "{{ name }}"
description: |
The fully qualified name of this Instance. In `CreateInstanceRequest`, this field is ignored, and instead composed from `CreateInstanceRequest.parent` and `CreateInstanceRequest.instance_id`.
- name: encryptionKeyShutdownDuration
value: "{{ encryptionKeyShutdownDuration }}"
description: |
If `encryption_key_revocation_action` is `SHUTDOWN`, the duration before shutting down all instances. The minimum increment is 1 hour.
- name: defaultUriDisabled
value: {{ defaultUriDisabled }}
description: |
Optional. Disables public resolution of the default URI of this Instance.
- name: vpcAccess
description: |
Optional. VPC Access configuration to use for this Revision. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
value:
egress: "{{ egress }}"
networkInterfaces:
- tags: "{{ tags }}"
network: "{{ network }}"
subnetwork: "{{ subnetwork }}"
connector: "{{ connector }}"
- name: validateOnly
value: {{ validateOnly }}
- name: instanceId
value: "{{ instanceId }}"
UPDATE examples
- patch
Updates an Instance.
UPDATE google.run.instances
SET
data__ingress = '{{ ingress }}',
data__clientVersion = '{{ clientVersion }}',
data__gpuZonalRedundancyDisabled = {{ gpuZonalRedundancyDisabled }},
data__labels = '{{ labels }}',
data__volumes = '{{ volumes }}',
data__client = '{{ client }}',
data__restartPolicy = '{{ restartPolicy }}',
data__encryptionKeyRevocationAction = '{{ encryptionKeyRevocationAction }}',
data__binaryAuthorization = '{{ binaryAuthorization }}',
data__invokerIamDisabled = {{ invokerIamDisabled }},
data__annotations = '{{ annotations }}',
data__nodeSelector = '{{ nodeSelector }}',
data__encryptionKey = '{{ encryptionKey }}',
data__iapEnabled = {{ iapEnabled }},
data__serviceAccount = '{{ serviceAccount }}',
data__containers = '{{ containers }}',
data__description = '{{ description }}',
data__launchStage = '{{ launchStage }}',
data__etag = '{{ etag }}',
data__name = '{{ name }}',
data__encryptionKeyShutdownDuration = '{{ encryptionKeyShutdownDuration }}',
data__defaultUriDisabled = {{ defaultUriDisabled }},
data__vpcAccess = '{{ vpcAccess }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND instancesId = '{{ instancesId }}' --required
AND updateMask = '{{ updateMask}}'
AND validateOnly = {{ validateOnly}}
AND allowMissing = {{ allowMissing}}
RETURNING
name,
done,
error,
metadata,
response;
DELETE examples
- delete
Deletes an Instance
DELETE FROM google.run.instances
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND instancesId = '{{ instancesId }}' --required
AND etag = '{{ etag }}'
AND validateOnly = '{{ validateOnly }}'
;
Lifecycle Methods
- stop
- start
Stops an Instance.
EXEC google.run.instances.stop
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@instancesId='{{ instancesId }}' --required
@@json=
'{
"validateOnly": {{ validateOnly }},
"etag": "{{ etag }}"
}'
;
Starts an Instance.
EXEC google.run.instances.start
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@instancesId='{{ instancesId }}' --required
@@json=
'{
"validateOnly": {{ validateOnly }},
"etag": "{{ etag }}"
}'
;