Resource: InstanceConfig
A possible configuration for a Cloud Spanner instance. Configurations define the geographic placement of nodes and their replication.
JSON representation | |
---|---|
{
"name": string,
"displayName": string,
"replicas": [
{
object ( |
Fields | |
---|---|
name |
A unique identifier for the instance configuration. Values are of the form |
displayName |
The name of this instance configuration as it appears in UIs. |
replicas[] |
The geographic placement of nodes in this instance configuration and their replication properties. |
ReplicaInfo
JSON representation | |
---|---|
{
"location": string,
"type": enum ( |
Fields | |
---|---|
location |
The location of the serving resources, e.g. "us-central1". |
type |
The type of replica. |
defaultLeaderLocation |
If true, this location is designated as the default leader location where leader replicas are placed. See the region types documentation for more details. |
ReplicaType
Indicates the type of replica. See the replica types documentation for more details.
Enums | |
---|---|
TYPE_UNSPECIFIED |
Not specified. |
READ_WRITE |
sessions.read-write replicas support both reads and writes. These replicas:
|
READ_ONLY |
sessions.read-only replicas only support reads (not writes). sessions.read-only replicas:
|
WITNESS |
Witness replicas don't support reads but do participate in voting to commit writes. Witness replicas:
|
Methods |
|
---|---|
|
Gets information about a particular instance configuration. |
|
Lists the supported instance configurations for a given project. |