RestorePointsOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:restore_points> attribute.
Constructor
RestorePointsOperations(*args, **kwargs)
Methods
| begin_create |
Creates a restore point for a data warehouse. |
| delete |
Deletes a restore point. |
| get |
Gets a restore point. |
| list_by_database |
Gets a list of database restore points. |
begin_create
Creates a restore point for a data warehouse.
async begin_create(resource_group_name: str, server_name: str, database_name: str, parameters: _models.CreateDatabaseRestorePointDefinition, *, content_type: str = 'application/json', **kwargs: Any) -> AsyncLROPoller[_models.RestorePoint]
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. |
|
parameters
Required
|
The definition for creating the restore point of this database. Is either a CreateDatabaseRestorePointDefinition type or a IO[bytes] type. Required. |
Returns
| Type | Description |
|---|---|
|
An instance of AsyncLROPoller that returns either RestorePoint or the result of cls(response) |
Exceptions
| Type | Description |
|---|---|
delete
Deletes a restore point.
async delete(resource_group_name: str, server_name: str, database_name: str, restore_point_name: 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. |
|
server_name
Required
|
The name of the server. Required. |
|
database_name
Required
|
The name of the database. Required. |
|
restore_point_name
Required
|
The name of the restore point. Required. |
Returns
| Type | Description |
|---|---|
|
None or the result of cls(response) |
Exceptions
| Type | Description |
|---|---|
get
Gets a restore point.
async get(resource_group_name: str, server_name: str, database_name: str, restore_point_name: str, **kwargs: Any) -> RestorePoint
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. |
|
restore_point_name
Required
|
The name of the restore point. Required. |
Returns
| Type | Description |
|---|---|
|
RestorePoint or the result of cls(response) |
Exceptions
| Type | Description |
|---|---|
list_by_database
Gets a list of database restore points.
list_by_database(resource_group_name: str, server_name: str, database_name: str, **kwargs: Any) -> AsyncItemPaged[RestorePoint]
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. |
Returns
| Type | Description |
|---|---|
|
An iterator like instance of either RestorePoint 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'>