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

tencentcloud.getMongodbZoneConfig

Explore with Pulumi AI

tencentcloud logo
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:

    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 string
    The available zone of the Mongodb.
    ClusterType string
    Type of Mongodb cluster.
    Cpu double
    Number of cpu's core.
    DefaultStorage double
    Default disk size.
    EngineVersion string
    Version of the Mongodb version.
    MachineType string
    Type of Mongodb instance.
    MaxReplicateSetNum double
    Maximum replicate set num for sharding cluster.
    MaxStorage double
    Maximum size of the disk.
    Memory double
    Memory size.
    MinReplicateSetNum double
    Minimum replicate set num for sharding cluster.
    MinStorage double
    Minimum sie of the disk.
    AvailableZone string
    The available zone of the Mongodb.
    ClusterType string
    Type of Mongodb cluster.
    Cpu float64
    Number of cpu's core.
    DefaultStorage float64
    Default disk size.
    EngineVersion string
    Version of the Mongodb version.
    MachineType string
    Type of Mongodb instance.
    MaxReplicateSetNum float64
    Maximum replicate set num for sharding cluster.
    MaxStorage float64
    Maximum size of the disk.
    Memory float64
    Memory size.
    MinReplicateSetNum float64
    Minimum replicate set num for sharding cluster.
    MinStorage float64
    Minimum sie of the disk.
    availableZone String
    The available zone of the Mongodb.
    clusterType String
    Type of Mongodb cluster.
    cpu Double
    Number of cpu's core.
    defaultStorage Double
    Default disk size.
    engineVersion String
    Version of the Mongodb version.
    machineType String
    Type of Mongodb instance.
    maxReplicateSetNum Double
    Maximum replicate set num for sharding cluster.
    maxStorage Double
    Maximum size of the disk.
    memory Double
    Memory size.
    minReplicateSetNum Double
    Minimum replicate set num for sharding cluster.
    minStorage Double
    Minimum sie of the disk.
    availableZone string
    The available zone of the Mongodb.
    clusterType string
    Type of Mongodb cluster.
    cpu number
    Number of cpu's core.
    defaultStorage number
    Default disk size.
    engineVersion string
    Version of the Mongodb version.
    machineType string
    Type of Mongodb instance.
    maxReplicateSetNum number
    Maximum replicate set num for sharding cluster.
    maxStorage number
    Maximum size of the disk.
    memory number
    Memory size.
    minReplicateSetNum number
    Minimum replicate set num for sharding cluster.
    minStorage 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_set_num float
    Maximum replicate set num for sharding cluster.
    max_storage float
    Maximum size of the disk.
    memory float
    Memory size.
    min_replicate_set_num float
    Minimum replicate set num for sharding cluster.
    min_storage float
    Minimum sie of the disk.
    availableZone String
    The available zone of the Mongodb.
    clusterType String
    Type of Mongodb cluster.
    cpu Number
    Number of cpu's core.
    defaultStorage Number
    Default disk size.
    engineVersion String
    Version of the Mongodb version.
    machineType String
    Type of Mongodb instance.
    maxReplicateSetNum Number
    Maximum replicate set num for sharding cluster.
    maxStorage Number
    Maximum size of the disk.
    memory Number
    Memory size.
    minReplicateSetNum Number
    Minimum replicate set num for sharding cluster.
    minStorage 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 logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack