ManagedDatabasesOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:managed_databases> attribute.
Constructor
ManagedDatabasesOperations(*args, **kwargs)
Methods
| begin_cancel_move |
Cancels a managed database move operation. |
| begin_complete_move |
Completes a managed database move operation. |
| begin_complete_restore |
Completes the restore operation on a managed database. |
| begin_create_or_update |
Creates a new database or updates an existing database. |
| begin_delete |
Deletes a managed database. |
| begin_start_move |
Starts a managed database move operation. |
| begin_update |
Updates an existing database. |
| get |
Gets a managed database. |
| list_by_instance |
Gets a list of managed databases. |
| list_inaccessible_by_instance |
Gets a list of inaccessible managed databases in a managed instance. |
begin_cancel_move
Cancels a managed database move operation.
async begin_cancel_move(resource_group_name: str, managed_instance_name: str, database_name: str, parameters: _models.ManagedDatabaseMoveDefinition, *, content_type: str = 'application/json', **kwargs: Any) -> AsyncLROPoller[None]
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
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
|
The name of the managed instance. Required. |
|
database_name
Required
|
The name of the database. Required. |
|
parameters
Required
|
Parameters of the cancel managed database move operation. Is either a ManagedDatabaseMoveDefinition type or a IO[bytes] type. Required. |
Returns
| Type | Description |
|---|---|
|
An instance of AsyncLROPoller that returns either None or the result of cls(response) |
Exceptions
| Type | Description |
|---|---|
begin_complete_move
Completes a managed database move operation.
async begin_complete_move(resource_group_name: str, managed_instance_name: str, database_name: str, parameters: _models.ManagedDatabaseMoveDefinition, *, content_type: str = 'application/json', **kwargs: Any) -> AsyncLROPoller[None]
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
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
|
The name of the managed instance. Required. |
|
database_name
Required
|
The name of the database. Required. |
|
parameters
Required
|
Parameters of the complete managed database move operation. Is either a ManagedDatabaseMoveDefinition type or a IO[bytes] type. Required. |
Returns
| Type | Description |
|---|---|
|
An instance of AsyncLROPoller that returns either None or the result of cls(response) |
Exceptions
| Type | Description |
|---|---|
begin_complete_restore
Completes the restore operation on a managed database.
async begin_complete_restore(resource_group_name: str, managed_instance_name: str, database_name: str, parameters: _models.CompleteDatabaseRestoreDefinition, *, content_type: str = 'application/json', **kwargs: Any) -> AsyncLROPoller[None]
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
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
|
The name of the managed instance. Required. |
|
database_name
Required
|
The name of the database. Required. |
|
parameters
Required
|
The definition for completing the restore of this managed database. Is either a CompleteDatabaseRestoreDefinition type or a IO[bytes] type. Required. |
Returns
| Type | Description |
|---|---|
|
An instance of AsyncLROPoller that returns either None or the result of cls(response) |
Exceptions
| Type | Description |
|---|---|
begin_create_or_update
Creates a new database or updates an existing database.
async begin_create_or_update(resource_group_name: str, managed_instance_name: str, database_name: str, parameters: _models.ManagedDatabase, *, content_type: str = 'application/json', **kwargs: Any) -> AsyncLROPoller[_models.ManagedDatabase]
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
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
|
The name of the managed instance. Required. |
|
database_name
Required
|
The name of the database. Required. |
|
parameters
Required
|
The requested database resource state. Is either a ManagedDatabase type or a IO[bytes] type. Required. |
Returns
| Type | Description |
|---|---|
|
An instance of AsyncLROPoller that returns either ManagedDatabase or the result of cls(response) |
Exceptions
| Type | Description |
|---|---|
begin_delete
Deletes a managed database.
async begin_delete(resource_group_name: str, managed_instance_name: str, database_name: str, **kwargs: Any) -> AsyncLROPoller[None]
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
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
|
The name of the managed instance. Required. |
|
database_name
Required
|
The name of the database. Required. |
Returns
| Type | Description |
|---|---|
|
An instance of AsyncLROPoller that returns either None or the result of cls(response) |
Exceptions
| Type | Description |
|---|---|
begin_start_move
Starts a managed database move operation.
async begin_start_move(resource_group_name: str, managed_instance_name: str, database_name: str, parameters: _models.ManagedDatabaseStartMoveDefinition, *, content_type: str = 'application/json', **kwargs: Any) -> AsyncLROPoller[None]
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
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
|
The name of the managed instance. Required. |
|
database_name
Required
|
The name of the database. Required. |
|
parameters
Required
|
Parameters of the start managed database move operation. Is either a ManagedDatabaseStartMoveDefinition type or a IO[bytes] type. Required. |
Returns
| Type | Description |
|---|---|
|
An instance of AsyncLROPoller that returns either None or the result of cls(response) |
Exceptions
| Type | Description |
|---|---|
begin_update
Updates an existing database.
async begin_update(resource_group_name: str, managed_instance_name: str, database_name: str, parameters: _models.ManagedDatabaseUpdate, *, content_type: str = 'application/json', **kwargs: Any) -> AsyncLROPoller[_models.ManagedDatabase]
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
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
|
The name of the managed instance. Required. |
|
database_name
Required
|
The name of the database. Required. |
|
parameters
Required
|
The requested database resource state. Is either a ManagedDatabaseUpdate type or a IO[bytes] type. Required. |
Returns
| Type | Description |
|---|---|
|
An instance of AsyncLROPoller that returns either ManagedDatabase or the result of cls(response) |
Exceptions
| Type | Description |
|---|---|
get
Gets a managed database.
async get(resource_group_name: str, managed_instance_name: str, database_name: str, **kwargs: Any) -> ManagedDatabase
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
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
|
The name of the managed instance. Required. |
|
database_name
Required
|
The name of the database. Required. |
Returns
| Type | Description |
|---|---|
|
ManagedDatabase or the result of cls(response) |
Exceptions
| Type | Description |
|---|---|
list_by_instance
Gets a list of managed databases.
list_by_instance(resource_group_name: str, managed_instance_name: str, **kwargs: Any) -> AsyncItemPaged[ManagedDatabase]
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
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
|
The name of the managed instance. Required. |
Returns
| Type | Description |
|---|---|
|
An iterator like instance of either ManagedDatabase or the result of cls(response) |
Exceptions
| Type | Description |
|---|---|
list_inaccessible_by_instance
Gets a list of inaccessible managed databases in a managed instance.
list_inaccessible_by_instance(resource_group_name: str, managed_instance_name: str, **kwargs: Any) -> AsyncItemPaged[ManagedDatabase]
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
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
|
The name of the managed instance. Required. |
Returns
| Type | Description |
|---|---|
|
An iterator like instance of either ManagedDatabase 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'>