Condividi tramite


DeletedServersOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

SqlManagementClient's

<xref:deleted_servers> attribute.

Constructor

DeletedServersOperations(*args, **kwargs)

Methods

begin_recover

Recovers a deleted server.

get

Gets a deleted server.

list

Gets a list of all deleted servers in a subscription.

list_by_location

Gets a list of deleted servers for a location.

begin_recover

Recovers a deleted server.

async begin_recover(location_name: str, deleted_server_name: str, **kwargs: Any) -> AsyncLROPoller[DeletedServer]

Parameters

Name Description
location_name
Required
str

The name of the region where the resource is located. Required.

deleted_server_name
Required
str

The name of the deleted server. Required.

Returns

Type Description

An instance of AsyncLROPoller that returns either DeletedServer or the result of cls(response)

Exceptions

Type Description

get

Gets a deleted server.

async get(location_name: str, deleted_server_name: str, **kwargs: Any) -> DeletedServer

Parameters

Name Description
location_name
Required
str

The name of the region where the resource is located. Required.

deleted_server_name
Required
str

The name of the deleted server. Required.

Returns

Type Description

DeletedServer or the result of cls(response)

Exceptions

Type Description

list

Gets a list of all deleted servers in a subscription.

list(**kwargs: Any) -> AsyncItemPaged[DeletedServer]

Returns

Type Description

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

Exceptions

Type Description

list_by_location

Gets a list of deleted servers for a location.

list_by_location(location_name: str, **kwargs: Any) -> AsyncItemPaged[DeletedServer]

Parameters

Name Description
location_name
Required
str

The name of the region where the resource is located. Required.

Returns

Type Description

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

Exceptions

Type Description

Attributes

models

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