tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getMongodbZoneConfig
Explore with Pulumi AI
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
Use this data source to query the available mongodb specifications for different zone.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const mongodb = tencentcloud.getMongodbZoneConfig({
availableZone: "ap-guangzhou-2",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
mongodb = tencentcloud.get_mongodb_zone_config(available_zone="ap-guangzhou-2")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.GetMongodbZoneConfig(ctx, &tencentcloud.GetMongodbZoneConfigArgs{
AvailableZone: pulumi.StringRef("ap-guangzhou-2"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var mongodb = Tencentcloud.GetMongodbZoneConfig.Invoke(new()
{
AvailableZone = "ap-guangzhou-2",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetMongodbZoneConfigArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var mongodb = TencentcloudFunctions.getMongodbZoneConfig(GetMongodbZoneConfigArgs.builder()
.availableZone("ap-guangzhou-2")
.build());
}
}
variables:
mongodb:
fn::invoke:
function: tencentcloud:getMongodbZoneConfig
arguments:
availableZone: ap-guangzhou-2
Using getMongodbZoneConfig
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getMongodbZoneConfig(args: GetMongodbZoneConfigArgs, opts?: InvokeOptions): Promise<GetMongodbZoneConfigResult>
function getMongodbZoneConfigOutput(args: GetMongodbZoneConfigOutputArgs, opts?: InvokeOptions): Output<GetMongodbZoneConfigResult>
def get_mongodb_zone_config(available_zone: Optional[str] = None,
id: Optional[str] = None,
result_output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetMongodbZoneConfigResult
def get_mongodb_zone_config_output(available_zone: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetMongodbZoneConfigResult]
func GetMongodbZoneConfig(ctx *Context, args *GetMongodbZoneConfigArgs, opts ...InvokeOption) (*GetMongodbZoneConfigResult, error)
func GetMongodbZoneConfigOutput(ctx *Context, args *GetMongodbZoneConfigOutputArgs, opts ...InvokeOption) GetMongodbZoneConfigResultOutput
> Note: This function is named GetMongodbZoneConfig
in the Go SDK.
public static class GetMongodbZoneConfig
{
public static Task<GetMongodbZoneConfigResult> InvokeAsync(GetMongodbZoneConfigArgs args, InvokeOptions? opts = null)
public static Output<GetMongodbZoneConfigResult> Invoke(GetMongodbZoneConfigInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetMongodbZoneConfigResult> getMongodbZoneConfig(GetMongodbZoneConfigArgs args, InvokeOptions options)
public static Output<GetMongodbZoneConfigResult> getMongodbZoneConfig(GetMongodbZoneConfigArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getMongodbZoneConfig:getMongodbZoneConfig
arguments:
# arguments dictionary
The following arguments are supported:
- Available
Zone string - The available zone of the Mongodb.
- Id string
- Result
Output stringFile - Used to store results.
- Available
Zone string - The available zone of the Mongodb.
- Id string
- Result
Output stringFile - Used to store results.
- available
Zone String - The available zone of the Mongodb.
- id String
- result
Output StringFile - Used to store results.
- available
Zone string - The available zone of the Mongodb.
- id string
- result
Output stringFile - Used to store results.
- available_
zone str - The available zone of the Mongodb.
- id str
- result_
output_ strfile - Used to store results.
- available
Zone String - The available zone of the Mongodb.
- id String
- result
Output StringFile - Used to store results.
getMongodbZoneConfig Result
The following output properties are available:
- Id string
- Lists
List<Get
Mongodb Zone Config List> - A list of zone config. Each element contains the following attributes:
- Available
Zone string - The available zone of the Mongodb.
- Result
Output stringFile
- Id string
- Lists
[]Get
Mongodb Zone Config List - A list of zone config. Each element contains the following attributes:
- Available
Zone string - The available zone of the Mongodb.
- Result
Output stringFile
- id String
- lists
List<Get
Mongodb Zone Config List> - A list of zone config. Each element contains the following attributes:
- available
Zone String - The available zone of the Mongodb.
- result
Output StringFile
- id string
- lists
Get
Mongodb Zone Config List[] - A list of zone config. Each element contains the following attributes:
- available
Zone string - The available zone of the Mongodb.
- result
Output stringFile
- id str
- lists
Sequence[Get
Mongodb Zone Config List] - A list of zone config. Each element contains the following attributes:
- available_
zone str - The available zone of the Mongodb.
- result_
output_ strfile
- id String
- lists List<Property Map>
- A list of zone config. Each element contains the following attributes:
- available
Zone String - The available zone of the Mongodb.
- result
Output StringFile
Supporting Types
GetMongodbZoneConfigList
- Available
Zone string - The available zone of the Mongodb.
- Cluster
Type string - Type of Mongodb cluster.
- Cpu double
- Number of cpu's core.
- Default
Storage double - Default disk size.
- Engine
Version string - Version of the Mongodb version.
- Machine
Type string - Type of Mongodb instance.
- Max
Replicate doubleSet Num - Maximum replicate set num for sharding cluster.
- Max
Storage double - Maximum size of the disk.
- Memory double
- Memory size.
- Min
Replicate doubleSet Num - Minimum replicate set num for sharding cluster.
- Min
Storage double - Minimum sie of the disk.
- Available
Zone string - The available zone of the Mongodb.
- Cluster
Type string - Type of Mongodb cluster.
- Cpu float64
- Number of cpu's core.
- Default
Storage float64 - Default disk size.
- Engine
Version string - Version of the Mongodb version.
- Machine
Type string - Type of Mongodb instance.
- Max
Replicate float64Set Num - Maximum replicate set num for sharding cluster.
- Max
Storage float64 - Maximum size of the disk.
- Memory float64
- Memory size.
- Min
Replicate float64Set Num - Minimum replicate set num for sharding cluster.
- Min
Storage float64 - Minimum sie of the disk.
- available
Zone String - The available zone of the Mongodb.
- cluster
Type String - Type of Mongodb cluster.
- cpu Double
- Number of cpu's core.
- default
Storage Double - Default disk size.
- engine
Version String - Version of the Mongodb version.
- machine
Type String - Type of Mongodb instance.
- max
Replicate DoubleSet Num - Maximum replicate set num for sharding cluster.
- max
Storage Double - Maximum size of the disk.
- memory Double
- Memory size.
- min
Replicate DoubleSet Num - Minimum replicate set num for sharding cluster.
- min
Storage Double - Minimum sie of the disk.
- available
Zone string - The available zone of the Mongodb.
- cluster
Type string - Type of Mongodb cluster.
- cpu number
- Number of cpu's core.
- default
Storage number - Default disk size.
- engine
Version string - Version of the Mongodb version.
- machine
Type string - Type of Mongodb instance.
- max
Replicate numberSet Num - Maximum replicate set num for sharding cluster.
- max
Storage number - Maximum size of the disk.
- memory number
- Memory size.
- min
Replicate numberSet Num - Minimum replicate set num for sharding cluster.
- min
Storage number - Minimum sie of the disk.
- available_
zone str - The available zone of the Mongodb.
- cluster_
type str - Type of Mongodb cluster.
- cpu float
- Number of cpu's core.
- default_
storage float - Default disk size.
- engine_
version str - Version of the Mongodb version.
- machine_
type str - Type of Mongodb instance.
- max_
replicate_ floatset_ num - Maximum replicate set num for sharding cluster.
- max_
storage float - Maximum size of the disk.
- memory float
- Memory size.
- min_
replicate_ floatset_ num - Minimum replicate set num for sharding cluster.
- min_
storage float - Minimum sie of the disk.
- available
Zone String - The available zone of the Mongodb.
- cluster
Type String - Type of Mongodb cluster.
- cpu Number
- Number of cpu's core.
- default
Storage Number - Default disk size.
- engine
Version String - Version of the Mongodb version.
- machine
Type String - Type of Mongodb instance.
- max
Replicate NumberSet Num - Maximum replicate set num for sharding cluster.
- max
Storage Number - Maximum size of the disk.
- memory Number
- Memory size.
- min
Replicate NumberSet Num - Minimum replicate set num for sharding cluster.
- min
Storage Number - Minimum sie of the disk.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack