getNetwork

Get a network within GCE from its name.

Example Usage

data "google_compute_network" "my-network" {
name = "default-us-east1"
}

Return

A collection of values returned by getNetwork.

Parameters

argument

A collection of arguments for invoking getNetwork.


suspend fun getNetwork(name: String, project: String? = null): GetNetworkResult

Return

A collection of values returned by getNetwork.

Parameters

name

The name of the network.

project

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

See also


suspend fun getNetwork(argument: suspend GetNetworkPlainArgsBuilder.() -> Unit): GetNetworkResult

Return

A collection of values returned by getNetwork.

Parameters

argument

Builder for com.pulumi.gcp.compute.kotlin.inputs.GetNetworkPlainArgs.

See also