Skip to main content

servers

Creates, updates, deletes, gets or lists a servers resource.

Overview

Nameservers
TypeResource
Idazure.cosmosdb_for_postgresql.servers

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}".
namestringThe name of the resource.
administratorLoginstringThe administrator's login name of the servers in the cluster.
availabilityZonestringAvailability Zone information of the server.
citusVersionstringThe Citus extension version of server.
enableHabooleanIf high availability (HA) is enabled or not for the server.
enablePublicIpAccessbooleanIf public access is enabled on server.
fullyQualifiedDomainNamestringThe fully qualified domain name of a server.
haStatestringA state of HA feature for the cluster.
isReadOnlybooleanIf server database is set to read-only by system maintenance depending on high disk space usage.
postgresqlVersionstringThe major PostgreSQL version of server.
rolestringThe role of server in the cluster. Known values are: "Coordinator" and "Worker".
serverEditionstringThe edition of a server.
statestringA state of a cluster/server that is visible to user.
storageQuotaInMbintegerThe storage of a server in MB.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
vCoresintegerThe vCores count of a server.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, cluster_name, server_name, subscription_idGets information about a server in cluster.
list_by_clusterselectresource_group_name, cluster_name, subscription_idLists servers of a cluster.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
cluster_namestringThe name of the cluster. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
server_namestringThe name of the server. Required.
subscription_idstring

SELECT examples

Gets information about a server in cluster.

SELECT
id,
name,
administratorLogin,
availabilityZone,
citusVersion,
enableHa,
enablePublicIpAccess,
fullyQualifiedDomainName,
haState,
isReadOnly,
postgresqlVersion,
role,
serverEdition,
state,
storageQuotaInMb,
systemData,
type,
vCores
FROM azure.cosmosdb_for_postgresql.servers
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND cluster_name = '{{ cluster_name }}' -- required
AND server_name = '{{ server_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;