CosmosDBAccounts Interface
Implements
public interface CosmosDBAccounts
extends SupportsCreating<Blank>, HasManager<CosmosManager>, SupportsBatchCreation<CosmosDBAccount>, SupportsGettingById<CosmosDBAccount>, SupportsDeletingById, SupportsDeletingByResourceGroup, SupportsListing<CosmosDBAccount>, SupportsListingByResourceGroup<CosmosDBAccount>, SupportsGettingByResourceGroup<CosmosDBAccount>
Entry point to Cosmos DB management API.
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract void |
failoverPriorityChange(String groupName, String accountName, List<Location> failoverPolicies)
Changes the failover priority for the Azure CosmosDB database account. |
abstract Mono<Void> |
failoverPriorityChangeAsync(String groupName, String accountName, List<Location> failoverPolicies)
Changes the failover priority for the Azure CosmosDB database account. |
abstract
Database |
listConnectionStrings(String groupName, String accountName)
Lists the connection strings for the specified Azure CosmosDB database account. |
abstract
Mono<Database |
listConnectionStringsAsync(String groupName, String accountName)
Lists the connection strings for the specified Azure CosmosDB database account. |
abstract
Database |
listKeys(String groupName, String accountName)
Lists the access keys for the specified Azure CosmosDB database account. |
abstract
Mono<Database |
listKeysAsync(String groupName, String accountName)
Lists the access keys for the specified Azure CosmosDB database account. |
abstract
Database |
listReadOnlyKeys(String groupName, String accountName)
Lists the read-only access keys for the specified Azure CosmosDB database account. |
abstract
Mono<Database |
listReadOnlyKeysAsync(String groupName, String accountName)
Lists the read-only access keys for the specified Azure CosmosDB database account. |
abstract void |
regenerateKey(String groupName, String accountName, KeyKind keyKind)
Regenerates an access key for the specified Azure CosmosDB database account. |
abstract Mono<Void> |
regenerateKeyAsync(String groupName, String accountName, KeyKind keyKind)
Regenerates an access key for the specified Azure CosmosDB database account. |
Method Details
failoverPriorityChange
public abstract void failoverPriorityChange(String groupName, String accountName, List
Changes the failover priority for the Azure CosmosDB database account. A failover priority of 0 indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists.
Parameters:
failoverPriorityChangeAsync
public abstract Mono
Changes the failover priority for the Azure CosmosDB database account. A failover priority of 0 indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists.
Parameters:
Returns:
listConnectionStrings
public abstract DatabaseAccountListConnectionStringsResult listConnectionStrings(String groupName, String accountName)
Lists the connection strings for the specified Azure CosmosDB database account.
Parameters:
Returns:
listConnectionStringsAsync
public abstract Mono
Lists the connection strings for the specified Azure CosmosDB database account.
Parameters:
Returns:
listKeys
public abstract DatabaseAccountListKeysResult listKeys(String groupName, String accountName)
Lists the access keys for the specified Azure CosmosDB database account.
Parameters:
Returns:
listKeysAsync
public abstract Mono
Lists the access keys for the specified Azure CosmosDB database account.
Parameters:
Returns:
listReadOnlyKeys
public abstract DatabaseAccountListReadOnlyKeysResult listReadOnlyKeys(String groupName, String accountName)
Lists the read-only access keys for the specified Azure CosmosDB database account.
Parameters:
Returns:
listReadOnlyKeysAsync
public abstract Mono
Lists the read-only access keys for the specified Azure CosmosDB database account.
Parameters:
Returns:
regenerateKey
public abstract void regenerateKey(String groupName, String accountName, KeyKind keyKind)
Regenerates an access key for the specified Azure CosmosDB database account.
Parameters:
regenerateKeyAsync
public abstract Mono
Regenerates an access key for the specified Azure CosmosDB database account.
Parameters:
Returns:
Applies to
Azure SDK for Java