RestoreRequest Class

Description of a restore request.

Variables are only populated by the server, and will be ignored when sending a request.

Inheritance
azure.mgmt.web.v2021_01_01.models._models_py3.ProxyOnlyResource
RestoreRequest

Constructor

RestoreRequest(*, kind: Optional[str] = None, storage_account_url: Optional[str] = None, blob_name: Optional[str] = None, overwrite: Optional[bool] = None, site_name: Optional[str] = None, databases: Optional[List[azure.mgmt.web.v2021_01_01.models._models_py3.DatabaseBackupSetting]] = None, ignore_conflicting_host_names: Optional[bool] = False, ignore_databases: Optional[bool] = False, app_service_plan: Optional[str] = None, operation_type: Optional[Union[str, azure.mgmt.web.v2021_01_01.models._web_site_management_client_enums.BackupRestoreOperationType]] = 'Default', adjust_connection_strings: Optional[bool] = None, hosting_environment: Optional[str] = None, **kwargs)

Parameters

kind
str
Required

Kind of resource.

storage_account_url
str
Required

SAS URL to the container.

blob_name
str
Required

Name of a blob which contains the backup.

overwrite
bool
Required

<code>true</code> if the restore operation can overwrite target app; otherwise, <code>false</code>. <code>true</code> is needed if trying to restore over an existing app.

site_name
str
Required

Name of an app.

databases
list[DatabaseBackupSetting]
Required

Collection of databases which should be restored. This list has to match the list of databases included in the backup.

ignore_conflicting_host_names
bool
Required

Changes a logic when restoring an app with custom domains. <code>true</code> to remove custom domains automatically. If <code>false</code>, custom domains are added to the app's object when it is being restored, but that might fail due to conflicts during the operation.

ignore_databases
bool
Required

Ignore the databases and only restore the site content.

app_service_plan
str
Required

Specify app service plan that will own restored site.

operation_type
str or BackupRestoreOperationType
Required

Operation type. Possible values include: "Default", "Clone", "Relocation", "Snapshot", "CloudFS". Default value: "Default".

adjust_connection_strings
bool
Required

<code>true</code> if SiteConfig.ConnectionStrings should be set in new app; otherwise, <code>false</code>.

hosting_environment
str
Required

App Service Environment name, if needed (only when restoring an app to an App Service Environment).

Variables

id
str

Resource Id.

name
str

Resource Name.

type
str

Resource type.