Share via


ServersOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

CosmosdbForPostgresqlMgmtClient's

<xref:servers> attribute.

Constructor

ServersOperations(*args, **kwargs)

Methods

get

Gets information about a server in cluster.

list_by_cluster

Lists servers of a cluster.

get

Gets information about a server in cluster.

get(resource_group_name: str, cluster_name: str, server_name: str, **kwargs: Any) -> ClusterServer

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

cluster_name
Required
str

The name of the cluster. Required.

server_name
Required
str

The name of the server. Required.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

ClusterServer or the result of cls(response)

Exceptions

Type Description

list_by_cluster

Lists servers of a cluster.

list_by_cluster(resource_group_name: str, cluster_name: str, **kwargs: Any) -> Iterable[ClusterServer]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

cluster_name
Required
str

The name of the cluster. Required.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

An iterator like instance of either ClusterServer or the result of cls(response)

Exceptions

Type Description

Attributes

models

models = <module 'azure.mgmt.cosmosdbforpostgresql.models' from 'C:\\ToolCache\\Python\\3.11.9\\x64\\Lib\\site-packages\\py2docfx\\venv\\venv102\\Lib\\site-packages\\azure\\mgmt\\cosmosdbforpostgresql\\models\\__init__.py'>