Condividi tramite


ManagedInstanceAdministratorsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

SqlManagementClient's

<xref:managed_instance_administrators> attribute.

Constructor

ManagedInstanceAdministratorsOperations(*args, **kwargs)

Methods

begin_create_or_update

Creates or updates a managed instance administrator.

begin_delete

Deletes a managed instance administrator.

get

Gets a managed instance administrator.

list_by_instance

Gets a list of managed instance administrators.

begin_create_or_update

Creates or updates a managed instance administrator.

async begin_create_or_update(resource_group_name: str, managed_instance_name: str, administrator_name: str | _models.AdministratorName, parameters: _models.ManagedInstanceAdministrator, *, content_type: str = 'application/json', **kwargs: Any) -> AsyncLROPoller[_models.ManagedInstanceAdministrator]

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.

administrator_name
Required

"ActiveDirectory" Required.

parameters
Required

The requested administrator parameters. Is either a ManagedInstanceAdministrator type or a IO[bytes] type. Required.

Returns

Type Description

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

Exceptions

Type Description

begin_delete

Deletes a managed instance administrator.

async begin_delete(resource_group_name: str, managed_instance_name: str, administrator_name: str | AdministratorName, **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.

administrator_name
Required

"ActiveDirectory" Required.

Returns

Type Description

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

Exceptions

Type Description

get

Gets a managed instance administrator.

async get(resource_group_name: str, managed_instance_name: str, administrator_name: str | AdministratorName, **kwargs: Any) -> ManagedInstanceAdministrator

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.

administrator_name
Required

"ActiveDirectory" Required.

Returns

Type Description

ManagedInstanceAdministrator or the result of cls(response)

Exceptions

Type Description

list_by_instance

Gets a list of managed instance administrators.

list_by_instance(resource_group_name: str, managed_instance_name: str, **kwargs: Any) -> AsyncItemPaged[ManagedInstanceAdministrator]

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 ManagedInstanceAdministrator 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'>