ManagedInstanceOperationsOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:managed_instance_operations> attribute.
Constructor
ManagedInstanceOperationsOperations(*args, **kwargs)
Methods
| cancel |
Cancels the asynchronous operation on the managed instance. |
| get |
Gets a management operation on a managed instance. |
| list_by_managed_instance |
Gets a list of operations performed on the managed instance. |
cancel
Cancels the asynchronous operation on the managed instance.
async cancel(resource_group_name: str, managed_instance_name: str, operation_id: str, **kwargs: Any) -> 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. |
|
operation_id
Required
|
Required. |
Returns
| Type | Description |
|---|---|
|
None or the result of cls(response) |
Exceptions
| Type | Description |
|---|---|
get
Gets a management operation on a managed instance.
async get(resource_group_name: str, managed_instance_name: str, operation_id: str, **kwargs: Any) -> ManagedInstanceOperation
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. |
|
operation_id
Required
|
Required. |
Returns
| Type | Description |
|---|---|
|
ManagedInstanceOperation or the result of cls(response) |
Exceptions
| Type | Description |
|---|---|
list_by_managed_instance
Gets a list of operations performed on the managed instance.
list_by_managed_instance(resource_group_name: str, managed_instance_name: str, **kwargs: Any) -> AsyncItemPaged[ManagedInstanceOperation]
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 ManagedInstanceOperation 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'>