Resource: Instance
An Instance represents the configuration of a single instance that references a container image and runs to completion.
| JSON representation |
|---|
{ "apiVersion": string, "kind": string, "metadata": { object ( |
| Fields | |
|---|---|
apiVersion |
Optional. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. |
kind |
Optional. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. |
metadata |
Optional. Standard object's metadata. |
spec |
Optional. Specification of the desired behavior of an Instance. |
status |
Output only. Current status of an Instance. |
InstanceSpec
InstanceSpec describes how the Instance will look.
| JSON representation |
|---|
{ "volumes": [ { object ( |
| Fields | |
|---|---|
volumes[] |
Optional. List of volumes that can be mounted by containers belonging to the Instance. |
containers[] |
Optional. List of containers belonging to the Instance. We disallow a number of fields on this Container. |
serviceAccountName |
Optional. Email address of the IAM service account associated with the Instance. The service account represents the identity of the running container, and determines what permissions the Instance has. If not provided, the Instance will use the project's default service account. |
nodeSelector |
Optional. The Node Selector configuration. Map of selector key to a value which matches a node. An object containing a list of |
restartPolicy |
Optional. Restart policy for the Instance. Allowable values are 'Always', 'OnFailure', or 'Never'. |
InstanceStatus
InstanceStatus represents the current state of an Instance.
| JSON representation |
|---|
{
"observedGeneration": integer,
"conditions": [
{
object ( |
| Fields | |
|---|---|
observedGeneration |
Output only. The 'generation' of the Instance that was last processed by the controller. |
conditions[] |
Output only. Conditions communicate information about ongoing/complete reconciliation processes that bring the "spec" inline with the observed state of the world. Instance-specific conditions include:
|
logUri |
Optional. URI where logs for this execution can be found in Cloud Console. |
urls[] |
Output only. All URLs serving traffic for this Instance. |
Methods |
|
|---|---|
|
Create an Instance. |
|
Delete an Instance. |
|
Get an Instance. |
|
List Instances. |
|
Replace an Instance. |
|
Start an Instance which has been stopped. |
|
Stop an Instance that is running. |