Class GetNetworks
Inheritance
System.Object
GetNetworks
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.AliCloud.Vpc
Assembly: Pulumi.AliCloud.dll
Syntax
public static class GetNetworks
Methods
View SourceInvokeAsync(GetNetworksArgs, InvokeOptions)
This data source provides VPCs available to the user.
{{% examples %}}
Example Usage
{{% example %}}
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var vpcsDs = Output.Create(AliCloud.Vpc.GetNetworks.InvokeAsync(new AliCloud.Vpc.GetNetworksArgs
{
CidrBlock = "172.16.0.0/12",
NameRegex = "^foo",
Status = "Available",
}));
this.FirstVpcId = vpcsDs.Apply(vpcsDs => vpcsDs.Vpcs[0].Id);
}
[Output("firstVpcId")]
public Output<string> FirstVpcId { get; set; }
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetNetworksResult> InvokeAsync(GetNetworksArgs args = null, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetNetworksArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetNetworksResult> |