UNPKG

@pulumi/azure-native

Version:

[![Slack](http://www.pulumi.com/images/docs/badges/slack.svg)](https://slack.pulumi.com) [![NPM version](https://badge.fury.io/js/%40pulumi%2Fazure-native.svg)](https://npmjs.com/package/@pulumi/azure-native) [![Python version](https://badge.fury.io/py/pu

202 lines (201 loc) 7.86 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Gets information about a cluster such as compute and storage configuration and cluster lifecycle metadata such as cluster creation date and time. * * Uses Azure REST API version 2023-03-02-preview. * * Other available API versions: 2022-11-08. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native dbforpostgresql [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details. */ export declare function getServerGroupCluster(args: GetServerGroupClusterArgs, opts?: pulumi.InvokeOptions): Promise<GetServerGroupClusterResult>; export interface GetServerGroupClusterArgs { /** * The name of the cluster. */ clusterName: string; /** * The name of the resource group. The name is case insensitive. */ resourceGroupName: string; } /** * Represents a cluster. */ export interface GetServerGroupClusterResult { /** * Indicates whether the cluster was created using AAD authentication. */ readonly aadAuthEnabled: string; /** * The administrator's login name of the servers in the cluster. */ readonly administratorLogin: string; /** * Authentication configuration of a cluster. */ readonly authConfig?: outputs.dbforpostgresql.ServerGroupClusterAuthConfigResponse; /** * The Azure API version of the resource. */ readonly azureApiVersion: string; /** * The Citus extension version on all cluster servers. */ readonly citusVersion?: string; /** * If public access is enabled on coordinator. */ readonly coordinatorEnablePublicIpAccess?: boolean; /** * The edition of a coordinator server (default: GeneralPurpose). Required for creation. */ readonly coordinatorServerEdition?: string; /** * The storage of a server in MB. Required for creation. See https://learn.microsoft.com/azure/cosmos-db/postgresql/resources-compute for more information. */ readonly coordinatorStorageQuotaInMb?: number; /** * The vCores count of a server (max: 96). Required for creation. See https://learn.microsoft.com/azure/cosmos-db/postgresql/resources-compute for more information. */ readonly coordinatorVCores?: number; /** * The data encryption properties of a cluster. */ readonly dataEncryption?: outputs.dbforpostgresql.ServerGroupClusterDataEncryptionResponse; /** * The database name of the cluster. Only one database per cluster is supported. */ readonly databaseName?: string; /** * The earliest restore point time (ISO8601 format) for the cluster. */ readonly earliestRestoreTime: string; /** * If cluster backup is stored in another Azure region in addition to the copy of the backup stored in the cluster's region. Enabled only at the time of cluster creation. */ readonly enableGeoBackup?: boolean; /** * If high availability (HA) is enabled or not for the cluster. */ readonly enableHa?: boolean; /** * If distributed tables are placed on coordinator or not. Should be set to 'true' on single node clusters. Requires shard rebalancing after value is changed. */ readonly enableShardsOnCoordinator?: boolean; /** * Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" */ readonly id: string; /** * Describes the identity of the cluster. */ readonly identity?: outputs.dbforpostgresql.IdentityPropertiesResponse; /** * The geo-location where the resource lives */ readonly location: string; /** * Maintenance window of a cluster. */ readonly maintenanceWindow?: outputs.dbforpostgresql.ServerGroupClusterMaintenanceWindowResponse; /** * The name of the resource */ readonly name: string; /** * Worker node count of the cluster. When node count is 0, it represents a single node configuration with the ability to create distributed tables on that node. 2 or more worker nodes represent multi-node configuration. Node count value cannot be 1. Required for creation. */ readonly nodeCount?: number; /** * If public access is enabled on worker nodes. */ readonly nodeEnablePublicIpAccess?: boolean; /** * The edition of a node server (default: MemoryOptimized). */ readonly nodeServerEdition?: string; /** * The storage in MB on each worker node. See https://learn.microsoft.com/azure/cosmos-db/postgresql/resources-compute for more information. */ readonly nodeStorageQuotaInMb?: number; /** * The compute in vCores on each worker node (max: 104). See https://learn.microsoft.com/azure/cosmos-db/postgresql/resources-compute for more information. */ readonly nodeVCores?: number; /** * Indicates whether the cluster was created with a password or using AAD authentication. */ readonly passwordEnabled: string; /** * Date and time in UTC (ISO8601 format) for cluster restore. */ readonly pointInTimeUTC?: string; /** * The major PostgreSQL version on all cluster servers. */ readonly postgresqlVersion?: string; /** * Preferred primary availability zone (AZ) for all cluster servers. */ readonly preferredPrimaryZone?: string; /** * The private endpoint connections for a cluster. */ readonly privateEndpointConnections: outputs.dbforpostgresql.SimplePrivateEndpointConnectionResponse[]; /** * Provisioning state of the cluster */ readonly provisioningState: string; /** * The array of read replica clusters. */ readonly readReplicas: string[]; /** * The list of server names in the cluster */ readonly serverNames: outputs.dbforpostgresql.ServerNameItemResponse[]; /** * The Azure region of source cluster for read replica clusters. */ readonly sourceLocation?: string; /** * The resource id of source cluster for read replica clusters. */ readonly sourceResourceId?: string; /** * A state of a cluster/server that is visible to user. */ readonly state: string; /** * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ readonly systemData: outputs.dbforpostgresql.SystemDataResponse; /** * Resource tags. */ readonly tags?: { [key: string]: string; }; /** * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" */ readonly type: string; } /** * Gets information about a cluster such as compute and storage configuration and cluster lifecycle metadata such as cluster creation date and time. * * Uses Azure REST API version 2023-03-02-preview. * * Other available API versions: 2022-11-08. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native dbforpostgresql [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details. */ export declare function getServerGroupClusterOutput(args: GetServerGroupClusterOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetServerGroupClusterResult>; export interface GetServerGroupClusterOutputArgs { /** * The name of the cluster. */ clusterName: pulumi.Input<string>; /** * The name of the resource group. The name is case insensitive. */ resourceGroupName: pulumi.Input<string>; }