Class GetSubnetwork
Inheritance
System.Object
GetSubnetwork
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Gcp.Compute
Assembly: Pulumi.Gcp.dll
Syntax
public static class GetSubnetwork
Methods
View SourceInvokeAsync(GetSubnetworkArgs, InvokeOptions)
Get a subnetwork within GCE from its name and region.
{{% examples %}}
Example Usage
{{% example %}}
using Pulumi;
using Gcp = Pulumi.Gcp;
class MyStack : Stack
{
public MyStack()
{
var my_subnetwork = Output.Create(Gcp.Compute.GetSubnetwork.InvokeAsync(new Gcp.Compute.GetSubnetworkArgs
{
Name = "default-us-east1",
Region = "us-east1",
}));
}
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetSubnetworkResult> InvokeAsync(GetSubnetworkArgs args = null, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetSubnetworkArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetSubnetworkResult> |