Share via


ManagedServerDnsAliasesOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

SqlManagementClient's

<xref:managed_server_dns_aliases> attribute.

Constructor

ManagedServerDnsAliasesOperations(*args, **kwargs)

Methods

begin_acquire

Acquires managed server DNS alias from another managed server.

begin_create_or_update

Creates a managed server DNS alias.

begin_delete

Deletes the managed server DNS alias with the given name.

get

Gets a server DNS alias.

list_by_managed_instance

Gets a list of managed server DNS aliases for a managed server.

begin_acquire

Acquires managed server DNS alias from another managed server.

async begin_acquire(resource_group_name: str, managed_instance_name: str, dns_alias_name: str, parameters: _models.ManagedServerDnsAliasAcquisition, *, content_type: str = 'application/json', **kwargs: Any) -> AsyncLROPoller[_models.ManagedServerDnsAlias]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required.

managed_instance_name
Required
str

The name of the managed instance. Required.

dns_alias_name
Required
str

Required.

parameters
Required

Is either a ManagedServerDnsAliasAcquisition type or a IO[bytes] type. Required.

Returns

Type Description

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

Exceptions

Type Description

begin_create_or_update

Creates a managed server DNS alias.

async begin_create_or_update(resource_group_name: str, managed_instance_name: str, dns_alias_name: str, parameters: _models.ManagedServerDnsAliasCreation, *, content_type: str = 'application/json', **kwargs: Any) -> AsyncLROPoller[_models.ManagedServerDnsAlias]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required.

managed_instance_name
Required
str

The name of the managed instance. Required.

dns_alias_name
Required
str

Required.

parameters
Required

Is either a ManagedServerDnsAliasCreation type or a IO[bytes] type. Required.

Returns

Type Description

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

Exceptions

Type Description

begin_delete

Deletes the managed server DNS alias with the given name.

async begin_delete(resource_group_name: str, managed_instance_name: str, dns_alias_name: str, **kwargs: Any) -> AsyncLROPoller[None]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required.

managed_instance_name
Required
str

The name of the managed instance. Required.

dns_alias_name
Required
str

Required.

Returns

Type Description

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

Exceptions

Type Description

get

Gets a server DNS alias.

async get(resource_group_name: str, managed_instance_name: str, dns_alias_name: str, **kwargs: Any) -> ManagedServerDnsAlias

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required.

managed_instance_name
Required
str

The name of the managed instance. Required.

dns_alias_name
Required
str

Required.

Returns

Type Description

ManagedServerDnsAlias or the result of cls(response)

Exceptions

Type Description

list_by_managed_instance

Gets a list of managed server DNS aliases for a managed server.

list_by_managed_instance(resource_group_name: str, managed_instance_name: str, **kwargs: Any) -> AsyncItemPaged[ManagedServerDnsAlias]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required.

managed_instance_name
Required
str

The name of the managed instance. Required.

Returns

Type Description

An iterator like instance of either ManagedServerDnsAlias 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'>