getNetwork

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.vmwareengine.VmwareengineFunctions;
import com.pulumi.gcp.vmwareengine.inputs.GetNetworkArgs;
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 myNw = VmwareengineFunctions.getNetwork(GetNetworkArgs.builder()
.name("us-central1-default")
.location("us-central1")
.build());
}
}

Return

A collection of values returned by getNetwork.

Parameters

argument

A collection of arguments for invoking getNetwork.


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

Return

A collection of values returned by getNetwork.

Parameters

location

Location of the resource.

name

Name of the resource.

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.vmwareengine.kotlin.inputs.GetNetworkPlainArgs.

See also