ServerAdministratorsOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:server_administrators> attribute.
Constructor
ServerAdministratorsOperations(*args, **kwargs)
Methods
| begin_create_or_update |
Creates or update active directory administrator on an existing server. The update action will overwrite the existing administrator. |
| begin_delete |
Deletes server active directory administrator. |
| get |
Gets information about a AAD server administrator. |
| list |
Returns a list of server Administrators. |
begin_create_or_update
Creates or update active directory administrator on an existing server. The update action will overwrite the existing administrator.
async begin_create_or_update(resource_group_name: str, server_name: str, properties: _models.ServerAdministratorResource, *, content_type: str = 'application/json', **kwargs: Any) -> AsyncLROPoller[_models.ServerAdministratorResource]
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
|
server_name
Required
|
The name of the server. Required. |
|
properties
Required
|
The required parameters for creating or updating an AAD server administrator. Is either a ServerAdministratorResource type or a IO[bytes] type. Required. |
Returns
| Type | Description |
|---|---|
|
An instance of AsyncLROPoller that returns either ServerAdministratorResource or the result of cls(response) |
Exceptions
| Type | Description |
|---|---|
begin_delete
Deletes server active directory administrator.
async begin_delete(resource_group_name: str, server_name: str, **kwargs: Any) -> AsyncLROPoller[None]
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
|
server_name
Required
|
The name of the server. Required. |
Returns
| Type | Description |
|---|---|
|
An instance of AsyncLROPoller that returns either None or the result of cls(response) |
Exceptions
| Type | Description |
|---|---|
get
Gets information about a AAD server administrator.
async get(resource_group_name: str, server_name: str, **kwargs: Any) -> ServerAdministratorResource
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
|
server_name
Required
|
The name of the server. Required. |
Returns
| Type | Description |
|---|---|
|
ServerAdministratorResource or the result of cls(response) |
Exceptions
| Type | Description |
|---|---|
list
Returns a list of server Administrators.
list(resource_group_name: str, server_name: str, **kwargs: Any) -> AsyncItemPaged[ServerAdministratorResource]
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
|
server_name
Required
|
The name of the server. Required. |
Returns
| Type | Description |
|---|---|
|
An iterator like instance of either ServerAdministratorResource or the result of cls(response) |
Exceptions
| Type | Description |
|---|---|
Attributes
models
models = <module 'azure.mgmt.rdbms.mysql.models' from 'C:\\ToolCache\\Python\\3.11.9\\x64\\Lib\\site-packages\\py2docfx\\venv\\venv198\\Lib\\site-packages\\azure\\mgmt\\rdbms\\mysql\\models\\__init__.py'>