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.CloudConnect
Assembly: Pulumi.AliCloud.dll
Syntax
public static class GetNetworks
Methods
View SourceInvokeAsync(GetNetworksArgs, InvokeOptions)
This data source provides Cloud Connect Networks available to the user.
NOTE: Available in 1.59.0+
NOTE: Only the following regions support create Cloud Connect Network. [
cn-shanghai,cn-shanghai-finance-1,cn-hongkong,ap-southeast-1,ap-southeast-2,ap-southeast-3,ap-southeast-5,ap-northeast-1,eu-central-1]
{{% examples %}}
Example Usage
{{% example %}}
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var defaultNetworks = Output.Create(AliCloud.CloudConnect.GetNetworks.InvokeAsync(new AliCloud.CloudConnect.GetNetworksArgs
{
Ids =
{
alicloud_cloud_connect_networks.Default.Id,
},
NameRegex = "^tf-testAcc.*",
}));
var defaultNetwork = new AliCloud.CloudConnect.Network("defaultNetwork", new AliCloud.CloudConnect.NetworkArgs
{
CidrBlock = "192.168.0.0/24",
Description = "tf-testAccCloudConnectNetworkDescription",
IsDefault = true,
});
}
}
{{% /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> |