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

tencentcloud.getPostgresqlZones

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 postgresql zones

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const zones = tencentcloud.getPostgresqlZones({});
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    zones = tencentcloud.get_postgresql_zones()
    
    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.GetPostgresqlZones(ctx, &tencentcloud.GetPostgresqlZonesArgs{}, 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 zones = Tencentcloud.GetPostgresqlZones.Invoke();
    
    });
    
    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.GetPostgresqlZonesArgs;
    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 zones = TencentcloudFunctions.getPostgresqlZones();
    
        }
    }
    
    variables:
      zones:
        fn::invoke:
          function: tencentcloud:getPostgresqlZones
          arguments: {}
    

    Using getPostgresqlZones

    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 getPostgresqlZones(args: GetPostgresqlZonesArgs, opts?: InvokeOptions): Promise<GetPostgresqlZonesResult>
    function getPostgresqlZonesOutput(args: GetPostgresqlZonesOutputArgs, opts?: InvokeOptions): Output<GetPostgresqlZonesResult>
    def get_postgresql_zones(id: Optional[str] = None,
                             result_output_file: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetPostgresqlZonesResult
    def get_postgresql_zones_output(id: Optional[pulumi.Input[str]] = None,
                             result_output_file: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetPostgresqlZonesResult]
    func GetPostgresqlZones(ctx *Context, args *GetPostgresqlZonesArgs, opts ...InvokeOption) (*GetPostgresqlZonesResult, error)
    func GetPostgresqlZonesOutput(ctx *Context, args *GetPostgresqlZonesOutputArgs, opts ...InvokeOption) GetPostgresqlZonesResultOutput

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

    public static class GetPostgresqlZones 
    {
        public static Task<GetPostgresqlZonesResult> InvokeAsync(GetPostgresqlZonesArgs args, InvokeOptions? opts = null)
        public static Output<GetPostgresqlZonesResult> Invoke(GetPostgresqlZonesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetPostgresqlZonesResult> getPostgresqlZones(GetPostgresqlZonesArgs args, InvokeOptions options)
    public static Output<GetPostgresqlZonesResult> getPostgresqlZones(GetPostgresqlZonesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getPostgresqlZones:getPostgresqlZones
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    ResultOutputFile string
    Used to save results.
    Id string
    ResultOutputFile string
    Used to save results.
    id String
    resultOutputFile String
    Used to save results.
    id string
    resultOutputFile string
    Used to save results.
    id str
    result_output_file str
    Used to save results.
    id String
    resultOutputFile String
    Used to save results.

    getPostgresqlZones Result

    The following output properties are available:

    id String
    zoneSets List<Property Map>
    AZ information set.
    resultOutputFile String

    Supporting Types

    GetPostgresqlZonesZoneSet

    StandbyZoneSets List<string>
    AZs that can be used as standby when this AZ is primaryNote: this field may return null, indicating that no valid values can be obtained.
    Zone string
    AZ abbreviation.
    ZoneId double
    AZ number.
    ZoneName string
    AZ name.
    ZoneState string
    Availability status. Valid values:UNAVAILABLE.AVAILABLE.SELLOUT.SUPPORTMODIFYONLY (supports configuration adjustment).
    ZoneSupportIpv6 double
    Whether the AZ supports IPv6 address access.
    StandbyZoneSets []string
    AZs that can be used as standby when this AZ is primaryNote: this field may return null, indicating that no valid values can be obtained.
    Zone string
    AZ abbreviation.
    ZoneId float64
    AZ number.
    ZoneName string
    AZ name.
    ZoneState string
    Availability status. Valid values:UNAVAILABLE.AVAILABLE.SELLOUT.SUPPORTMODIFYONLY (supports configuration adjustment).
    ZoneSupportIpv6 float64
    Whether the AZ supports IPv6 address access.
    standbyZoneSets List<String>
    AZs that can be used as standby when this AZ is primaryNote: this field may return null, indicating that no valid values can be obtained.
    zone String
    AZ abbreviation.
    zoneId Double
    AZ number.
    zoneName String
    AZ name.
    zoneState String
    Availability status. Valid values:UNAVAILABLE.AVAILABLE.SELLOUT.SUPPORTMODIFYONLY (supports configuration adjustment).
    zoneSupportIpv6 Double
    Whether the AZ supports IPv6 address access.
    standbyZoneSets string[]
    AZs that can be used as standby when this AZ is primaryNote: this field may return null, indicating that no valid values can be obtained.
    zone string
    AZ abbreviation.
    zoneId number
    AZ number.
    zoneName string
    AZ name.
    zoneState string
    Availability status. Valid values:UNAVAILABLE.AVAILABLE.SELLOUT.SUPPORTMODIFYONLY (supports configuration adjustment).
    zoneSupportIpv6 number
    Whether the AZ supports IPv6 address access.
    standby_zone_sets Sequence[str]
    AZs that can be used as standby when this AZ is primaryNote: this field may return null, indicating that no valid values can be obtained.
    zone str
    AZ abbreviation.
    zone_id float
    AZ number.
    zone_name str
    AZ name.
    zone_state str
    Availability status. Valid values:UNAVAILABLE.AVAILABLE.SELLOUT.SUPPORTMODIFYONLY (supports configuration adjustment).
    zone_support_ipv6 float
    Whether the AZ supports IPv6 address access.
    standbyZoneSets List<String>
    AZs that can be used as standby when this AZ is primaryNote: this field may return null, indicating that no valid values can be obtained.
    zone String
    AZ abbreviation.
    zoneId Number
    AZ number.
    zoneName String
    AZ name.
    zoneState String
    Availability status. Valid values:UNAVAILABLE.AVAILABLE.SELLOUT.SUPPORTMODIFYONLY (supports configuration adjustment).
    zoneSupportIpv6 Number
    Whether the AZ supports IPv6 address access.

    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