We recommend using Azure Native.
azure.cosmosdb.PostgresqlCluster
Explore with Pulumi AI
Manages an Azure Cosmos DB for PostgreSQL Cluster.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
name: "example-resources",
location: "West Europe",
});
const examplePostgresqlCluster = new azure.cosmosdb.PostgresqlCluster("example", {
name: "example-cluster",
resourceGroupName: example.name,
location: example.location,
administratorLoginPassword: "H@Sh1CoR3!",
coordinatorStorageQuotaInMb: 131072,
coordinatorVcoreCount: 2,
nodeCount: 0,
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
name="example-resources",
location="West Europe")
example_postgresql_cluster = azure.cosmosdb.PostgresqlCluster("example",
name="example-cluster",
resource_group_name=example.name,
location=example.location,
administrator_login_password="H@Sh1CoR3!",
coordinator_storage_quota_in_mb=131072,
coordinator_vcore_count=2,
node_count=0)
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/cosmosdb"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
Name: pulumi.String("example-resources"),
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
_, err = cosmosdb.NewPostgresqlCluster(ctx, "example", &cosmosdb.PostgresqlClusterArgs{
Name: pulumi.String("example-cluster"),
ResourceGroupName: example.Name,
Location: example.Location,
AdministratorLoginPassword: pulumi.String("H@Sh1CoR3!"),
CoordinatorStorageQuotaInMb: pulumi.Int(131072),
CoordinatorVcoreCount: pulumi.Int(2),
NodeCount: pulumi.Int(0),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = new Azure.Core.ResourceGroup("example", new()
{
Name = "example-resources",
Location = "West Europe",
});
var examplePostgresqlCluster = new Azure.CosmosDB.PostgresqlCluster("example", new()
{
Name = "example-cluster",
ResourceGroupName = example.Name,
Location = example.Location,
AdministratorLoginPassword = "H@Sh1CoR3!",
CoordinatorStorageQuotaInMb = 131072,
CoordinatorVcoreCount = 2,
NodeCount = 0,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.cosmosdb.PostgresqlCluster;
import com.pulumi.azure.cosmosdb.PostgresqlClusterArgs;
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) {
var example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("example-resources")
.location("West Europe")
.build());
var examplePostgresqlCluster = new PostgresqlCluster("examplePostgresqlCluster", PostgresqlClusterArgs.builder()
.name("example-cluster")
.resourceGroupName(example.name())
.location(example.location())
.administratorLoginPassword("H@Sh1CoR3!")
.coordinatorStorageQuotaInMb(131072)
.coordinatorVcoreCount(2)
.nodeCount(0)
.build());
}
}
resources:
example:
type: azure:core:ResourceGroup
properties:
name: example-resources
location: West Europe
examplePostgresqlCluster:
type: azure:cosmosdb:PostgresqlCluster
name: example
properties:
name: example-cluster
resourceGroupName: ${example.name}
location: ${example.location}
administratorLoginPassword: H@Sh1CoR3!
coordinatorStorageQuotaInMb: 131072
coordinatorVcoreCount: 2
nodeCount: 0
Create PostgresqlCluster Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PostgresqlCluster(name: string, args: PostgresqlClusterArgs, opts?: CustomResourceOptions);
@overload
def PostgresqlCluster(resource_name: str,
args: PostgresqlClusterArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PostgresqlCluster(resource_name: str,
opts: Optional[ResourceOptions] = None,
node_count: Optional[int] = None,
resource_group_name: Optional[str] = None,
coordinator_vcore_count: Optional[int] = None,
node_storage_quota_in_mb: Optional[int] = None,
coordinator_storage_quota_in_mb: Optional[int] = None,
administrator_login_password: Optional[str] = None,
ha_enabled: Optional[bool] = None,
location: Optional[str] = None,
maintenance_window: Optional[PostgresqlClusterMaintenanceWindowArgs] = None,
name: Optional[str] = None,
coordinator_public_ip_access_enabled: Optional[bool] = None,
node_public_ip_access_enabled: Optional[bool] = None,
node_server_edition: Optional[str] = None,
coordinator_server_edition: Optional[str] = None,
node_vcores: Optional[int] = None,
point_in_time_in_utc: Optional[str] = None,
preferred_primary_zone: Optional[str] = None,
citus_version: Optional[str] = None,
shards_on_coordinator_enabled: Optional[bool] = None,
source_location: Optional[str] = None,
source_resource_id: Optional[str] = None,
sql_version: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewPostgresqlCluster(ctx *Context, name string, args PostgresqlClusterArgs, opts ...ResourceOption) (*PostgresqlCluster, error)
public PostgresqlCluster(string name, PostgresqlClusterArgs args, CustomResourceOptions? opts = null)
public PostgresqlCluster(String name, PostgresqlClusterArgs args)
public PostgresqlCluster(String name, PostgresqlClusterArgs args, CustomResourceOptions options)
type: azure:cosmosdb:PostgresqlCluster
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args PostgresqlClusterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args PostgresqlClusterArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args PostgresqlClusterArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PostgresqlClusterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PostgresqlClusterArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var postgresqlClusterResource = new Azure.CosmosDB.PostgresqlCluster("postgresqlClusterResource", new()
{
NodeCount = 0,
ResourceGroupName = "string",
CoordinatorVcoreCount = 0,
NodeStorageQuotaInMb = 0,
CoordinatorStorageQuotaInMb = 0,
AdministratorLoginPassword = "string",
HaEnabled = false,
Location = "string",
MaintenanceWindow = new Azure.CosmosDB.Inputs.PostgresqlClusterMaintenanceWindowArgs
{
DayOfWeek = 0,
StartHour = 0,
StartMinute = 0,
},
Name = "string",
CoordinatorPublicIpAccessEnabled = false,
NodePublicIpAccessEnabled = false,
NodeServerEdition = "string",
CoordinatorServerEdition = "string",
NodeVcores = 0,
PointInTimeInUtc = "string",
PreferredPrimaryZone = "string",
CitusVersion = "string",
ShardsOnCoordinatorEnabled = false,
SourceLocation = "string",
SourceResourceId = "string",
SqlVersion = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := cosmosdb.NewPostgresqlCluster(ctx, "postgresqlClusterResource", &cosmosdb.PostgresqlClusterArgs{
NodeCount: pulumi.Int(0),
ResourceGroupName: pulumi.String("string"),
CoordinatorVcoreCount: pulumi.Int(0),
NodeStorageQuotaInMb: pulumi.Int(0),
CoordinatorStorageQuotaInMb: pulumi.Int(0),
AdministratorLoginPassword: pulumi.String("string"),
HaEnabled: pulumi.Bool(false),
Location: pulumi.String("string"),
MaintenanceWindow: &cosmosdb.PostgresqlClusterMaintenanceWindowArgs{
DayOfWeek: pulumi.Int(0),
StartHour: pulumi.Int(0),
StartMinute: pulumi.Int(0),
},
Name: pulumi.String("string"),
CoordinatorPublicIpAccessEnabled: pulumi.Bool(false),
NodePublicIpAccessEnabled: pulumi.Bool(false),
NodeServerEdition: pulumi.String("string"),
CoordinatorServerEdition: pulumi.String("string"),
NodeVcores: pulumi.Int(0),
PointInTimeInUtc: pulumi.String("string"),
PreferredPrimaryZone: pulumi.String("string"),
CitusVersion: pulumi.String("string"),
ShardsOnCoordinatorEnabled: pulumi.Bool(false),
SourceLocation: pulumi.String("string"),
SourceResourceId: pulumi.String("string"),
SqlVersion: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var postgresqlClusterResource = new PostgresqlCluster("postgresqlClusterResource", PostgresqlClusterArgs.builder()
.nodeCount(0)
.resourceGroupName("string")
.coordinatorVcoreCount(0)
.nodeStorageQuotaInMb(0)
.coordinatorStorageQuotaInMb(0)
.administratorLoginPassword("string")
.haEnabled(false)
.location("string")
.maintenanceWindow(PostgresqlClusterMaintenanceWindowArgs.builder()
.dayOfWeek(0)
.startHour(0)
.startMinute(0)
.build())
.name("string")
.coordinatorPublicIpAccessEnabled(false)
.nodePublicIpAccessEnabled(false)
.nodeServerEdition("string")
.coordinatorServerEdition("string")
.nodeVcores(0)
.pointInTimeInUtc("string")
.preferredPrimaryZone("string")
.citusVersion("string")
.shardsOnCoordinatorEnabled(false)
.sourceLocation("string")
.sourceResourceId("string")
.sqlVersion("string")
.tags(Map.of("string", "string"))
.build());
postgresql_cluster_resource = azure.cosmosdb.PostgresqlCluster("postgresqlClusterResource",
node_count=0,
resource_group_name="string",
coordinator_vcore_count=0,
node_storage_quota_in_mb=0,
coordinator_storage_quota_in_mb=0,
administrator_login_password="string",
ha_enabled=False,
location="string",
maintenance_window={
"dayOfWeek": 0,
"startHour": 0,
"startMinute": 0,
},
name="string",
coordinator_public_ip_access_enabled=False,
node_public_ip_access_enabled=False,
node_server_edition="string",
coordinator_server_edition="string",
node_vcores=0,
point_in_time_in_utc="string",
preferred_primary_zone="string",
citus_version="string",
shards_on_coordinator_enabled=False,
source_location="string",
source_resource_id="string",
sql_version="string",
tags={
"string": "string",
})
const postgresqlClusterResource = new azure.cosmosdb.PostgresqlCluster("postgresqlClusterResource", {
nodeCount: 0,
resourceGroupName: "string",
coordinatorVcoreCount: 0,
nodeStorageQuotaInMb: 0,
coordinatorStorageQuotaInMb: 0,
administratorLoginPassword: "string",
haEnabled: false,
location: "string",
maintenanceWindow: {
dayOfWeek: 0,
startHour: 0,
startMinute: 0,
},
name: "string",
coordinatorPublicIpAccessEnabled: false,
nodePublicIpAccessEnabled: false,
nodeServerEdition: "string",
coordinatorServerEdition: "string",
nodeVcores: 0,
pointInTimeInUtc: "string",
preferredPrimaryZone: "string",
citusVersion: "string",
shardsOnCoordinatorEnabled: false,
sourceLocation: "string",
sourceResourceId: "string",
sqlVersion: "string",
tags: {
string: "string",
},
});
type: azure:cosmosdb:PostgresqlCluster
properties:
administratorLoginPassword: string
citusVersion: string
coordinatorPublicIpAccessEnabled: false
coordinatorServerEdition: string
coordinatorStorageQuotaInMb: 0
coordinatorVcoreCount: 0
haEnabled: false
location: string
maintenanceWindow:
dayOfWeek: 0
startHour: 0
startMinute: 0
name: string
nodeCount: 0
nodePublicIpAccessEnabled: false
nodeServerEdition: string
nodeStorageQuotaInMb: 0
nodeVcores: 0
pointInTimeInUtc: string
preferredPrimaryZone: string
resourceGroupName: string
shardsOnCoordinatorEnabled: false
sourceLocation: string
sourceResourceId: string
sqlVersion: string
tags:
string: string
PostgresqlCluster Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The PostgresqlCluster resource accepts the following input properties:
- Node
Count int - The worker node count of the Azure Cosmos DB for PostgreSQL Cluster. Possible value is between
0
and20
except1
. - Resource
Group stringName - The name of the Resource Group where the Azure Cosmos DB for PostgreSQL Cluster should exist. Changing this forces a new resource to be created.
- Administrator
Login stringPassword - The password of the administrator login. This is required when
source_resource_id
is not set. - Citus
Version string - The citus extension version on the Azure Cosmos DB for PostgreSQL Cluster. Possible values are
8.3
,9.0
,9.1
,9.2
,9.3
,9.4
,9.5
,10.0
,10.1
,10.2
,11.0
,11.1
,11.2
,11.3
and12.1
. - Coordinator
Public boolIp Access Enabled - Is public access enabled on coordinator? Defaults to
true
. - Coordinator
Server stringEdition - The edition of the coordinator server. Possible values are
BurstableGeneralPurpose
,BurstableMemoryOptimized
,GeneralPurpose
andMemoryOptimized
. Defaults toGeneralPurpose
. - Coordinator
Storage intQuota In Mb The coordinator storage allowed for the Azure Cosmos DB for PostgreSQL Cluster. Possible values are
32768
,65536
,131072
,262144
,524288
,1048576
,2097152
,4194304
,8388608
,16777216
, and33554432
.NOTE: More information on the types of compute resources available for CosmosDB can be found in the product documentation
- Coordinator
Vcore intCount - The coordinator vCore count for the Azure Cosmos DB for PostgreSQL Cluster. Possible values are
1
,2
,4
,8
,16
,32
,64
and96
. - Ha
Enabled bool - Is high availability enabled for the Azure Cosmos DB for PostgreSQL cluster? Defaults to
false
. - Location string
- The Azure Region where the Azure Cosmos DB for PostgreSQL Cluster should exist. Changing this forces a new resource to be created.
- Maintenance
Window PostgresqlCluster Maintenance Window - A
maintenance_window
block as defined below. - Name string
- The name which should be used for this Azure Cosmos DB for PostgreSQL Cluster. Changing this forces a new resource to be created.
- Node
Public boolIp Access Enabled - Is public access enabled on worker nodes. Defaults to
false
. - Node
Server stringEdition - The edition of the node server. Possible values are
BurstableGeneralPurpose
,BurstableMemoryOptimized
,GeneralPurpose
andMemoryOptimized
. Defaults toMemoryOptimized
. - Node
Storage intQuota In Mb - The storage quota in MB on each worker node. Possible values are
32768
,65536
,131072
,262144
,524288
,1048576
,2097152
,4194304
,8388608
and16777216
. - Node
Vcores int - The vCores count on each worker node. Possible values are
1
,2
,4
,8
,16
,32
,64
,96
and104
. - Point
In stringTime In Utc - The date and time in UTC (ISO8601 format) for the Azure Cosmos DB for PostgreSQL cluster restore. Changing this forces a new resource to be created.
- Preferred
Primary stringZone - The preferred primary availability zone for the Azure Cosmos DB for PostgreSQL cluster.
- bool
- Is shards on coordinator enabled for the Azure Cosmos DB for PostgreSQL cluster.
- Source
Location string - The Azure region of the source Azure Cosmos DB for PostgreSQL cluster for read replica clusters. Changing this forces a new resource to be created.
- Source
Resource stringId - The resource ID of the source Azure Cosmos DB for PostgreSQL cluster for read replica clusters. Changing this forces a new resource to be created.
- Sql
Version string - The major PostgreSQL version on the Azure Cosmos DB for PostgreSQL cluster. Possible values are
11
,12
,13
,14
,15
and16
. - Dictionary<string, string>
- A mapping of tags which should be assigned to the Azure Cosmos DB for PostgreSQL Cluster.
- Node
Count int - The worker node count of the Azure Cosmos DB for PostgreSQL Cluster. Possible value is between
0
and20
except1
. - Resource
Group stringName - The name of the Resource Group where the Azure Cosmos DB for PostgreSQL Cluster should exist. Changing this forces a new resource to be created.
- Administrator
Login stringPassword - The password of the administrator login. This is required when
source_resource_id
is not set. - Citus
Version string - The citus extension version on the Azure Cosmos DB for PostgreSQL Cluster. Possible values are
8.3
,9.0
,9.1
,9.2
,9.3
,9.4
,9.5
,10.0
,10.1
,10.2
,11.0
,11.1
,11.2
,11.3
and12.1
. - Coordinator
Public boolIp Access Enabled - Is public access enabled on coordinator? Defaults to
true
. - Coordinator
Server stringEdition - The edition of the coordinator server. Possible values are
BurstableGeneralPurpose
,BurstableMemoryOptimized
,GeneralPurpose
andMemoryOptimized
. Defaults toGeneralPurpose
. - Coordinator
Storage intQuota In Mb The coordinator storage allowed for the Azure Cosmos DB for PostgreSQL Cluster. Possible values are
32768
,65536
,131072
,262144
,524288
,1048576
,2097152
,4194304
,8388608
,16777216
, and33554432
.NOTE: More information on the types of compute resources available for CosmosDB can be found in the product documentation
- Coordinator
Vcore intCount - The coordinator vCore count for the Azure Cosmos DB for PostgreSQL Cluster. Possible values are
1
,2
,4
,8
,16
,32
,64
and96
. - Ha
Enabled bool - Is high availability enabled for the Azure Cosmos DB for PostgreSQL cluster? Defaults to
false
. - Location string
- The Azure Region where the Azure Cosmos DB for PostgreSQL Cluster should exist. Changing this forces a new resource to be created.
- Maintenance
Window PostgresqlCluster Maintenance Window Args - A
maintenance_window
block as defined below. - Name string
- The name which should be used for this Azure Cosmos DB for PostgreSQL Cluster. Changing this forces a new resource to be created.
- Node
Public boolIp Access Enabled - Is public access enabled on worker nodes. Defaults to
false
. - Node
Server stringEdition - The edition of the node server. Possible values are
BurstableGeneralPurpose
,BurstableMemoryOptimized
,GeneralPurpose
andMemoryOptimized
. Defaults toMemoryOptimized
. - Node
Storage intQuota In Mb - The storage quota in MB on each worker node. Possible values are
32768
,65536
,131072
,262144
,524288
,1048576
,2097152
,4194304
,8388608
and16777216
. - Node
Vcores int - The vCores count on each worker node. Possible values are
1
,2
,4
,8
,16
,32
,64
,96
and104
. - Point
In stringTime In Utc - The date and time in UTC (ISO8601 format) for the Azure Cosmos DB for PostgreSQL cluster restore. Changing this forces a new resource to be created.
- Preferred
Primary stringZone - The preferred primary availability zone for the Azure Cosmos DB for PostgreSQL cluster.
- bool
- Is shards on coordinator enabled for the Azure Cosmos DB for PostgreSQL cluster.
- Source
Location string - The Azure region of the source Azure Cosmos DB for PostgreSQL cluster for read replica clusters. Changing this forces a new resource to be created.
- Source
Resource stringId - The resource ID of the source Azure Cosmos DB for PostgreSQL cluster for read replica clusters. Changing this forces a new resource to be created.
- Sql
Version string - The major PostgreSQL version on the Azure Cosmos DB for PostgreSQL cluster. Possible values are
11
,12
,13
,14
,15
and16
. - map[string]string
- A mapping of tags which should be assigned to the Azure Cosmos DB for PostgreSQL Cluster.
- node
Count Integer - The worker node count of the Azure Cosmos DB for PostgreSQL Cluster. Possible value is between
0
and20
except1
. - resource
Group StringName - The name of the Resource Group where the Azure Cosmos DB for PostgreSQL Cluster should exist. Changing this forces a new resource to be created.
- administrator
Login StringPassword - The password of the administrator login. This is required when
source_resource_id
is not set. - citus
Version String - The citus extension version on the Azure Cosmos DB for PostgreSQL Cluster. Possible values are
8.3
,9.0
,9.1
,9.2
,9.3
,9.4
,9.5
,10.0
,10.1
,10.2
,11.0
,11.1
,11.2
,11.3
and12.1
. - coordinator
Public BooleanIp Access Enabled - Is public access enabled on coordinator? Defaults to
true
. - coordinator
Server StringEdition - The edition of the coordinator server. Possible values are
BurstableGeneralPurpose
,BurstableMemoryOptimized
,GeneralPurpose
andMemoryOptimized
. Defaults toGeneralPurpose
. - coordinator
Storage IntegerQuota In Mb The coordinator storage allowed for the Azure Cosmos DB for PostgreSQL Cluster. Possible values are
32768
,65536
,131072
,262144
,524288
,1048576
,2097152
,4194304
,8388608
,16777216
, and33554432
.NOTE: More information on the types of compute resources available for CosmosDB can be found in the product documentation
- coordinator
Vcore IntegerCount - The coordinator vCore count for the Azure Cosmos DB for PostgreSQL Cluster. Possible values are
1
,2
,4
,8
,16
,32
,64
and96
. - ha
Enabled Boolean - Is high availability enabled for the Azure Cosmos DB for PostgreSQL cluster? Defaults to
false
. - location String
- The Azure Region where the Azure Cosmos DB for PostgreSQL Cluster should exist. Changing this forces a new resource to be created.
- maintenance
Window PostgresqlCluster Maintenance Window - A
maintenance_window
block as defined below. - name String
- The name which should be used for this Azure Cosmos DB for PostgreSQL Cluster. Changing this forces a new resource to be created.
- node
Public BooleanIp Access Enabled - Is public access enabled on worker nodes. Defaults to
false
. - node
Server StringEdition - The edition of the node server. Possible values are
BurstableGeneralPurpose
,BurstableMemoryOptimized
,GeneralPurpose
andMemoryOptimized
. Defaults toMemoryOptimized
. - node
Storage IntegerQuota In Mb - The storage quota in MB on each worker node. Possible values are
32768
,65536
,131072
,262144
,524288
,1048576
,2097152
,4194304
,8388608
and16777216
. - node
Vcores Integer - The vCores count on each worker node. Possible values are
1
,2
,4
,8
,16
,32
,64
,96
and104
. - point
In StringTime In Utc - The date and time in UTC (ISO8601 format) for the Azure Cosmos DB for PostgreSQL cluster restore. Changing this forces a new resource to be created.
- preferred
Primary StringZone - The preferred primary availability zone for the Azure Cosmos DB for PostgreSQL cluster.
- Boolean
- Is shards on coordinator enabled for the Azure Cosmos DB for PostgreSQL cluster.
- source
Location String - The Azure region of the source Azure Cosmos DB for PostgreSQL cluster for read replica clusters. Changing this forces a new resource to be created.
- source
Resource StringId - The resource ID of the source Azure Cosmos DB for PostgreSQL cluster for read replica clusters. Changing this forces a new resource to be created.
- sql
Version String - The major PostgreSQL version on the Azure Cosmos DB for PostgreSQL cluster. Possible values are
11
,12
,13
,14
,15
and16
. - Map<String,String>
- A mapping of tags which should be assigned to the Azure Cosmos DB for PostgreSQL Cluster.
- node
Count number - The worker node count of the Azure Cosmos DB for PostgreSQL Cluster. Possible value is between
0
and20
except1
. - resource
Group stringName - The name of the Resource Group where the Azure Cosmos DB for PostgreSQL Cluster should exist. Changing this forces a new resource to be created.
- administrator
Login stringPassword - The password of the administrator login. This is required when
source_resource_id
is not set. - citus
Version string - The citus extension version on the Azure Cosmos DB for PostgreSQL Cluster. Possible values are
8.3
,9.0
,9.1
,9.2
,9.3
,9.4
,9.5
,10.0
,10.1
,10.2
,11.0
,11.1
,11.2
,11.3
and12.1
. - coordinator
Public booleanIp Access Enabled - Is public access enabled on coordinator? Defaults to
true
. - coordinator
Server stringEdition - The edition of the coordinator server. Possible values are
BurstableGeneralPurpose
,BurstableMemoryOptimized
,GeneralPurpose
andMemoryOptimized
. Defaults toGeneralPurpose
. - coordinator
Storage numberQuota In Mb The coordinator storage allowed for the Azure Cosmos DB for PostgreSQL Cluster. Possible values are
32768
,65536
,131072
,262144
,524288
,1048576
,2097152
,4194304
,8388608
,16777216
, and33554432
.NOTE: More information on the types of compute resources available for CosmosDB can be found in the product documentation
- coordinator
Vcore numberCount - The coordinator vCore count for the Azure Cosmos DB for PostgreSQL Cluster. Possible values are
1
,2
,4
,8
,16
,32
,64
and96
. - ha
Enabled boolean - Is high availability enabled for the Azure Cosmos DB for PostgreSQL cluster? Defaults to
false
. - location string
- The Azure Region where the Azure Cosmos DB for PostgreSQL Cluster should exist. Changing this forces a new resource to be created.
- maintenance
Window PostgresqlCluster Maintenance Window - A
maintenance_window
block as defined below. - name string
- The name which should be used for this Azure Cosmos DB for PostgreSQL Cluster. Changing this forces a new resource to be created.
- node
Public booleanIp Access Enabled - Is public access enabled on worker nodes. Defaults to
false
. - node
Server stringEdition - The edition of the node server. Possible values are
BurstableGeneralPurpose
,BurstableMemoryOptimized
,GeneralPurpose
andMemoryOptimized
. Defaults toMemoryOptimized
. - node
Storage numberQuota In Mb - The storage quota in MB on each worker node. Possible values are
32768
,65536
,131072
,262144
,524288
,1048576
,2097152
,4194304
,8388608
and16777216
. - node
Vcores number - The vCores count on each worker node. Possible values are
1
,2
,4
,8
,16
,32
,64
,96
and104
. - point
In stringTime In Utc - The date and time in UTC (ISO8601 format) for the Azure Cosmos DB for PostgreSQL cluster restore. Changing this forces a new resource to be created.
- preferred
Primary stringZone - The preferred primary availability zone for the Azure Cosmos DB for PostgreSQL cluster.
- boolean
- Is shards on coordinator enabled for the Azure Cosmos DB for PostgreSQL cluster.
- source
Location string - The Azure region of the source Azure Cosmos DB for PostgreSQL cluster for read replica clusters. Changing this forces a new resource to be created.
- source
Resource stringId - The resource ID of the source Azure Cosmos DB for PostgreSQL cluster for read replica clusters. Changing this forces a new resource to be created.
- sql
Version string - The major PostgreSQL version on the Azure Cosmos DB for PostgreSQL cluster. Possible values are
11
,12
,13
,14
,15
and16
. - {[key: string]: string}
- A mapping of tags which should be assigned to the Azure Cosmos DB for PostgreSQL Cluster.
- node_
count int - The worker node count of the Azure Cosmos DB for PostgreSQL Cluster. Possible value is between
0
and20
except1
. - resource_
group_ strname - The name of the Resource Group where the Azure Cosmos DB for PostgreSQL Cluster should exist. Changing this forces a new resource to be created.
- administrator_
login_ strpassword - The password of the administrator login. This is required when
source_resource_id
is not set. - citus_
version str - The citus extension version on the Azure Cosmos DB for PostgreSQL Cluster. Possible values are
8.3
,9.0
,9.1
,9.2
,9.3
,9.4
,9.5
,10.0
,10.1
,10.2
,11.0
,11.1
,11.2
,11.3
and12.1
. - coordinator_
public_ boolip_ access_ enabled - Is public access enabled on coordinator? Defaults to
true
. - coordinator_
server_ stredition - The edition of the coordinator server. Possible values are
BurstableGeneralPurpose
,BurstableMemoryOptimized
,GeneralPurpose
andMemoryOptimized
. Defaults toGeneralPurpose
. - coordinator_
storage_ intquota_ in_ mb The coordinator storage allowed for the Azure Cosmos DB for PostgreSQL Cluster. Possible values are
32768
,65536
,131072
,262144
,524288
,1048576
,2097152
,4194304
,8388608
,16777216
, and33554432
.NOTE: More information on the types of compute resources available for CosmosDB can be found in the product documentation
- coordinator_
vcore_ intcount - The coordinator vCore count for the Azure Cosmos DB for PostgreSQL Cluster. Possible values are
1
,2
,4
,8
,16
,32
,64
and96
. - ha_
enabled bool - Is high availability enabled for the Azure Cosmos DB for PostgreSQL cluster? Defaults to
false
. - location str
- The Azure Region where the Azure Cosmos DB for PostgreSQL Cluster should exist. Changing this forces a new resource to be created.
- maintenance_
window PostgresqlCluster Maintenance Window Args - A
maintenance_window
block as defined below. - name str
- The name which should be used for this Azure Cosmos DB for PostgreSQL Cluster. Changing this forces a new resource to be created.
- node_
public_ boolip_ access_ enabled - Is public access enabled on worker nodes. Defaults to
false
. - node_
server_ stredition - The edition of the node server. Possible values are
BurstableGeneralPurpose
,BurstableMemoryOptimized
,GeneralPurpose
andMemoryOptimized
. Defaults toMemoryOptimized
. - node_
storage_ intquota_ in_ mb - The storage quota in MB on each worker node. Possible values are
32768
,65536
,131072
,262144
,524288
,1048576
,2097152
,4194304
,8388608
and16777216
. - node_
vcores int - The vCores count on each worker node. Possible values are
1
,2
,4
,8
,16
,32
,64
,96
and104
. - point_
in_ strtime_ in_ utc - The date and time in UTC (ISO8601 format) for the Azure Cosmos DB for PostgreSQL cluster restore. Changing this forces a new resource to be created.
- preferred_
primary_ strzone - The preferred primary availability zone for the Azure Cosmos DB for PostgreSQL cluster.
- bool
- Is shards on coordinator enabled for the Azure Cosmos DB for PostgreSQL cluster.
- source_
location str - The Azure region of the source Azure Cosmos DB for PostgreSQL cluster for read replica clusters. Changing this forces a new resource to be created.
- source_
resource_ strid - The resource ID of the source Azure Cosmos DB for PostgreSQL cluster for read replica clusters. Changing this forces a new resource to be created.
- sql_
version str - The major PostgreSQL version on the Azure Cosmos DB for PostgreSQL cluster. Possible values are
11
,12
,13
,14
,15
and16
. - Mapping[str, str]
- A mapping of tags which should be assigned to the Azure Cosmos DB for PostgreSQL Cluster.
- node
Count Number - The worker node count of the Azure Cosmos DB for PostgreSQL Cluster. Possible value is between
0
and20
except1
. - resource
Group StringName - The name of the Resource Group where the Azure Cosmos DB for PostgreSQL Cluster should exist. Changing this forces a new resource to be created.
- administrator
Login StringPassword - The password of the administrator login. This is required when
source_resource_id
is not set. - citus
Version String - The citus extension version on the Azure Cosmos DB for PostgreSQL Cluster. Possible values are
8.3
,9.0
,9.1
,9.2
,9.3
,9.4
,9.5
,10.0
,10.1
,10.2
,11.0
,11.1
,11.2
,11.3
and12.1
. - coordinator
Public BooleanIp Access Enabled - Is public access enabled on coordinator? Defaults to
true
. - coordinator
Server StringEdition - The edition of the coordinator server. Possible values are
BurstableGeneralPurpose
,BurstableMemoryOptimized
,GeneralPurpose
andMemoryOptimized
. Defaults toGeneralPurpose
. - coordinator
Storage NumberQuota In Mb The coordinator storage allowed for the Azure Cosmos DB for PostgreSQL Cluster. Possible values are
32768
,65536
,131072
,262144
,524288
,1048576
,2097152
,4194304
,8388608
,16777216
, and33554432
.NOTE: More information on the types of compute resources available for CosmosDB can be found in the product documentation
- coordinator
Vcore NumberCount - The coordinator vCore count for the Azure Cosmos DB for PostgreSQL Cluster. Possible values are
1
,2
,4
,8
,16
,32
,64
and96
. - ha
Enabled Boolean - Is high availability enabled for the Azure Cosmos DB for PostgreSQL cluster? Defaults to
false
. - location String
- The Azure Region where the Azure Cosmos DB for PostgreSQL Cluster should exist. Changing this forces a new resource to be created.
- maintenance
Window Property Map - A
maintenance_window
block as defined below. - name String
- The name which should be used for this Azure Cosmos DB for PostgreSQL Cluster. Changing this forces a new resource to be created.
- node
Public BooleanIp Access Enabled - Is public access enabled on worker nodes. Defaults to
false
. - node
Server StringEdition - The edition of the node server. Possible values are
BurstableGeneralPurpose
,BurstableMemoryOptimized
,GeneralPurpose
andMemoryOptimized
. Defaults toMemoryOptimized
. - node
Storage NumberQuota In Mb - The storage quota in MB on each worker node. Possible values are
32768
,65536
,131072
,262144
,524288
,1048576
,2097152
,4194304
,8388608
and16777216
. - node
Vcores Number - The vCores count on each worker node. Possible values are
1
,2
,4
,8
,16
,32
,64
,96
and104
. - point
In StringTime In Utc - The date and time in UTC (ISO8601 format) for the Azure Cosmos DB for PostgreSQL cluster restore. Changing this forces a new resource to be created.
- preferred
Primary StringZone - The preferred primary availability zone for the Azure Cosmos DB for PostgreSQL cluster.
- Boolean
- Is shards on coordinator enabled for the Azure Cosmos DB for PostgreSQL cluster.
- source
Location String - The Azure region of the source Azure Cosmos DB for PostgreSQL cluster for read replica clusters. Changing this forces a new resource to be created.
- source
Resource StringId - The resource ID of the source Azure Cosmos DB for PostgreSQL cluster for read replica clusters. Changing this forces a new resource to be created.
- sql
Version String - The major PostgreSQL version on the Azure Cosmos DB for PostgreSQL cluster. Possible values are
11
,12
,13
,14
,15
and16
. - Map<String>
- A mapping of tags which should be assigned to the Azure Cosmos DB for PostgreSQL Cluster.
Outputs
All input properties are implicitly available as output properties. Additionally, the PostgresqlCluster resource produces the following output properties:
- Earliest
Restore stringTime - The earliest restore point time (ISO8601 format) for the Azure Cosmos DB for PostgreSQL Cluster.
- Id string
- The provider-assigned unique ID for this managed resource.
- Servers
List<Postgresql
Cluster Server> - A
servers
block as defined below.
- Earliest
Restore stringTime - The earliest restore point time (ISO8601 format) for the Azure Cosmos DB for PostgreSQL Cluster.
- Id string
- The provider-assigned unique ID for this managed resource.
- Servers
[]Postgresql
Cluster Server - A
servers
block as defined below.
- earliest
Restore StringTime - The earliest restore point time (ISO8601 format) for the Azure Cosmos DB for PostgreSQL Cluster.
- id String
- The provider-assigned unique ID for this managed resource.
- servers
List<Postgresql
Cluster Server> - A
servers
block as defined below.
- earliest
Restore stringTime - The earliest restore point time (ISO8601 format) for the Azure Cosmos DB for PostgreSQL Cluster.
- id string
- The provider-assigned unique ID for this managed resource.
- servers
Postgresql
Cluster Server[] - A
servers
block as defined below.
- earliest_
restore_ strtime - The earliest restore point time (ISO8601 format) for the Azure Cosmos DB for PostgreSQL Cluster.
- id str
- The provider-assigned unique ID for this managed resource.
- servers
Sequence[Postgresql
Cluster Server] - A
servers
block as defined below.
- earliest
Restore StringTime - The earliest restore point time (ISO8601 format) for the Azure Cosmos DB for PostgreSQL Cluster.
- id String
- The provider-assigned unique ID for this managed resource.
- servers List<Property Map>
- A
servers
block as defined below.
Look up Existing PostgresqlCluster Resource
Get an existing PostgresqlCluster resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: PostgresqlClusterState, opts?: CustomResourceOptions): PostgresqlCluster
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
administrator_login_password: Optional[str] = None,
citus_version: Optional[str] = None,
coordinator_public_ip_access_enabled: Optional[bool] = None,
coordinator_server_edition: Optional[str] = None,
coordinator_storage_quota_in_mb: Optional[int] = None,
coordinator_vcore_count: Optional[int] = None,
earliest_restore_time: Optional[str] = None,
ha_enabled: Optional[bool] = None,
location: Optional[str] = None,
maintenance_window: Optional[PostgresqlClusterMaintenanceWindowArgs] = None,
name: Optional[str] = None,
node_count: Optional[int] = None,
node_public_ip_access_enabled: Optional[bool] = None,
node_server_edition: Optional[str] = None,
node_storage_quota_in_mb: Optional[int] = None,
node_vcores: Optional[int] = None,
point_in_time_in_utc: Optional[str] = None,
preferred_primary_zone: Optional[str] = None,
resource_group_name: Optional[str] = None,
servers: Optional[Sequence[PostgresqlClusterServerArgs]] = None,
shards_on_coordinator_enabled: Optional[bool] = None,
source_location: Optional[str] = None,
source_resource_id: Optional[str] = None,
sql_version: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None) -> PostgresqlCluster
func GetPostgresqlCluster(ctx *Context, name string, id IDInput, state *PostgresqlClusterState, opts ...ResourceOption) (*PostgresqlCluster, error)
public static PostgresqlCluster Get(string name, Input<string> id, PostgresqlClusterState? state, CustomResourceOptions? opts = null)
public static PostgresqlCluster get(String name, Output<String> id, PostgresqlClusterState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Administrator
Login stringPassword - The password of the administrator login. This is required when
source_resource_id
is not set. - Citus
Version string - The citus extension version on the Azure Cosmos DB for PostgreSQL Cluster. Possible values are
8.3
,9.0
,9.1
,9.2
,9.3
,9.4
,9.5
,10.0
,10.1
,10.2
,11.0
,11.1
,11.2
,11.3
and12.1
. - Coordinator
Public boolIp Access Enabled - Is public access enabled on coordinator? Defaults to
true
. - Coordinator
Server stringEdition - The edition of the coordinator server. Possible values are
BurstableGeneralPurpose
,BurstableMemoryOptimized
,GeneralPurpose
andMemoryOptimized
. Defaults toGeneralPurpose
. - Coordinator
Storage intQuota In Mb The coordinator storage allowed for the Azure Cosmos DB for PostgreSQL Cluster. Possible values are
32768
,65536
,131072
,262144
,524288
,1048576
,2097152
,4194304
,8388608
,16777216
, and33554432
.NOTE: More information on the types of compute resources available for CosmosDB can be found in the product documentation
- Coordinator
Vcore intCount - The coordinator vCore count for the Azure Cosmos DB for PostgreSQL Cluster. Possible values are
1
,2
,4
,8
,16
,32
,64
and96
. - Earliest
Restore stringTime - The earliest restore point time (ISO8601 format) for the Azure Cosmos DB for PostgreSQL Cluster.
- Ha
Enabled bool - Is high availability enabled for the Azure Cosmos DB for PostgreSQL cluster? Defaults to
false
. - Location string
- The Azure Region where the Azure Cosmos DB for PostgreSQL Cluster should exist. Changing this forces a new resource to be created.
- Maintenance
Window PostgresqlCluster Maintenance Window - A
maintenance_window
block as defined below. - Name string
- The name which should be used for this Azure Cosmos DB for PostgreSQL Cluster. Changing this forces a new resource to be created.
- Node
Count int - The worker node count of the Azure Cosmos DB for PostgreSQL Cluster. Possible value is between
0
and20
except1
. - Node
Public boolIp Access Enabled - Is public access enabled on worker nodes. Defaults to
false
. - Node
Server stringEdition - The edition of the node server. Possible values are
BurstableGeneralPurpose
,BurstableMemoryOptimized
,GeneralPurpose
andMemoryOptimized
. Defaults toMemoryOptimized
. - Node
Storage intQuota In Mb - The storage quota in MB on each worker node. Possible values are
32768
,65536
,131072
,262144
,524288
,1048576
,2097152
,4194304
,8388608
and16777216
. - Node
Vcores int - The vCores count on each worker node. Possible values are
1
,2
,4
,8
,16
,32
,64
,96
and104
. - Point
In stringTime In Utc - The date and time in UTC (ISO8601 format) for the Azure Cosmos DB for PostgreSQL cluster restore. Changing this forces a new resource to be created.
- Preferred
Primary stringZone - The preferred primary availability zone for the Azure Cosmos DB for PostgreSQL cluster.
- Resource
Group stringName - The name of the Resource Group where the Azure Cosmos DB for PostgreSQL Cluster should exist. Changing this forces a new resource to be created.
- Servers
List<Postgresql
Cluster Server> - A
servers
block as defined below. - Shards
On boolCoordinator Enabled - Is shards on coordinator enabled for the Azure Cosmos DB for PostgreSQL cluster.
- Source
Location string - The Azure region of the source Azure Cosmos DB for PostgreSQL cluster for read replica clusters. Changing this forces a new resource to be created.
- Source
Resource stringId - The resource ID of the source Azure Cosmos DB for PostgreSQL cluster for read replica clusters. Changing this forces a new resource to be created.
- Sql
Version string - The major PostgreSQL version on the Azure Cosmos DB for PostgreSQL cluster. Possible values are
11
,12
,13
,14
,15
and16
. - Dictionary<string, string>
- A mapping of tags which should be assigned to the Azure Cosmos DB for PostgreSQL Cluster.
- Administrator
Login stringPassword - The password of the administrator login. This is required when
source_resource_id
is not set. - Citus
Version string - The citus extension version on the Azure Cosmos DB for PostgreSQL Cluster. Possible values are
8.3
,9.0
,9.1
,9.2
,9.3
,9.4
,9.5
,10.0
,10.1
,10.2
,11.0
,11.1
,11.2
,11.3
and12.1
. - Coordinator
Public boolIp Access Enabled - Is public access enabled on coordinator? Defaults to
true
. - Coordinator
Server stringEdition - The edition of the coordinator server. Possible values are
BurstableGeneralPurpose
,BurstableMemoryOptimized
,GeneralPurpose
andMemoryOptimized
. Defaults toGeneralPurpose
. - Coordinator
Storage intQuota In Mb The coordinator storage allowed for the Azure Cosmos DB for PostgreSQL Cluster. Possible values are
32768
,65536
,131072
,262144
,524288
,1048576
,2097152
,4194304
,8388608
,16777216
, and33554432
.NOTE: More information on the types of compute resources available for CosmosDB can be found in the product documentation
- Coordinator
Vcore intCount - The coordinator vCore count for the Azure Cosmos DB for PostgreSQL Cluster. Possible values are
1
,2
,4
,8
,16
,32
,64
and96
. - Earliest
Restore stringTime - The earliest restore point time (ISO8601 format) for the Azure Cosmos DB for PostgreSQL Cluster.
- Ha
Enabled bool - Is high availability enabled for the Azure Cosmos DB for PostgreSQL cluster? Defaults to
false
. - Location string
- The Azure Region where the Azure Cosmos DB for PostgreSQL Cluster should exist. Changing this forces a new resource to be created.
- Maintenance
Window PostgresqlCluster Maintenance Window Args - A
maintenance_window
block as defined below. - Name string
- The name which should be used for this Azure Cosmos DB for PostgreSQL Cluster. Changing this forces a new resource to be created.
- Node
Count int - The worker node count of the Azure Cosmos DB for PostgreSQL Cluster. Possible value is between
0
and20
except1
. - Node
Public boolIp Access Enabled - Is public access enabled on worker nodes. Defaults to
false
. - Node
Server stringEdition - The edition of the node server. Possible values are
BurstableGeneralPurpose
,BurstableMemoryOptimized
,GeneralPurpose
andMemoryOptimized
. Defaults toMemoryOptimized
. - Node
Storage intQuota In Mb - The storage quota in MB on each worker node. Possible values are
32768
,65536
,131072
,262144
,524288
,1048576
,2097152
,4194304
,8388608
and16777216
. - Node
Vcores int - The vCores count on each worker node. Possible values are
1
,2
,4
,8
,16
,32
,64
,96
and104
. - Point
In stringTime In Utc - The date and time in UTC (ISO8601 format) for the Azure Cosmos DB for PostgreSQL cluster restore. Changing this forces a new resource to be created.
- Preferred
Primary stringZone - The preferred primary availability zone for the Azure Cosmos DB for PostgreSQL cluster.
- Resource
Group stringName - The name of the Resource Group where the Azure Cosmos DB for PostgreSQL Cluster should exist. Changing this forces a new resource to be created.
- Servers
[]Postgresql
Cluster Server Args - A
servers
block as defined below. - Shards
On boolCoordinator Enabled - Is shards on coordinator enabled for the Azure Cosmos DB for PostgreSQL cluster.
- Source
Location string - The Azure region of the source Azure Cosmos DB for PostgreSQL cluster for read replica clusters. Changing this forces a new resource to be created.
- Source
Resource stringId - The resource ID of the source Azure Cosmos DB for PostgreSQL cluster for read replica clusters. Changing this forces a new resource to be created.
- Sql
Version string - The major PostgreSQL version on the Azure Cosmos DB for PostgreSQL cluster. Possible values are
11
,12
,13
,14
,15
and16
. - map[string]string
- A mapping of tags which should be assigned to the Azure Cosmos DB for PostgreSQL Cluster.
- administrator
Login StringPassword - The password of the administrator login. This is required when
source_resource_id
is not set. - citus
Version String - The citus extension version on the Azure Cosmos DB for PostgreSQL Cluster. Possible values are
8.3
,9.0
,9.1
,9.2
,9.3
,9.4
,9.5
,10.0
,10.1
,10.2
,11.0
,11.1
,11.2
,11.3
and12.1
. - coordinator
Public BooleanIp Access Enabled - Is public access enabled on coordinator? Defaults to
true
. - coordinator
Server StringEdition - The edition of the coordinator server. Possible values are
BurstableGeneralPurpose
,BurstableMemoryOptimized
,GeneralPurpose
andMemoryOptimized
. Defaults toGeneralPurpose
. - coordinator
Storage IntegerQuota In Mb The coordinator storage allowed for the Azure Cosmos DB for PostgreSQL Cluster. Possible values are
32768
,65536
,131072
,262144
,524288
,1048576
,2097152
,4194304
,8388608
,16777216
, and33554432
.NOTE: More information on the types of compute resources available for CosmosDB can be found in the product documentation
- coordinator
Vcore IntegerCount - The coordinator vCore count for the Azure Cosmos DB for PostgreSQL Cluster. Possible values are
1
,2
,4
,8
,16
,32
,64
and96
. - earliest
Restore StringTime - The earliest restore point time (ISO8601 format) for the Azure Cosmos DB for PostgreSQL Cluster.
- ha
Enabled Boolean - Is high availability enabled for the Azure Cosmos DB for PostgreSQL cluster? Defaults to
false
. - location String
- The Azure Region where the Azure Cosmos DB for PostgreSQL Cluster should exist. Changing this forces a new resource to be created.
- maintenance
Window PostgresqlCluster Maintenance Window - A
maintenance_window
block as defined below. - name String
- The name which should be used for this Azure Cosmos DB for PostgreSQL Cluster. Changing this forces a new resource to be created.
- node
Count Integer - The worker node count of the Azure Cosmos DB for PostgreSQL Cluster. Possible value is between
0
and20
except1
. - node
Public BooleanIp Access Enabled - Is public access enabled on worker nodes. Defaults to
false
. - node
Server StringEdition - The edition of the node server. Possible values are
BurstableGeneralPurpose
,BurstableMemoryOptimized
,GeneralPurpose
andMemoryOptimized
. Defaults toMemoryOptimized
. - node
Storage IntegerQuota In Mb - The storage quota in MB on each worker node. Possible values are
32768
,65536
,131072
,262144
,524288
,1048576
,2097152
,4194304
,8388608
and16777216
. - node
Vcores Integer - The vCores count on each worker node. Possible values are
1
,2
,4
,8
,16
,32
,64
,96
and104
. - point
In StringTime In Utc - The date and time in UTC (ISO8601 format) for the Azure Cosmos DB for PostgreSQL cluster restore. Changing this forces a new resource to be created.
- preferred
Primary StringZone - The preferred primary availability zone for the Azure Cosmos DB for PostgreSQL cluster.
- resource
Group StringName - The name of the Resource Group where the Azure Cosmos DB for PostgreSQL Cluster should exist. Changing this forces a new resource to be created.
- servers
List<Postgresql
Cluster Server> - A
servers
block as defined below. - shards
On BooleanCoordinator Enabled - Is shards on coordinator enabled for the Azure Cosmos DB for PostgreSQL cluster.
- source
Location String - The Azure region of the source Azure Cosmos DB for PostgreSQL cluster for read replica clusters. Changing this forces a new resource to be created.
- source
Resource StringId - The resource ID of the source Azure Cosmos DB for PostgreSQL cluster for read replica clusters. Changing this forces a new resource to be created.
- sql
Version String - The major PostgreSQL version on the Azure Cosmos DB for PostgreSQL cluster. Possible values are
11
,12
,13
,14
,15
and16
. - Map<String,String>
- A mapping of tags which should be assigned to the Azure Cosmos DB for PostgreSQL Cluster.
- administrator
Login stringPassword - The password of the administrator login. This is required when
source_resource_id
is not set. - citus
Version string - The citus extension version on the Azure Cosmos DB for PostgreSQL Cluster. Possible values are
8.3
,9.0
,9.1
,9.2
,9.3
,9.4
,9.5
,10.0
,10.1
,10.2
,11.0
,11.1
,11.2
,11.3
and12.1
. - coordinator
Public booleanIp Access Enabled - Is public access enabled on coordinator? Defaults to
true
. - coordinator
Server stringEdition - The edition of the coordinator server. Possible values are
BurstableGeneralPurpose
,BurstableMemoryOptimized
,GeneralPurpose
andMemoryOptimized
. Defaults toGeneralPurpose
. - coordinator
Storage numberQuota In Mb The coordinator storage allowed for the Azure Cosmos DB for PostgreSQL Cluster. Possible values are
32768
,65536
,131072
,262144
,524288
,1048576
,2097152
,4194304
,8388608
,16777216
, and33554432
.NOTE: More information on the types of compute resources available for CosmosDB can be found in the product documentation
- coordinator
Vcore numberCount - The coordinator vCore count for the Azure Cosmos DB for PostgreSQL Cluster. Possible values are
1
,2
,4
,8
,16
,32
,64
and96
. - earliest
Restore stringTime - The earliest restore point time (ISO8601 format) for the Azure Cosmos DB for PostgreSQL Cluster.
- ha
Enabled boolean - Is high availability enabled for the Azure Cosmos DB for PostgreSQL cluster? Defaults to
false
. - location string
- The Azure Region where the Azure Cosmos DB for PostgreSQL Cluster should exist. Changing this forces a new resource to be created.
- maintenance
Window PostgresqlCluster Maintenance Window - A
maintenance_window
block as defined below. - name string
- The name which should be used for this Azure Cosmos DB for PostgreSQL Cluster. Changing this forces a new resource to be created.
- node
Count number - The worker node count of the Azure Cosmos DB for PostgreSQL Cluster. Possible value is between
0
and20
except1
. - node
Public booleanIp Access Enabled - Is public access enabled on worker nodes. Defaults to
false
. - node
Server stringEdition - The edition of the node server. Possible values are
BurstableGeneralPurpose
,BurstableMemoryOptimized
,GeneralPurpose
andMemoryOptimized
. Defaults toMemoryOptimized
. - node
Storage numberQuota In Mb - The storage quota in MB on each worker node. Possible values are
32768
,65536
,131072
,262144
,524288
,1048576
,2097152
,4194304
,8388608
and16777216
. - node
Vcores number - The vCores count on each worker node. Possible values are
1
,2
,4
,8
,16
,32
,64
,96
and104
. - point
In stringTime In Utc - The date and time in UTC (ISO8601 format) for the Azure Cosmos DB for PostgreSQL cluster restore. Changing this forces a new resource to be created.
- preferred
Primary stringZone - The preferred primary availability zone for the Azure Cosmos DB for PostgreSQL cluster.
- resource
Group stringName - The name of the Resource Group where the Azure Cosmos DB for PostgreSQL Cluster should exist. Changing this forces a new resource to be created.
- servers
Postgresql
Cluster Server[] - A
servers
block as defined below. - shards
On booleanCoordinator Enabled - Is shards on coordinator enabled for the Azure Cosmos DB for PostgreSQL cluster.
- source
Location string - The Azure region of the source Azure Cosmos DB for PostgreSQL cluster for read replica clusters. Changing this forces a new resource to be created.
- source
Resource stringId - The resource ID of the source Azure Cosmos DB for PostgreSQL cluster for read replica clusters. Changing this forces a new resource to be created.
- sql
Version string - The major PostgreSQL version on the Azure Cosmos DB for PostgreSQL cluster. Possible values are
11
,12
,13
,14
,15
and16
. - {[key: string]: string}
- A mapping of tags which should be assigned to the Azure Cosmos DB for PostgreSQL Cluster.
- administrator_
login_ strpassword - The password of the administrator login. This is required when
source_resource_id
is not set. - citus_
version str - The citus extension version on the Azure Cosmos DB for PostgreSQL Cluster. Possible values are
8.3
,9.0
,9.1
,9.2
,9.3
,9.4
,9.5
,10.0
,10.1
,10.2
,11.0
,11.1
,11.2
,11.3
and12.1
. - coordinator_
public_ boolip_ access_ enabled - Is public access enabled on coordinator? Defaults to
true
. - coordinator_
server_ stredition - The edition of the coordinator server. Possible values are
BurstableGeneralPurpose
,BurstableMemoryOptimized
,GeneralPurpose
andMemoryOptimized
. Defaults toGeneralPurpose
. - coordinator_
storage_ intquota_ in_ mb The coordinator storage allowed for the Azure Cosmos DB for PostgreSQL Cluster. Possible values are
32768
,65536
,131072
,262144
,524288
,1048576
,2097152
,4194304
,8388608
,16777216
, and33554432
.NOTE: More information on the types of compute resources available for CosmosDB can be found in the product documentation
- coordinator_
vcore_ intcount - The coordinator vCore count for the Azure Cosmos DB for PostgreSQL Cluster. Possible values are
1
,2
,4
,8
,16
,32
,64
and96
. - earliest_
restore_ strtime - The earliest restore point time (ISO8601 format) for the Azure Cosmos DB for PostgreSQL Cluster.
- ha_
enabled bool - Is high availability enabled for the Azure Cosmos DB for PostgreSQL cluster? Defaults to
false
. - location str
- The Azure Region where the Azure Cosmos DB for PostgreSQL Cluster should exist. Changing this forces a new resource to be created.
- maintenance_
window PostgresqlCluster Maintenance Window Args - A
maintenance_window
block as defined below. - name str
- The name which should be used for this Azure Cosmos DB for PostgreSQL Cluster. Changing this forces a new resource to be created.
- node_
count int - The worker node count of the Azure Cosmos DB for PostgreSQL Cluster. Possible value is between
0
and20
except1
. - node_
public_ boolip_ access_ enabled - Is public access enabled on worker nodes. Defaults to
false
. - node_
server_ stredition - The edition of the node server. Possible values are
BurstableGeneralPurpose
,BurstableMemoryOptimized
,GeneralPurpose
andMemoryOptimized
. Defaults toMemoryOptimized
. - node_
storage_ intquota_ in_ mb - The storage quota in MB on each worker node. Possible values are
32768
,65536
,131072
,262144
,524288
,1048576
,2097152
,4194304
,8388608
and16777216
. - node_
vcores int - The vCores count on each worker node. Possible values are
1
,2
,4
,8
,16
,32
,64
,96
and104
. - point_
in_ strtime_ in_ utc - The date and time in UTC (ISO8601 format) for the Azure Cosmos DB for PostgreSQL cluster restore. Changing this forces a new resource to be created.
- preferred_
primary_ strzone - The preferred primary availability zone for the Azure Cosmos DB for PostgreSQL cluster.
- resource_
group_ strname - The name of the Resource Group where the Azure Cosmos DB for PostgreSQL Cluster should exist. Changing this forces a new resource to be created.
- servers
Sequence[Postgresql
Cluster Server Args] - A
servers
block as defined below. - shards_
on_ boolcoordinator_ enabled - Is shards on coordinator enabled for the Azure Cosmos DB for PostgreSQL cluster.
- source_
location str - The Azure region of the source Azure Cosmos DB for PostgreSQL cluster for read replica clusters. Changing this forces a new resource to be created.
- source_
resource_ strid - The resource ID of the source Azure Cosmos DB for PostgreSQL cluster for read replica clusters. Changing this forces a new resource to be created.
- sql_
version str - The major PostgreSQL version on the Azure Cosmos DB for PostgreSQL cluster. Possible values are
11
,12
,13
,14
,15
and16
. - Mapping[str, str]
- A mapping of tags which should be assigned to the Azure Cosmos DB for PostgreSQL Cluster.
- administrator
Login StringPassword - The password of the administrator login. This is required when
source_resource_id
is not set. - citus
Version String - The citus extension version on the Azure Cosmos DB for PostgreSQL Cluster. Possible values are
8.3
,9.0
,9.1
,9.2
,9.3
,9.4
,9.5
,10.0
,10.1
,10.2
,11.0
,11.1
,11.2
,11.3
and12.1
. - coordinator
Public BooleanIp Access Enabled - Is public access enabled on coordinator? Defaults to
true
. - coordinator
Server StringEdition - The edition of the coordinator server. Possible values are
BurstableGeneralPurpose
,BurstableMemoryOptimized
,GeneralPurpose
andMemoryOptimized
. Defaults toGeneralPurpose
. - coordinator
Storage NumberQuota In Mb The coordinator storage allowed for the Azure Cosmos DB for PostgreSQL Cluster. Possible values are
32768
,65536
,131072
,262144
,524288
,1048576
,2097152
,4194304
,8388608
,16777216
, and33554432
.NOTE: More information on the types of compute resources available for CosmosDB can be found in the product documentation
- coordinator
Vcore NumberCount - The coordinator vCore count for the Azure Cosmos DB for PostgreSQL Cluster. Possible values are
1
,2
,4
,8
,16
,32
,64
and96
. - earliest
Restore StringTime - The earliest restore point time (ISO8601 format) for the Azure Cosmos DB for PostgreSQL Cluster.
- ha
Enabled Boolean - Is high availability enabled for the Azure Cosmos DB for PostgreSQL cluster? Defaults to
false
. - location String
- The Azure Region where the Azure Cosmos DB for PostgreSQL Cluster should exist. Changing this forces a new resource to be created.
- maintenance
Window Property Map - A
maintenance_window
block as defined below. - name String
- The name which should be used for this Azure Cosmos DB for PostgreSQL Cluster. Changing this forces a new resource to be created.
- node
Count Number - The worker node count of the Azure Cosmos DB for PostgreSQL Cluster. Possible value is between
0
and20
except1
. - node
Public BooleanIp Access Enabled - Is public access enabled on worker nodes. Defaults to
false
. - node
Server StringEdition - The edition of the node server. Possible values are
BurstableGeneralPurpose
,BurstableMemoryOptimized
,GeneralPurpose
andMemoryOptimized
. Defaults toMemoryOptimized
. - node
Storage NumberQuota In Mb - The storage quota in MB on each worker node. Possible values are
32768
,65536
,131072
,262144
,524288
,1048576
,2097152
,4194304
,8388608
and16777216
. - node
Vcores Number - The vCores count on each worker node. Possible values are
1
,2
,4
,8
,16
,32
,64
,96
and104
. - point
In StringTime In Utc - The date and time in UTC (ISO8601 format) for the Azure Cosmos DB for PostgreSQL cluster restore. Changing this forces a new resource to be created.
- preferred
Primary StringZone - The preferred primary availability zone for the Azure Cosmos DB for PostgreSQL cluster.
- resource
Group StringName - The name of the Resource Group where the Azure Cosmos DB for PostgreSQL Cluster should exist. Changing this forces a new resource to be created.
- servers List<Property Map>
- A
servers
block as defined below. - shards
On BooleanCoordinator Enabled - Is shards on coordinator enabled for the Azure Cosmos DB for PostgreSQL cluster.
- source
Location String - The Azure region of the source Azure Cosmos DB for PostgreSQL cluster for read replica clusters. Changing this forces a new resource to be created.
- source
Resource StringId - The resource ID of the source Azure Cosmos DB for PostgreSQL cluster for read replica clusters. Changing this forces a new resource to be created.
- sql
Version String - The major PostgreSQL version on the Azure Cosmos DB for PostgreSQL cluster. Possible values are
11
,12
,13
,14
,15
and16
. - Map<String>
- A mapping of tags which should be assigned to the Azure Cosmos DB for PostgreSQL Cluster.
Supporting Types
PostgresqlClusterMaintenanceWindow, PostgresqlClusterMaintenanceWindowArgs
- Day
Of intWeek - The day of week for maintenance window, where the week starts on a Sunday, i.e. Sunday =
0
, Monday =1
. Defaults to0
. - Start
Hour int - The start hour for maintenance window. Defaults to
0
. - Start
Minute int - The start minute for maintenance window. Defaults to
0
.
- Day
Of intWeek - The day of week for maintenance window, where the week starts on a Sunday, i.e. Sunday =
0
, Monday =1
. Defaults to0
. - Start
Hour int - The start hour for maintenance window. Defaults to
0
. - Start
Minute int - The start minute for maintenance window. Defaults to
0
.
- day
Of IntegerWeek - The day of week for maintenance window, where the week starts on a Sunday, i.e. Sunday =
0
, Monday =1
. Defaults to0
. - start
Hour Integer - The start hour for maintenance window. Defaults to
0
. - start
Minute Integer - The start minute for maintenance window. Defaults to
0
.
- day
Of numberWeek - The day of week for maintenance window, where the week starts on a Sunday, i.e. Sunday =
0
, Monday =1
. Defaults to0
. - start
Hour number - The start hour for maintenance window. Defaults to
0
. - start
Minute number - The start minute for maintenance window. Defaults to
0
.
- day_
of_ intweek - The day of week for maintenance window, where the week starts on a Sunday, i.e. Sunday =
0
, Monday =1
. Defaults to0
. - start_
hour int - The start hour for maintenance window. Defaults to
0
. - start_
minute int - The start minute for maintenance window. Defaults to
0
.
- day
Of NumberWeek - The day of week for maintenance window, where the week starts on a Sunday, i.e. Sunday =
0
, Monday =1
. Defaults to0
. - start
Hour Number - The start hour for maintenance window. Defaults to
0
. - start
Minute Number - The start minute for maintenance window. Defaults to
0
.
PostgresqlClusterServer, PostgresqlClusterServerArgs
Import
Azure Cosmos DB for PostgreSQL Clusters can be imported using the resource id
, e.g.
$ pulumi import azure:cosmosdb/postgresqlCluster:PostgresqlCluster example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/cluster1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.