Class GetZones
Inheritance
System.Object
GetZones
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.MongoDB
Assembly: Pulumi.AliCloud.dll
Syntax
public static class GetZones
Methods
View SourceInvokeAsync(GetZonesArgs, InvokeOptions)
This data source provides availability zones for mongoDB that can be accessed by an Alibaba Cloud account within the region configured in the provider.
NOTE: Available in v1.73.0+.
{{% examples %}}
Example Usage
{{% example %}}
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var zonesIds = Output.Create(AliCloud.MongoDB.GetZones.InvokeAsync());
// Create an mongoDB instance with the first matched zone
var mongodb = new AliCloud.MongoDB.Instance("mongodb", new AliCloud.MongoDB.InstanceArgs
{
ZoneId = zonesIds.Apply(zonesIds => zonesIds.Zones[0].Id),
});
// Other properties...
}
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetZonesResult> InvokeAsync(GetZonesArgs args = null, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetZonesArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetZonesResult> |