Cluster Interface

public interface Cluster

An immutable client-side representation of Cluster.

Method Summary

Modifier and Type Method and Description
abstract String administratorLogin()

Gets the administratorLogin property: The administrator's login name of the servers in the cluster.

abstract String administratorLoginPassword()

Gets the administratorLoginPassword property: The password of the administrator login.

abstract String citusVersion()

Gets the citusVersion property: The Citus extension version on all cluster servers.

abstract Boolean coordinatorEnablePublicIpAccess()

Gets the coordinatorEnablePublicIpAccess property: If public access is enabled on coordinator.

abstract String coordinatorServerEdition()

Gets the coordinatorServerEdition property: The edition of a coordinator server (default: GeneralPurpose).

abstract Integer coordinatorStorageQuotaInMb()

Gets the coordinatorStorageQuotaInMb property: The storage of a server in MB.

abstract Integer coordinatorVCores()

Gets the coordinatorVCores property: The vCores count of a server (max: 96).

abstract OffsetDateTime earliestRestoreTime()

Gets the earliestRestoreTime property: The earliest restore point time (ISO8601 format) for the cluster.

abstract Boolean enableHa()

Gets the enableHa property: If high availability (HA) is enabled or not for the cluster.

abstract Boolean enableShardsOnCoordinator()

Gets the enableShardsOnCoordinator property: If distributed tables are placed on coordinator or not.

abstract String id()

Gets the id property: Fully qualified resource Id for the resource.

abstract ClusterInner innerModel()

Gets the inner com.azure.resourcemanager.cosmosdbforpostgresql.fluent.models.ClusterInner object.

abstract String location()

Gets the location property: The geo-location where the resource lives.

abstract MaintenanceWindow maintenanceWindow()

Gets the maintenanceWindow property: Maintenance window of a cluster.

abstract String name()

Gets the name property: The name of the resource.

abstract Integer nodeCount()

Gets the nodeCount property: Worker node count of the cluster.

abstract Boolean nodeEnablePublicIpAccess()

Gets the nodeEnablePublicIpAccess property: If public access is enabled on worker nodes.

abstract String nodeServerEdition()

Gets the nodeServerEdition property: The edition of a node server (default: MemoryOptimized).

abstract Integer nodeStorageQuotaInMb()

Gets the nodeStorageQuotaInMb property: The storage in MB on each worker node.

abstract Integer nodeVCores()

Gets the nodeVCores property: The compute in vCores on each worker node (max: 104).

abstract OffsetDateTime pointInTimeUtc()

Gets the pointInTimeUtc property: Date and time in UTC (ISO8601 format) for cluster restore.

abstract String postgresqlVersion()

Gets the postgresqlVersion property: The major PostgreSQL version on all cluster servers.

abstract String preferredPrimaryZone()

Gets the preferredPrimaryZone property: Preferred primary availability zone (AZ) for all cluster servers.

abstract List<SimplePrivateEndpointConnection> privateEndpointConnections()

Gets the privateEndpointConnections property: The private endpoint connections for a cluster.

abstract void promoteReadReplica()

Promotes read replica cluster to an independent read-write cluster.

abstract void promoteReadReplica(Context context)

Promotes read replica cluster to an independent read-write cluster.

abstract String provisioningState()

Gets the provisioningState property: Provisioning state of the cluster.

abstract List<String> readReplicas()

Gets the readReplicas property: The array of read replica clusters.

abstract Cluster refresh()

Refreshes the resource to sync with Azure.

abstract Cluster refresh(Context context)

Refreshes the resource to sync with Azure.

abstract Region region()

Gets the region of the resource.

abstract String regionName()

Gets the name of the resource region.

abstract String resourceGroupName()

Gets the name of the resource group.

abstract void restart()

Restarts all nodes in the cluster.

abstract void restart(Context context)

Restarts all nodes in the cluster.

abstract List<ServerNameItem> serverNames()

Gets the serverNames property: The list of server names in the cluster.

abstract String sourceLocation()

Gets the sourceLocation property: The Azure region of source cluster for read replica clusters.

abstract String sourceResourceId()

Gets the sourceResourceId property: The resource id of source cluster for read replica clusters.

abstract void start()

Starts stopped compute on all cluster nodes.

abstract void start(Context context)

Starts stopped compute on all cluster nodes.

abstract String state()

Gets the state property: A state of a cluster/server that is visible to user.

abstract void stop()

Stops compute on all cluster nodes.

abstract void stop(Context context)

Stops compute on all cluster nodes.

abstract SystemData systemData()

Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

abstract Map<String,String> tags()

Gets the tags property: Resource tags.

abstract String type()

Gets the type property: The type of the resource.

abstract Update update()

Begins update for the Cluster resource.

Method Details

administratorLogin

public abstract String administratorLogin()

Gets the administratorLogin property: The administrator's login name of the servers in the cluster.

Returns:

the administratorLogin value.

administratorLoginPassword

public abstract String administratorLoginPassword()

Gets the administratorLoginPassword property: The password of the administrator login. Required for creation.

Returns:

the administratorLoginPassword value.

citusVersion

public abstract String citusVersion()

Gets the citusVersion property: The Citus extension version on all cluster servers.

Returns:

the citusVersion value.

coordinatorEnablePublicIpAccess

public abstract Boolean coordinatorEnablePublicIpAccess()

Gets the coordinatorEnablePublicIpAccess property: If public access is enabled on coordinator.

Returns:

the coordinatorEnablePublicIpAccess value.

coordinatorServerEdition

public abstract String coordinatorServerEdition()

Gets the coordinatorServerEdition property: The edition of a coordinator server (default: GeneralPurpose). Required for creation.

Returns:

the coordinatorServerEdition value.

coordinatorStorageQuotaInMb

public abstract Integer coordinatorStorageQuotaInMb()

Gets the coordinatorStorageQuotaInMb property: The storage of a server in MB. Required for creation. See https://learn.microsoft.com/azure/cosmos-db/postgresql/resources-compute for more information.

Returns:

the coordinatorStorageQuotaInMb value.

coordinatorVCores

public abstract Integer coordinatorVCores()

Gets the coordinatorVCores property: 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.

Returns:

the coordinatorVCores value.

earliestRestoreTime

public abstract OffsetDateTime earliestRestoreTime()

Gets the earliestRestoreTime property: The earliest restore point time (ISO8601 format) for the cluster.

Returns:

the earliestRestoreTime value.

enableHa

public abstract Boolean enableHa()

Gets the enableHa property: If high availability (HA) is enabled or not for the cluster.

Returns:

the enableHa value.

enableShardsOnCoordinator

public abstract Boolean enableShardsOnCoordinator()

Gets the enableShardsOnCoordinator property: 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.

Returns:

the enableShardsOnCoordinator value.

id

public abstract String id()

Gets the id property: Fully qualified resource Id for the resource.

Returns:

the id value.

innerModel

public abstract ClusterInner innerModel()

Gets the inner com.azure.resourcemanager.cosmosdbforpostgresql.fluent.models.ClusterInner object.

Returns:

the inner object.

location

public abstract String location()

Gets the location property: The geo-location where the resource lives.

Returns:

the location value.

maintenanceWindow

public abstract MaintenanceWindow maintenanceWindow()

Gets the maintenanceWindow property: Maintenance window of a cluster.

Returns:

the maintenanceWindow value.

name

public abstract String name()

Gets the name property: The name of the resource.

Returns:

the name value.

nodeCount

public abstract Integer nodeCount()

Gets the nodeCount property: 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.

Returns:

the nodeCount value.

nodeEnablePublicIpAccess

public abstract Boolean nodeEnablePublicIpAccess()

Gets the nodeEnablePublicIpAccess property: If public access is enabled on worker nodes.

Returns:

the nodeEnablePublicIpAccess value.

nodeServerEdition

public abstract String nodeServerEdition()

Gets the nodeServerEdition property: The edition of a node server (default: MemoryOptimized).

Returns:

the nodeServerEdition value.

nodeStorageQuotaInMb

public abstract Integer nodeStorageQuotaInMb()

Gets the nodeStorageQuotaInMb property: The storage in MB on each worker node. See https://learn.microsoft.com/azure/cosmos-db/postgresql/resources-compute for more information.

Returns:

the nodeStorageQuotaInMb value.

nodeVCores

public abstract Integer nodeVCores()

Gets the nodeVCores property: The compute in vCores on each worker node (max: 104). See https://learn.microsoft.com/azure/cosmos-db/postgresql/resources-compute for more information.

Returns:

the nodeVCores value.

pointInTimeUtc

public abstract OffsetDateTime pointInTimeUtc()

Gets the pointInTimeUtc property: Date and time in UTC (ISO8601 format) for cluster restore.

Returns:

the pointInTimeUtc value.

postgresqlVersion

public abstract String postgresqlVersion()

Gets the postgresqlVersion property: The major PostgreSQL version on all cluster servers.

Returns:

the postgresqlVersion value.

preferredPrimaryZone

public abstract String preferredPrimaryZone()

Gets the preferredPrimaryZone property: Preferred primary availability zone (AZ) for all cluster servers.

Returns:

the preferredPrimaryZone value.

privateEndpointConnections

public abstract List<SimplePrivateEndpointConnection> privateEndpointConnections()

Gets the privateEndpointConnections property: The private endpoint connections for a cluster.

Returns:

the privateEndpointConnections value.

promoteReadReplica

public abstract void promoteReadReplica()

Promotes read replica cluster to an independent read-write cluster.

promoteReadReplica

public abstract void promoteReadReplica(Context context)

Promotes read replica cluster to an independent read-write cluster.

Parameters:

context - The context to associate with this operation.

provisioningState

public abstract String provisioningState()

Gets the provisioningState property: Provisioning state of the cluster.

Returns:

the provisioningState value.

readReplicas

public abstract List<String> readReplicas()

Gets the readReplicas property: The array of read replica clusters.

Returns:

the readReplicas value.

refresh

public abstract Cluster refresh()

Refreshes the resource to sync with Azure.

Returns:

the refreshed resource.

refresh

public abstract Cluster refresh(Context context)

Refreshes the resource to sync with Azure.

Parameters:

context - The context to associate with this operation.

Returns:

the refreshed resource.

region

public abstract Region region()

Gets the region of the resource.

Returns:

the region of the resource.

regionName

public abstract String regionName()

Gets the name of the resource region.

Returns:

the name of the resource region.

resourceGroupName

public abstract String resourceGroupName()

Gets the name of the resource group.

Returns:

the name of the resource group.

restart

public abstract void restart()

Restarts all nodes in the cluster.

restart

public abstract void restart(Context context)

Restarts all nodes in the cluster.

Parameters:

context - The context to associate with this operation.

serverNames

public abstract List<ServerNameItem> serverNames()

Gets the serverNames property: The list of server names in the cluster.

Returns:

the serverNames value.

sourceLocation

public abstract String sourceLocation()

Gets the sourceLocation property: The Azure region of source cluster for read replica clusters.

Returns:

the sourceLocation value.

sourceResourceId

public abstract String sourceResourceId()

Gets the sourceResourceId property: The resource id of source cluster for read replica clusters.

Returns:

the sourceResourceId value.

start

public abstract void start()

Starts stopped compute on all cluster nodes.

start

public abstract void start(Context context)

Starts stopped compute on all cluster nodes.

Parameters:

context - The context to associate with this operation.

state

public abstract String state()

Gets the state property: A state of a cluster/server that is visible to user.

Returns:

the state value.

stop

public abstract void stop()

Stops compute on all cluster nodes.

stop

public abstract void stop(Context context)

Stops compute on all cluster nodes.

Parameters:

context - The context to associate with this operation.

systemData

public abstract SystemData systemData()

Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Returns:

the systemData value.

tags

public abstract Map<String,String> tags()

Gets the tags property: Resource tags.

Returns:

the tags value.

type

public abstract String type()

Gets the type property: The type of the resource.

Returns:

the type value.

update

public abstract Cluster.Update update()

Begins update for the Cluster resource.

Returns:

the stage of resource update.

Applies to