Class GetInstances
Inheritance
System.Object
GetInstances
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 GetInstances
Methods
View SourceInvokeAsync(GetInstancesArgs, InvokeOptions)
The alicloud.mongodb.getInstances data source provides a collection of MongoDB instances available in Alicloud account.
Filters support regular expression for the instance name, engine or instance type.
{{% examples %}}
Example Usage
{{% example %}}
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var mongo = Output.Create(AliCloud.MongoDB.GetInstances.InvokeAsync(new AliCloud.MongoDB.GetInstancesArgs
{
AvailabilityZone = "eu-central-1a",
InstanceClass = "dds.mongo.mid",
InstanceType = "replicate",
NameRegex = "dds-.+\\d+",
}));
}
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetInstancesResult> InvokeAsync(GetInstancesArgs args = null, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetInstancesArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetInstancesResult> |