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

tencentcloud.getCynosdbZone

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Use this data source to query detailed information of cynosdb zone

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const zone = tencentcloud.getCynosdbZone({
        includeVirtualZones: true,
        showPermission: true,
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    zone = tencentcloud.get_cynosdb_zone(include_virtual_zones=True,
        show_permission=True)
    
    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.GetCynosdbZone(ctx, &tencentcloud.GetCynosdbZoneArgs{
    			IncludeVirtualZones: pulumi.BoolRef(true),
    			ShowPermission:      pulumi.BoolRef(true),
    		}, 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 zone = Tencentcloud.GetCynosdbZone.Invoke(new()
        {
            IncludeVirtualZones = true,
            ShowPermission = true,
        });
    
    });
    
    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.GetCynosdbZoneArgs;
    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 zone = TencentcloudFunctions.getCynosdbZone(GetCynosdbZoneArgs.builder()
                .includeVirtualZones(true)
                .showPermission(true)
                .build());
    
        }
    }
    
    variables:
      zone:
        fn::invoke:
          function: tencentcloud:getCynosdbZone
          arguments:
            includeVirtualZones: true
            showPermission: true
    

    Using getCynosdbZone

    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 getCynosdbZone(args: GetCynosdbZoneArgs, opts?: InvokeOptions): Promise<GetCynosdbZoneResult>
    function getCynosdbZoneOutput(args: GetCynosdbZoneOutputArgs, opts?: InvokeOptions): Output<GetCynosdbZoneResult>
    def get_cynosdb_zone(id: Optional[str] = None,
                         include_virtual_zones: Optional[bool] = None,
                         result_output_file: Optional[str] = None,
                         show_permission: Optional[bool] = None,
                         opts: Optional[InvokeOptions] = None) -> GetCynosdbZoneResult
    def get_cynosdb_zone_output(id: Optional[pulumi.Input[str]] = None,
                         include_virtual_zones: Optional[pulumi.Input[bool]] = None,
                         result_output_file: Optional[pulumi.Input[str]] = None,
                         show_permission: Optional[pulumi.Input[bool]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetCynosdbZoneResult]
    func GetCynosdbZone(ctx *Context, args *GetCynosdbZoneArgs, opts ...InvokeOption) (*GetCynosdbZoneResult, error)
    func GetCynosdbZoneOutput(ctx *Context, args *GetCynosdbZoneOutputArgs, opts ...InvokeOption) GetCynosdbZoneResultOutput

    > Note: This function is named GetCynosdbZone in the Go SDK.

    public static class GetCynosdbZone 
    {
        public static Task<GetCynosdbZoneResult> InvokeAsync(GetCynosdbZoneArgs args, InvokeOptions? opts = null)
        public static Output<GetCynosdbZoneResult> Invoke(GetCynosdbZoneInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCynosdbZoneResult> getCynosdbZone(GetCynosdbZoneArgs args, InvokeOptions options)
    public static Output<GetCynosdbZoneResult> getCynosdbZone(GetCynosdbZoneArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getCynosdbZone:getCynosdbZone
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    IncludeVirtualZones bool
    Is virtual zone included.
    ResultOutputFile string
    Used to save results.
    ShowPermission bool
    Whether to display all available zones under the region and display the permissions of each available zone of the user.
    Id string
    IncludeVirtualZones bool
    Is virtual zone included.
    ResultOutputFile string
    Used to save results.
    ShowPermission bool
    Whether to display all available zones under the region and display the permissions of each available zone of the user.
    id String
    includeVirtualZones Boolean
    Is virtual zone included.
    resultOutputFile String
    Used to save results.
    showPermission Boolean
    Whether to display all available zones under the region and display the permissions of each available zone of the user.
    id string
    includeVirtualZones boolean
    Is virtual zone included.
    resultOutputFile string
    Used to save results.
    showPermission boolean
    Whether to display all available zones under the region and display the permissions of each available zone of the user.
    id str
    include_virtual_zones bool
    Is virtual zone included.
    result_output_file str
    Used to save results.
    show_permission bool
    Whether to display all available zones under the region and display the permissions of each available zone of the user.
    id String
    includeVirtualZones Boolean
    Is virtual zone included.
    resultOutputFile String
    Used to save results.
    showPermission Boolean
    Whether to display all available zones under the region and display the permissions of each available zone of the user.

    getCynosdbZone Result

    The following output properties are available:

    id String
    regionSets List<Property Map>
    Information of region.
    includeVirtualZones Boolean
    resultOutputFile String
    showPermission Boolean

    Supporting Types

    GetCynosdbZoneRegionSet

    DbType string
    Database type.
    Modules List<GetCynosdbZoneRegionSetModule>
    Regional module support.
    Region string
    Region in English.
    RegionId double
    Region ID.
    RegionZh string
    Region name in Chinese.
    ZoneSets List<GetCynosdbZoneRegionSetZoneSet>
    List of available zones for sale.
    DbType string
    Database type.
    Modules []GetCynosdbZoneRegionSetModule
    Regional module support.
    Region string
    Region in English.
    RegionId float64
    Region ID.
    RegionZh string
    Region name in Chinese.
    ZoneSets []GetCynosdbZoneRegionSetZoneSet
    List of available zones for sale.
    dbType String
    Database type.
    modules List<GetCynosdbZoneRegionSetModule>
    Regional module support.
    region String
    Region in English.
    regionId Double
    Region ID.
    regionZh String
    Region name in Chinese.
    zoneSets List<GetCynosdbZoneRegionSetZoneSet>
    List of available zones for sale.
    dbType string
    Database type.
    modules GetCynosdbZoneRegionSetModule[]
    Regional module support.
    region string
    Region in English.
    regionId number
    Region ID.
    regionZh string
    Region name in Chinese.
    zoneSets GetCynosdbZoneRegionSetZoneSet[]
    List of available zones for sale.
    db_type str
    Database type.
    modules Sequence[GetCynosdbZoneRegionSetModule]
    Regional module support.
    region str
    Region in English.
    region_id float
    Region ID.
    region_zh str
    Region name in Chinese.
    zone_sets Sequence[GetCynosdbZoneRegionSetZoneSet]
    List of available zones for sale.
    dbType String
    Database type.
    modules List<Property Map>
    Regional module support.
    region String
    Region in English.
    regionId Number
    Region ID.
    regionZh String
    Region name in Chinese.
    zoneSets List<Property Map>
    List of available zones for sale.

    GetCynosdbZoneRegionSetModule

    IsDisable string
    Is zone on sale, optional values: yes, no.
    ModuleName string
    Module name.
    IsDisable string
    Is zone on sale, optional values: yes, no.
    ModuleName string
    Module name.
    isDisable String
    Is zone on sale, optional values: yes, no.
    moduleName String
    Module name.
    isDisable string
    Is zone on sale, optional values: yes, no.
    moduleName string
    Module name.
    is_disable str
    Is zone on sale, optional values: yes, no.
    module_name str
    Module name.
    isDisable String
    Is zone on sale, optional values: yes, no.
    moduleName String
    Module name.

    GetCynosdbZoneRegionSetZoneSet

    HasPermission bool
    Whether the user have zone permissionsNote: This field may return null, indicating that no valid value can be obtained.
    IsSupportNormal double
    Does it support normal clusters, 0:Not supported 1:Support.
    IsSupportServerless double
    Does it support serverless clusters, 0:Not supported 1:Support.
    IsWholeRdmaZone string
    Is zone Rdma.
    PhysicalZone string
    Physical zone.
    Zone string
    Zone name in English.
    ZoneId double
    ZoneId.
    ZoneZh string
    Zone name in Chinesee.
    HasPermission bool
    Whether the user have zone permissionsNote: This field may return null, indicating that no valid value can be obtained.
    IsSupportNormal float64
    Does it support normal clusters, 0:Not supported 1:Support.
    IsSupportServerless float64
    Does it support serverless clusters, 0:Not supported 1:Support.
    IsWholeRdmaZone string
    Is zone Rdma.
    PhysicalZone string
    Physical zone.
    Zone string
    Zone name in English.
    ZoneId float64
    ZoneId.
    ZoneZh string
    Zone name in Chinesee.
    hasPermission Boolean
    Whether the user have zone permissionsNote: This field may return null, indicating that no valid value can be obtained.
    isSupportNormal Double
    Does it support normal clusters, 0:Not supported 1:Support.
    isSupportServerless Double
    Does it support serverless clusters, 0:Not supported 1:Support.
    isWholeRdmaZone String
    Is zone Rdma.
    physicalZone String
    Physical zone.
    zone String
    Zone name in English.
    zoneId Double
    ZoneId.
    zoneZh String
    Zone name in Chinesee.
    hasPermission boolean
    Whether the user have zone permissionsNote: This field may return null, indicating that no valid value can be obtained.
    isSupportNormal number
    Does it support normal clusters, 0:Not supported 1:Support.
    isSupportServerless number
    Does it support serverless clusters, 0:Not supported 1:Support.
    isWholeRdmaZone string
    Is zone Rdma.
    physicalZone string
    Physical zone.
    zone string
    Zone name in English.
    zoneId number
    ZoneId.
    zoneZh string
    Zone name in Chinesee.
    has_permission bool
    Whether the user have zone permissionsNote: This field may return null, indicating that no valid value can be obtained.
    is_support_normal float
    Does it support normal clusters, 0:Not supported 1:Support.
    is_support_serverless float
    Does it support serverless clusters, 0:Not supported 1:Support.
    is_whole_rdma_zone str
    Is zone Rdma.
    physical_zone str
    Physical zone.
    zone str
    Zone name in English.
    zone_id float
    ZoneId.
    zone_zh str
    Zone name in Chinesee.
    hasPermission Boolean
    Whether the user have zone permissionsNote: This field may return null, indicating that no valid value can be obtained.
    isSupportNormal Number
    Does it support normal clusters, 0:Not supported 1:Support.
    isSupportServerless Number
    Does it support serverless clusters, 0:Not supported 1:Support.
    isWholeRdmaZone String
    Is zone Rdma.
    physicalZone String
    Physical zone.
    zone String
    Zone name in English.
    zoneId Number
    ZoneId.
    zoneZh String
    Zone name in Chinesee.

    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