Instance(mapping=None, *, ignore_unknown_fields=False, **kwargs)
An Instance is a computing unit that an end customer can connect to. It's the main unit of computing resources in AlloyDB.
Attributes |
|
---|---|
Name | Description |
name |
str
Output only. The name of the instance resource with the format: - projects/{project}/locations/{region}/clusters/{cluster_id}/instances/{instance_id} where the cluster and instance ID segments should satisfy the regex expression [a-z]([a-z0-9-]{0,61}[a-z0-9])? ,
e.g. 1-63 characters of lowercase letters, numbers, and
dashes, starting with a letter, and ending with a letter
or number. For more details see
https://google.aip.dev/122. The prefix of the instance
resource name is the name of the parent resource:
- projects/{project}/locations/{region}/clusters/{cluster_id}
|
display_name |
str
User-settable and human-readable display name for the Instance. |
uid |
str
Output only. The system-generated UID of the resource. The UID is assigned when the resource is created, and it is retained until it is deleted. |
create_time |
google.protobuf.timestamp_pb2.Timestamp
Output only. Create time stamp |
update_time |
google.protobuf.timestamp_pb2.Timestamp
Output only. Update time stamp |
delete_time |
google.protobuf.timestamp_pb2.Timestamp
Output only. Delete time stamp |
labels |
MutableMapping[str, str]
Labels as key value pairs |
state |
google.cloud.alloydb_v1beta.types.Instance.State
Output only. The current serving state of the instance. |
instance_type |
google.cloud.alloydb_v1beta.types.Instance.InstanceType
Required. The type of the instance. Specified at creation time. |
machine_config |
google.cloud.alloydb_v1beta.types.Instance.MachineConfig
Configurations for the machines that host the underlying database engine. |
availability_type |
google.cloud.alloydb_v1beta.types.Instance.AvailabilityType
Availability type of an Instance. If empty, defaults to REGIONAL for primary instances. For read pools, availability_type is always UNSPECIFIED. Instances in the read pools are evenly distributed across available zones within the region (i.e. read pools with more than one node will have a node in at least two zones). |
gce_zone |
str
The Compute Engine zone that the instance should serve from, per https://cloud.google.com/compute/docs/regions-zones This can ONLY be specified for ZONAL instances. If present for a REGIONAL instance, an error will be thrown. If this is absent for a ZONAL instance, instance is created in a random zone with available capacity. |
database_flags |
MutableMapping[str, str]
Database flags. Set at instance level. - They are copied from primary instance on read instance creation. - Read instances can set new or override existing flags that are relevant for reads, e.g. for enabling columnar cache on a read instance. Flags set on read instance may or may not be present on primary. This is a list of "key": "value" pairs. "key": The name of the flag. These flags are passed at instance setup time, so include both server options and system variables for Postgres. Flags are specified with underscores, not hyphens. "value": The value of the flag. Booleans are set to **on** for true and **off** for false. This field must be omitted if the flag doesn't take a value. |
writable_node |
google.cloud.alloydb_v1beta.types.Instance.Node
Output only. This is set for the read-write VM of the PRIMARY instance only. |
nodes |
MutableSequence[google.cloud.alloydb_v1beta.types.Instance.Node]
Output only. List of available read-only VMs in this instance, including the standby for a PRIMARY instance. |
query_insights_config |
google.cloud.alloydb_v1beta.types.Instance.QueryInsightsInstanceConfig
Configuration for query insights. |
read_pool_config |
google.cloud.alloydb_v1beta.types.Instance.ReadPoolConfig
Read pool instance configuration. This is required if the value of instanceType is READ_POOL. |
ip_address |
str
Output only. The IP address for the Instance. This is the connection endpoint for an end-user application. |
public_ip_address |
str
Output only. The public IP addresses for the Instance. This is available ONLY when enable_public_ip is set. This is the connection endpoint for an end-user application. |
reconciling |
bool
Output only. Reconciling (https://google.aip.dev/128#reconciliation). Set to true if the current state of Instance does not match the user's intended state, and the service is actively updating the resource to reconcile them. This can happen due to user-triggered updates or system actions like failover or maintenance. |
etag |
str
For Resource freshness validation (https://google.aip.dev/154) |
annotations |
MutableMapping[str, str]
Annotations to allow client tools to store small amount of arbitrary data. This is distinct from labels. https://google.aip.dev/128 |
update_policy |
google.cloud.alloydb_v1beta.types.Instance.UpdatePolicy
Update policy that will be applied during instance update. This field is not persisted when you update the instance. To use a non-default update policy, you must specify explicitly specify the value in each update request. |
client_connection_config |
google.cloud.alloydb_v1beta.types.Instance.ClientConnectionConfig
Optional. Client connection specific configurations |
satisfies_pzs |
bool
Output only. Reserved for future use. |
psc_instance_config |
google.cloud.alloydb_v1beta.types.Instance.PscInstanceConfig
Optional. The configuration for Private Service Connect (PSC) for the instance. |
network_config |
google.cloud.alloydb_v1beta.types.Instance.InstanceNetworkConfig
Optional. Instance level network configuration. |
outbound_public_ip_addresses |
MutableSequence[str]
Output only. All outbound public IP addresses configured for the instance. |
Classes
AnnotationsEntry
AnnotationsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)
The abstract base class for a message.
Parameters | |
---|---|
Name | Description |
kwargs |
dict
Keys and values corresponding to the fields of the message. |
mapping |
Union[dict,
A dictionary or message to be used to determine the values for this message. |
ignore_unknown_fields |
Optional(bool)
If True, do not raise errors for unknown fields. Only applied if |
AvailabilityType
AvailabilityType(value)
The Availability type of an instance. Potential values:
- ZONAL: The instance serves data from only one zone. Outages in that zone affect instance availability.
- REGIONAL: The instance can serve data from more than one zone in a region (it is highly available).
ClientConnectionConfig
ClientConnectionConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)
Client connection configuration
DatabaseFlagsEntry
DatabaseFlagsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)
The abstract base class for a message.
Parameters | |
---|---|
Name | Description |
kwargs |
dict
Keys and values corresponding to the fields of the message. |
mapping |
Union[dict,
A dictionary or message to be used to determine the values for this message. |
ignore_unknown_fields |
Optional(bool)
If True, do not raise errors for unknown fields. Only applied if |
InstanceNetworkConfig
InstanceNetworkConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)
Metadata related to instance level network configuration.
InstanceType
InstanceType(value)
Type of an Instance
- Read pool of size 1 can only have zonal availability.
- Read pools with node count of 2 or more can have regional
availability (nodes are present in 2 or more zones in a
region).
SECONDARY (3):
SECONDARY instances support read operations
only. SECONDARY instance is a cross-region read
replica
LabelsEntry
LabelsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)
The abstract base class for a message.
Parameters | |
---|---|
Name | Description |
kwargs |
dict
Keys and values corresponding to the fields of the message. |
mapping |
Union[dict,
A dictionary or message to be used to determine the values for this message. |
ignore_unknown_fields |
Optional(bool)
If True, do not raise errors for unknown fields. Only applied if |
MachineConfig
MachineConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)
MachineConfig describes the configuration of a machine.
Node
Node(mapping=None, *, ignore_unknown_fields=False, **kwargs)
Details of a single node in the instance. Nodes in an AlloyDB instance are ephemereal, they can change during update, failover, autohealing and resize operations.
PscInstanceConfig
PscInstanceConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)
PscInstanceConfig contains PSC related configuration at an instance level.
PscInterfaceConfig
PscInterfaceConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)
Configuration for setting up a PSC interface. This information needs to be provided by the customer. PSC interfaces will be created and added to VMs via SLM (adding a network interface will require recreating the VM). For HA instances this will be done via LDTM.
QueryInsightsInstanceConfig
QueryInsightsInstanceConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)
QueryInsights Instance specific configuration.
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
ReadPoolConfig
ReadPoolConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)
Configuration for a read pool instance.
State
State(value)
Instance State
UpdatePolicy
UpdatePolicy(mapping=None, *, ignore_unknown_fields=False, **kwargs)
Policy to be used while updating the instance.