1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getMongodbZoneConfig
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack

tencentcloud.getMongodbZoneConfig

Explore with Pulumi AI

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",
});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

mongodb = tencentcloud.get_mongodb_zone_config(available_zone="ap-guangzhou-2")
Copy
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
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
variables:
  mongodb:
    fn::invoke:
      function: tencentcloud:getMongodbZoneConfig
      arguments:
        availableZone: ap-guangzhou-2
Copy

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>
Copy
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]
Copy
func GetMongodbZoneConfig(ctx *Context, args *GetMongodbZoneConfigArgs, opts ...InvokeOption) (*GetMongodbZoneConfigResult, error)
func GetMongodbZoneConfigOutput(ctx *Context, args *GetMongodbZoneConfigOutputArgs, opts ...InvokeOption) GetMongodbZoneConfigResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetMongodbZoneConfigResult> getMongodbZoneConfig(GetMongodbZoneConfigArgs args, InvokeOptions options)
public static Output<GetMongodbZoneConfigResult> getMongodbZoneConfig(GetMongodbZoneConfigArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: tencentcloud:index/getMongodbZoneConfig:getMongodbZoneConfig
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

AvailableZone string
The available zone of the Mongodb.
Id string
ResultOutputFile string
Used to store results.
AvailableZone string
The available zone of the Mongodb.
Id string
ResultOutputFile string
Used to store results.
availableZone String
The available zone of the Mongodb.
id String
resultOutputFile String
Used to store results.
availableZone string
The available zone of the Mongodb.
id string
resultOutputFile string
Used to store results.
available_zone str
The available zone of the Mongodb.
id str
result_output_file str
Used to store results.
availableZone String
The available zone of the Mongodb.
id String
resultOutputFile String
Used to store results.

getMongodbZoneConfig Result

The following output properties are available:

Id string
Lists List<GetMongodbZoneConfigList>
A list of zone config. Each element contains the following attributes:
AvailableZone string
The available zone of the Mongodb.
ResultOutputFile string
Id string
Lists []GetMongodbZoneConfigList
A list of zone config. Each element contains the following attributes:
AvailableZone string
The available zone of the Mongodb.
ResultOutputFile string
id String
lists List<GetMongodbZoneConfigList>
A list of zone config. Each element contains the following attributes:
availableZone String
The available zone of the Mongodb.
resultOutputFile String
id string
lists GetMongodbZoneConfigList[]
A list of zone config. Each element contains the following attributes:
availableZone string
The available zone of the Mongodb.
resultOutputFile string
id str
lists Sequence[GetMongodbZoneConfigList]
A list of zone config. Each element contains the following attributes:
available_zone str
The available zone of the Mongodb.
result_output_file str
id String
lists List<Property Map>
A list of zone config. Each element contains the following attributes:
availableZone String
The available zone of the Mongodb.
resultOutputFile String

Supporting Types

GetMongodbZoneConfigList

AvailableZone This property is required. string
The available zone of the Mongodb.
ClusterType This property is required. string
Type of Mongodb cluster.
Cpu This property is required. double
Number of cpu's core.
DefaultStorage This property is required. double
Default disk size.
EngineVersion This property is required. string
Version of the Mongodb version.
MachineType This property is required. string
Type of Mongodb instance.
MaxReplicateSetNum This property is required. double
Maximum replicate set num for sharding cluster.
MaxStorage This property is required. double
Maximum size of the disk.
Memory This property is required. double
Memory size.
MinReplicateSetNum This property is required. double
Minimum replicate set num for sharding cluster.
MinStorage This property is required. double
Minimum sie of the disk.
AvailableZone This property is required. string
The available zone of the Mongodb.
ClusterType This property is required. string
Type of Mongodb cluster.
Cpu This property is required. float64
Number of cpu's core.
DefaultStorage This property is required. float64
Default disk size.
EngineVersion This property is required. string
Version of the Mongodb version.
MachineType This property is required. string
Type of Mongodb instance.
MaxReplicateSetNum This property is required. float64
Maximum replicate set num for sharding cluster.
MaxStorage This property is required. float64
Maximum size of the disk.
Memory This property is required. float64
Memory size.
MinReplicateSetNum This property is required. float64
Minimum replicate set num for sharding cluster.
MinStorage This property is required. float64
Minimum sie of the disk.
availableZone This property is required. String
The available zone of the Mongodb.
clusterType This property is required. String
Type of Mongodb cluster.
cpu This property is required. Double
Number of cpu's core.
defaultStorage This property is required. Double
Default disk size.
engineVersion This property is required. String
Version of the Mongodb version.
machineType This property is required. String
Type of Mongodb instance.
maxReplicateSetNum This property is required. Double
Maximum replicate set num for sharding cluster.
maxStorage This property is required. Double
Maximum size of the disk.
memory This property is required. Double
Memory size.
minReplicateSetNum This property is required. Double
Minimum replicate set num for sharding cluster.
minStorage This property is required. Double
Minimum sie of the disk.
availableZone This property is required. string
The available zone of the Mongodb.
clusterType This property is required. string
Type of Mongodb cluster.
cpu This property is required. number
Number of cpu's core.
defaultStorage This property is required. number
Default disk size.
engineVersion This property is required. string
Version of the Mongodb version.
machineType This property is required. string
Type of Mongodb instance.
maxReplicateSetNum This property is required. number
Maximum replicate set num for sharding cluster.
maxStorage This property is required. number
Maximum size of the disk.
memory This property is required. number
Memory size.
minReplicateSetNum This property is required. number
Minimum replicate set num for sharding cluster.
minStorage This property is required. number
Minimum sie of the disk.
available_zone This property is required. str
The available zone of the Mongodb.
cluster_type This property is required. str
Type of Mongodb cluster.
cpu This property is required. float
Number of cpu's core.
default_storage This property is required. float
Default disk size.
engine_version This property is required. str
Version of the Mongodb version.
machine_type This property is required. str
Type of Mongodb instance.
max_replicate_set_num This property is required. float
Maximum replicate set num for sharding cluster.
max_storage This property is required. float
Maximum size of the disk.
memory This property is required. float
Memory size.
min_replicate_set_num This property is required. float
Minimum replicate set num for sharding cluster.
min_storage This property is required. float
Minimum sie of the disk.
availableZone This property is required. String
The available zone of the Mongodb.
clusterType This property is required. String
Type of Mongodb cluster.
cpu This property is required. Number
Number of cpu's core.
defaultStorage This property is required. Number
Default disk size.
engineVersion This property is required. String
Version of the Mongodb version.
machineType This property is required. String
Type of Mongodb instance.
maxReplicateSetNum This property is required. Number
Maximum replicate set num for sharding cluster.
maxStorage This property is required. Number
Maximum size of the disk.
memory This property is required. Number
Memory size.
minReplicateSetNum This property is required. Number
Minimum replicate set num for sharding cluster.
minStorage This property is required. 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.