CosmosDBAccount Interface
Implements
public interface CosmosDBAccount
extends GroupableResource<CosmosManager,DatabaseAccountGetResultsInner>, Refreshable<CosmosDBAccount>, Updatable<Update>, SupportsUpdatingPrivateEndpointConnection
An immutable client-side representation of an Azure Cosmos DB.
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract List<Capability> |
capabilities()
Gets a list that contains the Cosmos DB capabilities. |
abstract boolean |
cassandraConnectorEnabled()
Checks whether cassandra connector is enabled. |
abstract
Connector |
cassandraConnectorOffer()
Gets the current cassandra connector offer. |
abstract
Consistency |
consistencyPolicy()
Gets the consistency policy for the CosmosDB database account. |
abstract
Database |
databaseAccountOfferType()
Gets the offer type for the CosmosDB database account. |
abstract
Default |
defaultConsistencyLevel()
Gets the default consistency level for the CosmosDB database account. |
abstract String |
documentEndpoint()
Gets the connection endpoint for the CosmosDB database account. |
abstract
Private |
getPrivateEndpointConnection(String name)
Gets the specific private endpoint connection. |
abstract
Mono<Private |
getPrivateEndpointConnectionAsync(String name)
Gets the specific private endpoint connection. |
abstract
Private |
getPrivateLinkResource(String groupName)
Gets the specific private link resource. |
abstract
Mono<Private |
getPrivateLinkResourceAsync(String groupName)
Gets the specific private link resource. |
abstract String |
ipRangeFilter()
Deprecated
use ipRules()
Gets specifies the set of IP addresses or IP address ranges in CIDR form. |
abstract
List<Ip |
ipRules()
Gets specifies the set of IP addresses or IP address ranges in CIDR form. |
abstract boolean |
keyBasedMetadataWriteAccessDisabled()
Checks whether metadata write access is disabled. |
abstract
Database |
kind()
Gets the type of database account. |
abstract
Database |
listConnectionStrings()
Gets the connection strings for the specified Azure CosmosDB database account. |
abstract
Mono<Database |
listConnectionStringsAsync()
Gets the connection strings for the specified Azure CosmosDB database account. |
abstract
Database |
listKeys()
Gets the access keys for the specified Azure CosmosDB database account. |
abstract
Mono<Database |
listKeysAsync()
Gets the access keys for the specified Azure CosmosDB database account. |
abstract
Map<String,Private |
listPrivateEndpointConnection()
Gets all private endpoint connection in the account. |
abstract
Mono<Map<String,Private |
listPrivateEndpointConnectionAsync()
Gets all private endpoint connection in the account. |
abstract
List<Private |
listPrivateLinkResources()
Gets all private link resources in the account. |
abstract
Paged |
listPrivateLinkResourcesAsync()
Gets all private link resources in the account. |
abstract
Database |
listReadOnlyKeys()
Gets the read-only access keys for the specified Azure CosmosDB database account. |
abstract
Mono<Database |
listReadOnlyKeysAsync()
Gets the read-only access keys for the specified Azure CosmosDB database account. |
abstract
List<Sql |
listSqlDatabases()
Gets the list of Azure Cosmos DB SQL databases. |
abstract
Paged |
listSqlDatabasesAsync()
Gets the list of Azure Cosmos DB SQL databases. |
abstract boolean |
multipleWriteLocationsEnabled()
Checks whether write is enabled for multiple locations. |
abstract void |
offlineRegion(Region region)
It takes offline the specified region for the current Azure Cosmos DB database account. |
abstract Mono<Void> |
offlineRegionAsync(Region region)
Asynchronously it takes offline the specified region for the current Azure Cosmos DB database account. |
abstract void |
onlineRegion(Region region)
It brings online the specified region for the current Azure Cosmos DB database account. |
abstract Mono<Void> |
onlineRegionAsync(Region region)
Asynchronously it brings online the specified region for the current Azure Cosmos DB database account. |
abstract
Public |
publicNetworkAccess()
Whether the CosmosDB account can be accessed from public network. |
abstract List<Location> |
readableReplications()
Gets an array that contains the readable georeplication locations enabled for the CosmosDB account. |
abstract void |
regenerateKey(KeyKind keyKind)
Regenerates secret keys. |
abstract Mono<Void> |
regenerateKeyAsync(KeyKind keyKind)
A deferred emitter that regenerates secret keys. |
abstract
List<Virtual |
virtualNetworkRules()
Gets a list that contains the Cosmos DB Virtual Network ACL Rules. |
abstract List<Location> |
writableReplications()
Gets an array that contains the writable georeplication locations enabled for the CosmosDB account. |
Method Details
capabilities
public abstract List
Gets a list that contains the Cosmos DB capabilities.
Returns:
cassandraConnectorEnabled
public abstract boolean cassandraConnectorEnabled()
Checks whether cassandra connector is enabled.
Returns:
cassandraConnectorOffer
public abstract ConnectorOffer cassandraConnectorOffer()
Gets the current cassandra connector offer.
Returns:
consistencyPolicy
public abstract ConsistencyPolicy consistencyPolicy()
Gets the consistency policy for the CosmosDB database account.
Returns:
databaseAccountOfferType
public abstract DatabaseAccountOfferType databaseAccountOfferType()
Gets the offer type for the CosmosDB database account.
Returns:
defaultConsistencyLevel
public abstract DefaultConsistencyLevel defaultConsistencyLevel()
Gets the default consistency level for the CosmosDB database account.
Returns:
documentEndpoint
public abstract String documentEndpoint()
Gets the connection endpoint for the CosmosDB database account.
Returns:
getPrivateEndpointConnection
public abstract PrivateEndpointConnection getPrivateEndpointConnection(String name)
Gets the specific private endpoint connection.
Parameters:
Returns:
getPrivateEndpointConnectionAsync
public abstract Mono
Gets the specific private endpoint connection.
Parameters:
Returns:
getPrivateLinkResource
public abstract PrivateLinkResource getPrivateLinkResource(String groupName)
Gets the specific private link resource.
Parameters:
Returns:
getPrivateLinkResourceAsync
public abstract Mono
Gets the specific private link resource.
Parameters:
Returns:
ipRangeFilter
@Deprecated
public abstract String ipRangeFilter()
Deprecated
Gets specifies the set of IP addresses or IP address ranges in CIDR form.
Returns:
ipRules
public abstract List
Gets specifies the set of IP addresses or IP address ranges in CIDR form.
Returns:
keyBasedMetadataWriteAccessDisabled
public abstract boolean keyBasedMetadataWriteAccessDisabled()
Checks whether metadata write access is disabled.
Returns:
kind
public abstract DatabaseAccountKind kind()
Gets the type of database account.
Returns:
listConnectionStrings
public abstract DatabaseAccountListConnectionStringsResult listConnectionStrings()
Gets the connection strings for the specified Azure CosmosDB database account.
Returns:
listConnectionStringsAsync
public abstract Mono
Gets the connection strings for the specified Azure CosmosDB database account.
Returns:
listKeys
public abstract DatabaseAccountListKeysResult listKeys()
Gets the access keys for the specified Azure CosmosDB database account.
Returns:
listKeysAsync
public abstract Mono
Gets the access keys for the specified Azure CosmosDB database account.
Returns:
listPrivateEndpointConnection
public abstract Map
Gets all private endpoint connection in the account.
Returns:
listPrivateEndpointConnectionAsync
public abstract Mono
Gets all private endpoint connection in the account.
Returns:
listPrivateLinkResources
public abstract List
Gets all private link resources in the account.
Returns:
listPrivateLinkResourcesAsync
public abstract PagedFlux
Gets all private link resources in the account.
Returns:
listReadOnlyKeys
public abstract DatabaseAccountListReadOnlyKeysResult listReadOnlyKeys()
Gets the read-only access keys for the specified Azure CosmosDB database account.
Returns:
listReadOnlyKeysAsync
public abstract Mono
Gets the read-only access keys for the specified Azure CosmosDB database account.
Returns:
listSqlDatabases
public abstract List
Gets the list of Azure Cosmos DB SQL databases.
Returns:
listSqlDatabasesAsync
public abstract PagedFlux
Gets the list of Azure Cosmos DB SQL databases.
Returns:
multipleWriteLocationsEnabled
public abstract boolean multipleWriteLocationsEnabled()
Checks whether write is enabled for multiple locations.
Returns:
offlineRegion
public abstract void offlineRegion(Region region)
It takes offline the specified region for the current Azure Cosmos DB database account.
Parameters:
offlineRegionAsync
public abstract Mono
Asynchronously it takes offline the specified region for the current Azure Cosmos DB database account.
Parameters:
Returns:
onlineRegion
public abstract void onlineRegion(Region region)
It brings online the specified region for the current Azure Cosmos DB database account.
Parameters:
onlineRegionAsync
public abstract Mono
Asynchronously it brings online the specified region for the current Azure Cosmos DB database account.
Parameters:
Returns:
publicNetworkAccess
public abstract PublicNetworkAccess publicNetworkAccess()
Whether the CosmosDB account can be accessed from public network.
Returns:
readableReplications
public abstract List
Gets an array that contains the readable georeplication locations enabled for the CosmosDB account.
Returns:
regenerateKey
public abstract void regenerateKey(KeyKind keyKind)
Regenerates secret keys.
Parameters:
regenerateKeyAsync
public abstract Mono
A deferred emitter that regenerates secret keys.
Parameters:
Returns:
virtualNetworkRules
public abstract List
Gets a list that contains the Cosmos DB Virtual Network ACL Rules.
Returns:
writableReplications
public abstract List
Gets an array that contains the writable georeplication locations enabled for the CosmosDB account.
Returns:
Applies to
Azure SDK for Java