1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. alloydb
  5. getInstance
Google Cloud v8.26.0 published on Thursday, Apr 10, 2025 by Pulumi

gcp.alloydb.getInstance

Explore with Pulumi AI

Google Cloud v8.26.0 published on Thursday, Apr 10, 2025 by Pulumi

Use this data source to get information about the available instance. For more details refer the API docs.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const qa = gcp.alloydb.getInstance({});
Copy
import pulumi
import pulumi_gcp as gcp

qa = gcp.alloydb.get_instance()
Copy
package main

import (
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/alloydb"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := alloydb.LookupInstance(ctx, &alloydb.LookupInstanceArgs{}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;

return await Deployment.RunAsync(() => 
{
    var qa = Gcp.Alloydb.GetInstance.Invoke();

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.alloydb.AlloydbFunctions;
import com.pulumi.gcp.alloydb.inputs.GetInstanceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var qa = AlloydbFunctions.getInstance(GetInstanceArgs.builder()
            .build());

    }
}
Copy
variables:
  qa:
    fn::invoke:
      function: gcp:alloydb:getInstance
      arguments: {}
Copy

Using getInstance

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getInstance(args: GetInstanceArgs, opts?: InvokeOptions): Promise<GetInstanceResult>
function getInstanceOutput(args: GetInstanceOutputArgs, opts?: InvokeOptions): Output<GetInstanceResult>
Copy
def get_instance(cluster_id: Optional[str] = None,
                 instance_id: Optional[str] = None,
                 location: Optional[str] = None,
                 project: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetInstanceResult
def get_instance_output(cluster_id: Optional[pulumi.Input[str]] = None,
                 instance_id: Optional[pulumi.Input[str]] = None,
                 location: Optional[pulumi.Input[str]] = None,
                 project: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetInstanceResult]
Copy
func LookupInstance(ctx *Context, args *LookupInstanceArgs, opts ...InvokeOption) (*LookupInstanceResult, error)
func LookupInstanceOutput(ctx *Context, args *LookupInstanceOutputArgs, opts ...InvokeOption) LookupInstanceResultOutput
Copy

> Note: This function is named LookupInstance in the Go SDK.

public static class GetInstance 
{
    public static Task<GetInstanceResult> InvokeAsync(GetInstanceArgs args, InvokeOptions? opts = null)
    public static Output<GetInstanceResult> Invoke(GetInstanceInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetInstanceResult> getInstance(GetInstanceArgs args, InvokeOptions options)
public static Output<GetInstanceResult> getInstance(GetInstanceArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: gcp:alloydb/getInstance:getInstance
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ClusterId This property is required. string
The ID of the alloydb cluster that the instance belongs to. 'alloydb_cluster_id'
InstanceId This property is required. string
The ID of the alloydb instance. 'alloydb_instance_id'
Location string
(optional) The canonical id of the location.If it is not provided, the provider project is used. For example: us-east1.
Project string
(optional) The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
ClusterId This property is required. string
The ID of the alloydb cluster that the instance belongs to. 'alloydb_cluster_id'
InstanceId This property is required. string
The ID of the alloydb instance. 'alloydb_instance_id'
Location string
(optional) The canonical id of the location.If it is not provided, the provider project is used. For example: us-east1.
Project string
(optional) The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
clusterId This property is required. String
The ID of the alloydb cluster that the instance belongs to. 'alloydb_cluster_id'
instanceId This property is required. String
The ID of the alloydb instance. 'alloydb_instance_id'
location String
(optional) The canonical id of the location.If it is not provided, the provider project is used. For example: us-east1.
project String
(optional) The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
clusterId This property is required. string
The ID of the alloydb cluster that the instance belongs to. 'alloydb_cluster_id'
instanceId This property is required. string
The ID of the alloydb instance. 'alloydb_instance_id'
location string
(optional) The canonical id of the location.If it is not provided, the provider project is used. For example: us-east1.
project string
(optional) The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
cluster_id This property is required. str
The ID of the alloydb cluster that the instance belongs to. 'alloydb_cluster_id'
instance_id This property is required. str
The ID of the alloydb instance. 'alloydb_instance_id'
location str
(optional) The canonical id of the location.If it is not provided, the provider project is used. For example: us-east1.
project str
(optional) The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
clusterId This property is required. String
The ID of the alloydb cluster that the instance belongs to. 'alloydb_cluster_id'
instanceId This property is required. String
The ID of the alloydb instance. 'alloydb_instance_id'
location String
(optional) The canonical id of the location.If it is not provided, the provider project is used. For example: us-east1.
project String
(optional) The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

getInstance Result

The following output properties are available:

Annotations Dictionary<string, string>
AvailabilityType string
ClientConnectionConfigs List<GetInstanceClientConnectionConfig>
Cluster string
ClusterId string
CreateTime string
DatabaseFlags Dictionary<string, string>
DisplayName string
EffectiveAnnotations Dictionary<string, string>
EffectiveLabels Dictionary<string, string>
GceZone string
Id string
The provider-assigned unique ID for this managed resource.
InstanceId string
InstanceType string
IpAddress string
Labels Dictionary<string, string>
MachineConfigs List<GetInstanceMachineConfig>
Name string
NetworkConfigs List<GetInstanceNetworkConfig>
ObservabilityConfigs List<GetInstanceObservabilityConfig>
OutboundPublicIpAddresses List<string>
PscInstanceConfigs List<GetInstancePscInstanceConfig>
PublicIpAddress string
PulumiLabels Dictionary<string, string>
QueryInsightsConfigs List<GetInstanceQueryInsightsConfig>
ReadPoolConfigs List<GetInstanceReadPoolConfig>
Reconciling bool
State string
Uid string
UpdateTime string
Location string
Project string
Annotations map[string]string
AvailabilityType string
ClientConnectionConfigs []GetInstanceClientConnectionConfig
Cluster string
ClusterId string
CreateTime string
DatabaseFlags map[string]string
DisplayName string
EffectiveAnnotations map[string]string
EffectiveLabels map[string]string
GceZone string
Id string
The provider-assigned unique ID for this managed resource.
InstanceId string
InstanceType string
IpAddress string
Labels map[string]string
MachineConfigs []GetInstanceMachineConfig
Name string
NetworkConfigs []GetInstanceNetworkConfig
ObservabilityConfigs []GetInstanceObservabilityConfig
OutboundPublicIpAddresses []string
PscInstanceConfigs []GetInstancePscInstanceConfig
PublicIpAddress string
PulumiLabels map[string]string
QueryInsightsConfigs []GetInstanceQueryInsightsConfig
ReadPoolConfigs []GetInstanceReadPoolConfig
Reconciling bool
State string
Uid string
UpdateTime string
Location string
Project string
annotations Map<String,String>
availabilityType String
clientConnectionConfigs List<GetInstanceClientConnectionConfig>
cluster String
clusterId String
createTime String
databaseFlags Map<String,String>
displayName String
effectiveAnnotations Map<String,String>
effectiveLabels Map<String,String>
gceZone String
id String
The provider-assigned unique ID for this managed resource.
instanceId String
instanceType String
ipAddress String
labels Map<String,String>
machineConfigs List<GetInstanceMachineConfig>
name String
networkConfigs List<GetInstanceNetworkConfig>
observabilityConfigs List<GetInstanceObservabilityConfig>
outboundPublicIpAddresses List<String>
pscInstanceConfigs List<GetInstancePscInstanceConfig>
publicIpAddress String
pulumiLabels Map<String,String>
queryInsightsConfigs List<GetInstanceQueryInsightsConfig>
readPoolConfigs List<GetInstanceReadPoolConfig>
reconciling Boolean
state String
uid String
updateTime String
location String
project String
annotations Mapping[str, str]
availability_type str
client_connection_configs Sequence[GetInstanceClientConnectionConfig]
cluster str
cluster_id str
create_time str
database_flags Mapping[str, str]
display_name str
effective_annotations Mapping[str, str]
effective_labels Mapping[str, str]
gce_zone str
id str
The provider-assigned unique ID for this managed resource.
instance_id str
instance_type str
ip_address str
labels Mapping[str, str]
machine_configs Sequence[GetInstanceMachineConfig]
name str
network_configs Sequence[GetInstanceNetworkConfig]
observability_configs Sequence[GetInstanceObservabilityConfig]
outbound_public_ip_addresses Sequence[str]
psc_instance_configs Sequence[GetInstancePscInstanceConfig]
public_ip_address str
pulumi_labels Mapping[str, str]
query_insights_configs Sequence[GetInstanceQueryInsightsConfig]
read_pool_configs Sequence[GetInstanceReadPoolConfig]
reconciling bool
state str
uid str
update_time str
location str
project str

Supporting Types

GetInstanceClientConnectionConfig

RequireConnectors This property is required. bool
Configuration to enforce connectors only (ex: AuthProxy) connections to the database.
SslConfigs This property is required. List<GetInstanceClientConnectionConfigSslConfig>
SSL config option for this instance.
RequireConnectors This property is required. bool
Configuration to enforce connectors only (ex: AuthProxy) connections to the database.
SslConfigs This property is required. []GetInstanceClientConnectionConfigSslConfig
SSL config option for this instance.
requireConnectors This property is required. Boolean
Configuration to enforce connectors only (ex: AuthProxy) connections to the database.
sslConfigs This property is required. List<GetInstanceClientConnectionConfigSslConfig>
SSL config option for this instance.
requireConnectors This property is required. boolean
Configuration to enforce connectors only (ex: AuthProxy) connections to the database.
sslConfigs This property is required. GetInstanceClientConnectionConfigSslConfig[]
SSL config option for this instance.
require_connectors This property is required. bool
Configuration to enforce connectors only (ex: AuthProxy) connections to the database.
ssl_configs This property is required. Sequence[GetInstanceClientConnectionConfigSslConfig]
SSL config option for this instance.
requireConnectors This property is required. Boolean
Configuration to enforce connectors only (ex: AuthProxy) connections to the database.
sslConfigs This property is required. List<Property Map>
SSL config option for this instance.

GetInstanceClientConnectionConfigSslConfig

SslMode This property is required. string
SSL mode. Specifies client-server SSL/TLS connection behavior. Possible values: ["ENCRYPTED_ONLY", "ALLOW_UNENCRYPTED_AND_ENCRYPTED"]
SslMode This property is required. string
SSL mode. Specifies client-server SSL/TLS connection behavior. Possible values: ["ENCRYPTED_ONLY", "ALLOW_UNENCRYPTED_AND_ENCRYPTED"]
sslMode This property is required. String
SSL mode. Specifies client-server SSL/TLS connection behavior. Possible values: ["ENCRYPTED_ONLY", "ALLOW_UNENCRYPTED_AND_ENCRYPTED"]
sslMode This property is required. string
SSL mode. Specifies client-server SSL/TLS connection behavior. Possible values: ["ENCRYPTED_ONLY", "ALLOW_UNENCRYPTED_AND_ENCRYPTED"]
ssl_mode This property is required. str
SSL mode. Specifies client-server SSL/TLS connection behavior. Possible values: ["ENCRYPTED_ONLY", "ALLOW_UNENCRYPTED_AND_ENCRYPTED"]
sslMode This property is required. String
SSL mode. Specifies client-server SSL/TLS connection behavior. Possible values: ["ENCRYPTED_ONLY", "ALLOW_UNENCRYPTED_AND_ENCRYPTED"]

GetInstanceMachineConfig

CpuCount This property is required. int
The number of CPU's in the VM instance.
CpuCount This property is required. int
The number of CPU's in the VM instance.
cpuCount This property is required. Integer
The number of CPU's in the VM instance.
cpuCount This property is required. number
The number of CPU's in the VM instance.
cpu_count This property is required. int
The number of CPU's in the VM instance.
cpuCount This property is required. Number
The number of CPU's in the VM instance.

GetInstanceNetworkConfig

AuthorizedExternalNetworks This property is required. List<GetInstanceNetworkConfigAuthorizedExternalNetwork>
A list of external networks authorized to access this instance. This field is only allowed to be set when 'enable_public_ip' is set to true.
EnableOutboundPublicIp This property is required. bool
Enabling outbound public ip for the instance.
EnablePublicIp This property is required. bool
Enabling public ip for the instance. If a user wishes to disable this, please also clear the list of the authorized external networks set on the same instance.
AuthorizedExternalNetworks This property is required. []GetInstanceNetworkConfigAuthorizedExternalNetwork
A list of external networks authorized to access this instance. This field is only allowed to be set when 'enable_public_ip' is set to true.
EnableOutboundPublicIp This property is required. bool
Enabling outbound public ip for the instance.
EnablePublicIp This property is required. bool
Enabling public ip for the instance. If a user wishes to disable this, please also clear the list of the authorized external networks set on the same instance.
authorizedExternalNetworks This property is required. List<GetInstanceNetworkConfigAuthorizedExternalNetwork>
A list of external networks authorized to access this instance. This field is only allowed to be set when 'enable_public_ip' is set to true.
enableOutboundPublicIp This property is required. Boolean
Enabling outbound public ip for the instance.
enablePublicIp This property is required. Boolean
Enabling public ip for the instance. If a user wishes to disable this, please also clear the list of the authorized external networks set on the same instance.
authorizedExternalNetworks This property is required. GetInstanceNetworkConfigAuthorizedExternalNetwork[]
A list of external networks authorized to access this instance. This field is only allowed to be set when 'enable_public_ip' is set to true.
enableOutboundPublicIp This property is required. boolean
Enabling outbound public ip for the instance.
enablePublicIp This property is required. boolean
Enabling public ip for the instance. If a user wishes to disable this, please also clear the list of the authorized external networks set on the same instance.
authorized_external_networks This property is required. Sequence[GetInstanceNetworkConfigAuthorizedExternalNetwork]
A list of external networks authorized to access this instance. This field is only allowed to be set when 'enable_public_ip' is set to true.
enable_outbound_public_ip This property is required. bool
Enabling outbound public ip for the instance.
enable_public_ip This property is required. bool
Enabling public ip for the instance. If a user wishes to disable this, please also clear the list of the authorized external networks set on the same instance.
authorizedExternalNetworks This property is required. List<Property Map>
A list of external networks authorized to access this instance. This field is only allowed to be set when 'enable_public_ip' is set to true.
enableOutboundPublicIp This property is required. Boolean
Enabling outbound public ip for the instance.
enablePublicIp This property is required. Boolean
Enabling public ip for the instance. If a user wishes to disable this, please also clear the list of the authorized external networks set on the same instance.

GetInstanceNetworkConfigAuthorizedExternalNetwork

CidrRange This property is required. string
CIDR range for one authorized network of the instance.
CidrRange This property is required. string
CIDR range for one authorized network of the instance.
cidrRange This property is required. String
CIDR range for one authorized network of the instance.
cidrRange This property is required. string
CIDR range for one authorized network of the instance.
cidr_range This property is required. str
CIDR range for one authorized network of the instance.
cidrRange This property is required. String
CIDR range for one authorized network of the instance.

GetInstanceObservabilityConfig

Enabled This property is required. bool
Observability feature status for an instance.
MaxQueryStringLength This property is required. int
Query string length. The default value is 10240. Any integer between 1024 and 100000 is considered valid.
PreserveComments This property is required. bool
Preserve comments in the query string.
QueryPlansPerMinute This property is required. int
Number of query execution plans captured by Insights per minute for all queries combined. The default value is 5. Any integer between 0 and 200 is considered valid.
RecordApplicationTags This property is required. bool
Record application tags for an instance. This flag is turned "on" by default.
TrackActiveQueries This property is required. bool
Track actively running queries. If not set, default value is "off".
TrackWaitEventTypes This property is required. bool
Record wait event types during query execution for an instance.
TrackWaitEvents This property is required. bool
Record wait events during query execution for an instance.
Enabled This property is required. bool
Observability feature status for an instance.
MaxQueryStringLength This property is required. int
Query string length. The default value is 10240. Any integer between 1024 and 100000 is considered valid.
PreserveComments This property is required. bool
Preserve comments in the query string.
QueryPlansPerMinute This property is required. int
Number of query execution plans captured by Insights per minute for all queries combined. The default value is 5. Any integer between 0 and 200 is considered valid.
RecordApplicationTags This property is required. bool
Record application tags for an instance. This flag is turned "on" by default.
TrackActiveQueries This property is required. bool
Track actively running queries. If not set, default value is "off".
TrackWaitEventTypes This property is required. bool
Record wait event types during query execution for an instance.
TrackWaitEvents This property is required. bool
Record wait events during query execution for an instance.
enabled This property is required. Boolean
Observability feature status for an instance.
maxQueryStringLength This property is required. Integer
Query string length. The default value is 10240. Any integer between 1024 and 100000 is considered valid.
preserveComments This property is required. Boolean
Preserve comments in the query string.
queryPlansPerMinute This property is required. Integer
Number of query execution plans captured by Insights per minute for all queries combined. The default value is 5. Any integer between 0 and 200 is considered valid.
recordApplicationTags This property is required. Boolean
Record application tags for an instance. This flag is turned "on" by default.
trackActiveQueries This property is required. Boolean
Track actively running queries. If not set, default value is "off".
trackWaitEventTypes This property is required. Boolean
Record wait event types during query execution for an instance.
trackWaitEvents This property is required. Boolean
Record wait events during query execution for an instance.
enabled This property is required. boolean
Observability feature status for an instance.
maxQueryStringLength This property is required. number
Query string length. The default value is 10240. Any integer between 1024 and 100000 is considered valid.
preserveComments This property is required. boolean
Preserve comments in the query string.
queryPlansPerMinute This property is required. number
Number of query execution plans captured by Insights per minute for all queries combined. The default value is 5. Any integer between 0 and 200 is considered valid.
recordApplicationTags This property is required. boolean
Record application tags for an instance. This flag is turned "on" by default.
trackActiveQueries This property is required. boolean
Track actively running queries. If not set, default value is "off".
trackWaitEventTypes This property is required. boolean
Record wait event types during query execution for an instance.
trackWaitEvents This property is required. boolean
Record wait events during query execution for an instance.
enabled This property is required. bool
Observability feature status for an instance.
max_query_string_length This property is required. int
Query string length. The default value is 10240. Any integer between 1024 and 100000 is considered valid.
preserve_comments This property is required. bool
Preserve comments in the query string.
query_plans_per_minute This property is required. int
Number of query execution plans captured by Insights per minute for all queries combined. The default value is 5. Any integer between 0 and 200 is considered valid.
record_application_tags This property is required. bool
Record application tags for an instance. This flag is turned "on" by default.
track_active_queries This property is required. bool
Track actively running queries. If not set, default value is "off".
track_wait_event_types This property is required. bool
Record wait event types during query execution for an instance.
track_wait_events This property is required. bool
Record wait events during query execution for an instance.
enabled This property is required. Boolean
Observability feature status for an instance.
maxQueryStringLength This property is required. Number
Query string length. The default value is 10240. Any integer between 1024 and 100000 is considered valid.
preserveComments This property is required. Boolean
Preserve comments in the query string.
queryPlansPerMinute This property is required. Number
Number of query execution plans captured by Insights per minute for all queries combined. The default value is 5. Any integer between 0 and 200 is considered valid.
recordApplicationTags This property is required. Boolean
Record application tags for an instance. This flag is turned "on" by default.
trackActiveQueries This property is required. Boolean
Track actively running queries. If not set, default value is "off".
trackWaitEventTypes This property is required. Boolean
Record wait event types during query execution for an instance.
trackWaitEvents This property is required. Boolean
Record wait events during query execution for an instance.

GetInstancePscInstanceConfig

AllowedConsumerProjects This property is required. List<string>
List of consumer projects that are allowed to create PSC endpoints to service-attachments to this instance. These should be specified as project numbers only.
PscDnsName This property is required. string
The DNS name of the instance for PSC connectivity. Name convention: ...alloydb-psc.goog
PscInterfaceConfigs This property is required. List<GetInstancePscInstanceConfigPscInterfaceConfig>
Configurations for setting up PSC interfaces attached to the instance which are used for outbound connectivity. Currently, AlloyDB supports only 0 or 1 PSC interface.
ServiceAttachmentLink This property is required. string
The service attachment created when Private Service Connect (PSC) is enabled for the instance. The name of the resource will be in the format of 'projects//regions//serviceAttachments/'
AllowedConsumerProjects This property is required. []string
List of consumer projects that are allowed to create PSC endpoints to service-attachments to this instance. These should be specified as project numbers only.
PscDnsName This property is required. string
The DNS name of the instance for PSC connectivity. Name convention: ...alloydb-psc.goog
PscInterfaceConfigs This property is required. []GetInstancePscInstanceConfigPscInterfaceConfig
Configurations for setting up PSC interfaces attached to the instance which are used for outbound connectivity. Currently, AlloyDB supports only 0 or 1 PSC interface.
ServiceAttachmentLink This property is required. string
The service attachment created when Private Service Connect (PSC) is enabled for the instance. The name of the resource will be in the format of 'projects//regions//serviceAttachments/'
allowedConsumerProjects This property is required. List<String>
List of consumer projects that are allowed to create PSC endpoints to service-attachments to this instance. These should be specified as project numbers only.
pscDnsName This property is required. String
The DNS name of the instance for PSC connectivity. Name convention: ...alloydb-psc.goog
pscInterfaceConfigs This property is required. List<GetInstancePscInstanceConfigPscInterfaceConfig>
Configurations for setting up PSC interfaces attached to the instance which are used for outbound connectivity. Currently, AlloyDB supports only 0 or 1 PSC interface.
serviceAttachmentLink This property is required. String
The service attachment created when Private Service Connect (PSC) is enabled for the instance. The name of the resource will be in the format of 'projects//regions//serviceAttachments/'
allowedConsumerProjects This property is required. string[]
List of consumer projects that are allowed to create PSC endpoints to service-attachments to this instance. These should be specified as project numbers only.
pscDnsName This property is required. string
The DNS name of the instance for PSC connectivity. Name convention: ...alloydb-psc.goog
pscInterfaceConfigs This property is required. GetInstancePscInstanceConfigPscInterfaceConfig[]
Configurations for setting up PSC interfaces attached to the instance which are used for outbound connectivity. Currently, AlloyDB supports only 0 or 1 PSC interface.
serviceAttachmentLink This property is required. string
The service attachment created when Private Service Connect (PSC) is enabled for the instance. The name of the resource will be in the format of 'projects//regions//serviceAttachments/'
allowed_consumer_projects This property is required. Sequence[str]
List of consumer projects that are allowed to create PSC endpoints to service-attachments to this instance. These should be specified as project numbers only.
psc_dns_name This property is required. str
The DNS name of the instance for PSC connectivity. Name convention: ...alloydb-psc.goog
psc_interface_configs This property is required. Sequence[GetInstancePscInstanceConfigPscInterfaceConfig]
Configurations for setting up PSC interfaces attached to the instance which are used for outbound connectivity. Currently, AlloyDB supports only 0 or 1 PSC interface.
service_attachment_link This property is required. str
The service attachment created when Private Service Connect (PSC) is enabled for the instance. The name of the resource will be in the format of 'projects//regions//serviceAttachments/'
allowedConsumerProjects This property is required. List<String>
List of consumer projects that are allowed to create PSC endpoints to service-attachments to this instance. These should be specified as project numbers only.
pscDnsName This property is required. String
The DNS name of the instance for PSC connectivity. Name convention: ...alloydb-psc.goog
pscInterfaceConfigs This property is required. List<Property Map>
Configurations for setting up PSC interfaces attached to the instance which are used for outbound connectivity. Currently, AlloyDB supports only 0 or 1 PSC interface.
serviceAttachmentLink This property is required. String
The service attachment created when Private Service Connect (PSC) is enabled for the instance. The name of the resource will be in the format of 'projects//regions//serviceAttachments/'

GetInstancePscInstanceConfigPscInterfaceConfig

NetworkAttachmentResource This property is required. string
The network attachment resource created in the consumer project to which the PSC interface will be linked. This is of the format: "projects/${CONSUMER_PROJECT}/regions/${REGION}/networkAttachments/${NETWORK_ATTACHMENT_NAME}". The network attachment must be in the same region as the instance.
NetworkAttachmentResource This property is required. string
The network attachment resource created in the consumer project to which the PSC interface will be linked. This is of the format: "projects/${CONSUMER_PROJECT}/regions/${REGION}/networkAttachments/${NETWORK_ATTACHMENT_NAME}". The network attachment must be in the same region as the instance.
networkAttachmentResource This property is required. String
The network attachment resource created in the consumer project to which the PSC interface will be linked. This is of the format: "projects/${CONSUMER_PROJECT}/regions/${REGION}/networkAttachments/${NETWORK_ATTACHMENT_NAME}". The network attachment must be in the same region as the instance.
networkAttachmentResource This property is required. string
The network attachment resource created in the consumer project to which the PSC interface will be linked. This is of the format: "projects/${CONSUMER_PROJECT}/regions/${REGION}/networkAttachments/${NETWORK_ATTACHMENT_NAME}". The network attachment must be in the same region as the instance.
network_attachment_resource This property is required. str
The network attachment resource created in the consumer project to which the PSC interface will be linked. This is of the format: "projects/${CONSUMER_PROJECT}/regions/${REGION}/networkAttachments/${NETWORK_ATTACHMENT_NAME}". The network attachment must be in the same region as the instance.
networkAttachmentResource This property is required. String
The network attachment resource created in the consumer project to which the PSC interface will be linked. This is of the format: "projects/${CONSUMER_PROJECT}/regions/${REGION}/networkAttachments/${NETWORK_ATTACHMENT_NAME}". The network attachment must be in the same region as the instance.

GetInstanceQueryInsightsConfig

QueryPlansPerMinute This property is required. int
Number of query execution plans captured by Insights per minute for all queries combined. The default value is 5. Any integer between 0 and 20 is considered valid.
QueryStringLength This property is required. int
Query string length. The default value is 1024. Any integer between 256 and 4500 is considered valid.
RecordApplicationTags This property is required. bool
Record application tags for an instance. This flag is turned "on" by default.
RecordClientAddress This property is required. bool
Record client address for an instance. Client address is PII information. This flag is turned "on" by default.
QueryPlansPerMinute This property is required. int
Number of query execution plans captured by Insights per minute for all queries combined. The default value is 5. Any integer between 0 and 20 is considered valid.
QueryStringLength This property is required. int
Query string length. The default value is 1024. Any integer between 256 and 4500 is considered valid.
RecordApplicationTags This property is required. bool
Record application tags for an instance. This flag is turned "on" by default.
RecordClientAddress This property is required. bool
Record client address for an instance. Client address is PII information. This flag is turned "on" by default.
queryPlansPerMinute This property is required. Integer
Number of query execution plans captured by Insights per minute for all queries combined. The default value is 5. Any integer between 0 and 20 is considered valid.
queryStringLength This property is required. Integer
Query string length. The default value is 1024. Any integer between 256 and 4500 is considered valid.
recordApplicationTags This property is required. Boolean
Record application tags for an instance. This flag is turned "on" by default.
recordClientAddress This property is required. Boolean
Record client address for an instance. Client address is PII information. This flag is turned "on" by default.
queryPlansPerMinute This property is required. number
Number of query execution plans captured by Insights per minute for all queries combined. The default value is 5. Any integer between 0 and 20 is considered valid.
queryStringLength This property is required. number
Query string length. The default value is 1024. Any integer between 256 and 4500 is considered valid.
recordApplicationTags This property is required. boolean
Record application tags for an instance. This flag is turned "on" by default.
recordClientAddress This property is required. boolean
Record client address for an instance. Client address is PII information. This flag is turned "on" by default.
query_plans_per_minute This property is required. int
Number of query execution plans captured by Insights per minute for all queries combined. The default value is 5. Any integer between 0 and 20 is considered valid.
query_string_length This property is required. int
Query string length. The default value is 1024. Any integer between 256 and 4500 is considered valid.
record_application_tags This property is required. bool
Record application tags for an instance. This flag is turned "on" by default.
record_client_address This property is required. bool
Record client address for an instance. Client address is PII information. This flag is turned "on" by default.
queryPlansPerMinute This property is required. Number
Number of query execution plans captured by Insights per minute for all queries combined. The default value is 5. Any integer between 0 and 20 is considered valid.
queryStringLength This property is required. Number
Query string length. The default value is 1024. Any integer between 256 and 4500 is considered valid.
recordApplicationTags This property is required. Boolean
Record application tags for an instance. This flag is turned "on" by default.
recordClientAddress This property is required. Boolean
Record client address for an instance. Client address is PII information. This flag is turned "on" by default.

GetInstanceReadPoolConfig

NodeCount This property is required. int
Read capacity, i.e. number of nodes in a read pool instance.
NodeCount This property is required. int
Read capacity, i.e. number of nodes in a read pool instance.
nodeCount This property is required. Integer
Read capacity, i.e. number of nodes in a read pool instance.
nodeCount This property is required. number
Read capacity, i.e. number of nodes in a read pool instance.
node_count This property is required. int
Read capacity, i.e. number of nodes in a read pool instance.
nodeCount This property is required. Number
Read capacity, i.e. number of nodes in a read pool instance.

Package Details

Repository
Google Cloud (GCP) Classic pulumi/pulumi-gcp
License
Apache-2.0
Notes
This Pulumi package is based on the google-beta Terraform Provider.
Google Cloud v8.26.0 published on Thursday, Apr 10, 2025 by Pulumi