你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

DatabaseBackupSetting Class

Database backup settings.

All required parameters must be populated in order to send to server.

Inheritance
azure.mgmt.web._serialization.Model
DatabaseBackupSetting

Constructor

DatabaseBackupSetting(*, database_type: str | _models.DatabaseType, name: str | None = None, connection_string_name: str | None = None, connection_string: str | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
database_type

Database type (e.g. SqlAzure / MySql). Required. Known values are: "SqlAzure", "MySql", "LocalMySql", and "PostgreSql".

name
str
connection_string_name
str

Contains a connection string name that is linked to the SiteConfig.ConnectionStrings. This is used during restore with overwrite connection strings options.

connection_string
str

Contains a connection string to a database which is being backed up or restored. If the restore should happen to a new database, the database name inside is the new one.

Variables

Name Description
database_type

Database type (e.g. SqlAzure / MySql). Required. Known values are: "SqlAzure", "MySql", "LocalMySql", and "PostgreSql".

name
str
connection_string_name
str

Contains a connection string name that is linked to the SiteConfig.ConnectionStrings. This is used during restore with overwrite connection strings options.

connection_string
str

Contains a connection string to a database which is being backed up or restored. If the restore should happen to a new database, the database name inside is the new one.