tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
tencentcloud.getPostgresqlZones
Start a Neo task
Explain and create a tencentcloud.getPostgresqlZones resource
tencentcloud 1.82.34 published on Wednesday, Nov 5, 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(GetPostgresqlZonesArgs.builder()
.build());
}
}
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
- Result
Output stringFile - Used to save results.
- Id string
- Result
Output stringFile - Used to save results.
- id String
- result
Output StringFile - Used to save results.
- id string
- result
Output stringFile - Used to save results.
- id str
- result_
output_ strfile - Used to save results.
- id String
- result
Output StringFile - Used to save results.
getPostgresqlZones Result
The following output properties are available:
- Id string
- Zone
Sets List<GetPostgresql Zones Zone Set> - AZ information set.
- Result
Output stringFile
- Id string
- Zone
Sets []GetPostgresql Zones Zone Set - AZ information set.
- Result
Output stringFile
- id String
- zone
Sets List<GetPostgresql Zones Zone Set> - AZ information set.
- result
Output StringFile
- id string
- zone
Sets GetPostgresql Zones Zone Set[] - AZ information set.
- result
Output stringFile
- id str
- zone_
sets Sequence[GetPostgresql Zones Zone Set] - AZ information set.
- result_
output_ strfile
- id String
- zone
Sets List<Property Map> - AZ information set.
- result
Output StringFile
Supporting Types
GetPostgresqlZonesZoneSet
- Standby
Zone 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.
- Zone
Id double - AZ number.
- Zone
Name string - AZ name.
- Zone
State string - Availability status. Valid values:
UNAVAILABLE.AVAILABLE.SELLOUT.SUPPORTMODIFYONLY(supports configuration adjustment). - Zone
Support doubleIpv6 - Whether the AZ supports IPv6 address access.
- Standby
Zone []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.
- Zone
Id float64 - AZ number.
- Zone
Name string - AZ name.
- Zone
State string - Availability status. Valid values:
UNAVAILABLE.AVAILABLE.SELLOUT.SUPPORTMODIFYONLY(supports configuration adjustment). - Zone
Support float64Ipv6 - Whether the AZ supports IPv6 address access.
- standby
Zone 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.
- zone
Id Double - AZ number.
- zone
Name String - AZ name.
- zone
State String - Availability status. Valid values:
UNAVAILABLE.AVAILABLE.SELLOUT.SUPPORTMODIFYONLY(supports configuration adjustment). - zone
Support DoubleIpv6 - Whether the AZ supports IPv6 address access.
- standby
Zone 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.
- zone
Id number - AZ number.
- zone
Name string - AZ name.
- zone
State string - Availability status. Valid values:
UNAVAILABLE.AVAILABLE.SELLOUT.SUPPORTMODIFYONLY(supports configuration adjustment). - zone
Support 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.
- standby
Zone 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.
- zone
Id Number - AZ number.
- zone
Name String - AZ name.
- zone
State String - Availability status. Valid values:
UNAVAILABLE.AVAILABLE.SELLOUT.SUPPORTMODIFYONLY(supports configuration adjustment). - zone
Support 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.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
