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

DatabaseAccount Class

Database account.

A DatabaseAccount is the container for databases.

Constructor

DatabaseAccount()

Variables

Name Description
DatabaseLink
str

The self-link for Databases in the databaseAccount.

MediaLink
str

The self-link for Media in the databaseAccount.

MaxMediaStorageUsageInMB
int

Attachment content (media) storage quota in MBs (Retrieved from gateway).

CurrentMediaStorageUsageInMB
int

Current attachment content (media) usage in MBs (Retrieved from gateway). Value is returned from cached information updated periodically and is not guaranteed to be real time.

ConsistencyPolicy

UserConsistencyPolicy settings.

EnableMultipleWritableLocations
<xref:boolean>

Flag on the azure Cosmos account that indicates if writes can take place in multiple locations.

Attributes

ReadableLocations

The list of readable locations for a geo-replicated database account. :returns: List of readable locations for the database account. :rtype: List[str]

WritableLocations

The list of writable locations for a geo-replicated database account. :returns: List of writable locations for the database account. :rtype: List[str]