get Instance
Get info about a Google Cloud Redis instance.
Example Usage
data "google_redis_instance" "my_instance" {
name = "my-redis-instance"
}
output "instance_memory_size_gb" {
value = data.google_redis_instance.my_instance.memory_size_gb
}
output "instance_connect_mode" {
value = data.google_redis_instance.my_instance.connect_mode
}
output "instance_authorized_network" {
value = data.google_redis_instance.my_instance.authorized_network
}
Content copied to clipboard
Return
A collection of values returned by getInstance.
Parameters
argument
A collection of arguments for invoking getInstance.
suspend fun getInstance(name: String, project: String? = null, region: String? = null): GetInstanceResult
Return
A collection of values returned by getInstance.
Parameters
name
The name of a Redis instance.
project
The project in which the resource belongs. If it is not provided, the provider project is used.
region
The region in which the resource belongs. If it is not provided, the provider region is used.
See also
suspend fun getInstance(argument: suspend GetInstancePlainArgsBuilder.() -> Unit): GetInstanceResult
Return
A collection of values returned by getInstance.
Parameters
argument
Builder for com.pulumi.gcp.redis.kotlin.inputs.GetInstancePlainArgs.