Package version:

Class DatabaseAccount

Represents a DatabaseAccount in the Azure Cosmos DB database service.

Constructors

Properties

consistencyPolicy: ConsistencyLevel

Gets the UserConsistencyPolicy settings.

currentMediaStorageUsageInMB: number

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.

databasesLink: string

The self-link for Databases in the databaseAccount.

enableMultipleWritableLocations: boolean
maxMediaStorageUsageInMB: number

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

mediaLink: string

The self-link for Media in the databaseAccount.

readableLocations: Location[] = []

The list of readable locations for a geo-replicated database account.

writableLocations: Location[] = []

The list of writable locations for a geo-replicated database account.

Accessors

  • get CurrentMediaStorageUsageInMB(): number
  • 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.

    Returns number

    use currentMediaStorageUsageInMB