tencentcloud 1.81.191 published on Friday, May 9, 2025 by tencentcloudstack
tencentcloud.getPostgresqlZones
Explore with Pulumi AI
tencentcloud 1.81.191 published on Friday, May 9, 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 dictionaryThe following arguments are supported:
- Id string
- ResultOutput stringFile 
- Used to save results.
- Id string
- ResultOutput stringFile 
- Used to save results.
- id String
- resultOutput StringFile 
- Used to save results.
- id string
- resultOutput stringFile 
- Used to save results.
- id str
- result_output_ strfile 
- Used to save results.
- id String
- resultOutput StringFile 
- Used to save results.
getPostgresqlZones Result
The following output properties are available:
- Id string
- ZoneSets List<GetPostgresql Zones Zone Set> 
- AZ information set.
- ResultOutput stringFile 
- Id string
- ZoneSets []GetPostgresql Zones Zone Set 
- AZ information set.
- ResultOutput stringFile 
- id String
- zoneSets List<GetPostgresql Zones Zone Set> 
- AZ information set.
- resultOutput StringFile 
- id string
- zoneSets GetPostgresql Zones Zone Set[] 
- AZ information set.
- resultOutput stringFile 
- id str
- zone_sets Sequence[GetPostgresql Zones Zone Set] 
- AZ information set.
- result_output_ strfile 
- id String
- zoneSets List<Property Map>
- AZ information set.
- resultOutput StringFile 
Supporting Types
GetPostgresqlZonesZoneSet    
- StandbyZone List<string>Sets 
- 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).
- ZoneSupport doubleIpv6 
- Whether the AZ supports IPv6 address access.
- StandbyZone []stringSets 
- 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).
- ZoneSupport float64Ipv6 
- Whether the AZ supports IPv6 address access.
- standbyZone List<String>Sets 
- 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).
- zoneSupport DoubleIpv6 
- Whether the AZ supports IPv6 address access.
- standbyZone string[]Sets 
- 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).
- zoneSupport numberIpv6 
- Whether the AZ supports IPv6 address access.
- standby_zone_ Sequence[str]sets 
- 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_ floatipv6 
- Whether the AZ supports IPv6 address access.
- standbyZone List<String>Sets 
- 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).
- zoneSupport NumberIpv6 
- Whether the AZ supports IPv6 address access.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the tencentcloudTerraform Provider.
tencentcloud 1.81.191 published on Friday, May 9, 2025 by tencentcloudstack