DatabaseRecommendedActionsOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:database_recommended_actions> attribute.
Constructor
DatabaseRecommendedActionsOperations(*args, **kwargs)
Methods
| get |
Gets a database recommended action. |
| list_by_database_advisor |
Gets list of Database Recommended Actions. |
| update |
Updates a database recommended action. |
get
Gets a database recommended action.
async get(resource_group_name: str, server_name: str, database_name: str, advisor_name: str, recommended_action_name: str, **kwargs: Any) -> RecommendedAction
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. |
|
server_name
Required
|
The name of the server. Required. |
|
database_name
Required
|
The name of the database. Required. |
|
advisor_name
Required
|
The name of the Database Advisor. Required. |
|
recommended_action_name
Required
|
The name of Database Recommended Action. Required. |
Returns
| Type | Description |
|---|---|
|
RecommendedAction or the result of cls(response) |
Exceptions
| Type | Description |
|---|---|
list_by_database_advisor
Gets list of Database Recommended Actions.
async list_by_database_advisor(resource_group_name: str, server_name: str, database_name: str, advisor_name: str, **kwargs: Any) -> list[azure.mgmt.sql.models._models_py3.RecommendedAction]
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. |
|
server_name
Required
|
The name of the server. Required. |
|
database_name
Required
|
The name of the database. Required. |
|
advisor_name
Required
|
The name of the Database Advisor. Required. |
Returns
| Type | Description |
|---|---|
|
list of RecommendedAction or the result of cls(response) |
Exceptions
| Type | Description |
|---|---|
update
Updates a database recommended action.
async update(resource_group_name: str, server_name: str, database_name: str, advisor_name: str, recommended_action_name: str, parameters: _models.RecommendedAction, *, content_type: str = 'application/json', **kwargs: Any) -> _models.RecommendedAction
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. |
|
server_name
Required
|
The name of the server. Required. |
|
database_name
Required
|
The name of the database. Required. |
|
advisor_name
Required
|
The name of the Database Advisor. Required. |
|
recommended_action_name
Required
|
The name of Database Recommended Action. Required. |
|
parameters
Required
|
The requested recommended action resource state. Is either a RecommendedAction type or a IO[bytes] type. Required. |
Returns
| Type | Description |
|---|---|
|
RecommendedAction 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'>