Interface CosmosDBAccount
- All Superinterfaces:
GroupableResource<com.microsoft.azure.management.cosmosdb.implementation.CosmosDBManager,
,com.microsoft.azure.management.cosmosdb.implementation.DatabaseAccountGetResultsInner> HasId
,HasInner<com.microsoft.azure.management.cosmosdb.implementation.DatabaseAccountGetResultsInner>
,HasManager<com.microsoft.azure.management.cosmosdb.implementation.CosmosDBManager>
,HasName
,HasResourceGroup
,Indexable
,Refreshable<CosmosDBAccount>
,Resource
,Updatable<CosmosDBAccount.Update>
@Beta(V1_2_0)
public interface CosmosDBAccount
extends GroupableResource<com.microsoft.azure.management.cosmosdb.implementation.CosmosDBManager,com.microsoft.azure.management.cosmosdb.implementation.DatabaseAccountGetResultsInner>, Refreshable<CosmosDBAccount>, Updatable<CosmosDBAccount.Update>
An immutable client-side representation of an Azure Cosmos DB.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Grouping of cosmos db definition stages.static interface
Grouping of cosmos db definition stages.static interface
Grouping of cosmos db update stages.static interface
Grouping of cosmos db update stages.Nested classes/interfaces inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.models.Resource
Resource.DefinitionWithRegion<T>, Resource.DefinitionWithTags<T>, Resource.UpdateWithTags<T>
-
Method Summary
Modifier and TypeMethodDescriptionboolean
rx.Observable<PrivateEndpointConnection>
getPrivateLinkResource
(String groupName) rx.Observable<PrivateLinkResource>
getPrivateLinkResourceAsync
(String groupName) boolean
kind()
rx.Observable<DatabaseAccountListConnectionStringsResult>
listKeys()
rx.Observable<DatabaseAccountListKeysResult>
rx.Observable<Map<String,
PrivateEndpointConnection>> rx.Observable<List<PrivateLinkResource>>
rx.Observable<DatabaseAccountListReadOnlyKeysResult>
rx.Observable<List<SqlDatabase>>
boolean
void
offlineRegion
(Region region) It takes offline the specified region for the current Azure Cosmos DB database account.rx.Completable
offlineRegionAsync
(Region region) Asynchronously it takes offline the specified region for the current Azure Cosmos DB database account.void
onlineRegion
(Region region) It brings online the specified region for the current Azure Cosmos DB database account.rx.Completable
onlineRegionAsync
(Region region) Asynchronously it brings online the specified region for the current Azure Cosmos DB database account.void
regenerateKey
(KeyKind keyKind) rx.Completable
regenerateKeyAsync
(KeyKind keyKind) Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.models.HasId
id
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.model.HasInner
inner
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.models.HasManager
manager
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.models.HasName
name
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.models.HasResourceGroup
resourceGroupName
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.model.Indexable
key
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.model.Refreshable
refresh, refreshAsync
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.models.Resource
region, regionName, tags, type
-
Method Details
-
kind
DatabaseAccountKind kind()- Returns:
- indicates the type of database account
-
documentEndpoint
String documentEndpoint()- Returns:
- the connection endpoint for the CosmosDB database account
-
databaseAccountOfferType
DatabaseAccountOfferType databaseAccountOfferType()- Returns:
- the offer type for the CosmosDB database account
-
ipRangeFilter
String ipRangeFilter()- Returns:
- specifies the set of IP addresses or IP address ranges in CIDR form.
-
consistencyPolicy
ConsistencyPolicy consistencyPolicy()- Returns:
- the consistency policy for the CosmosDB database account
-
defaultConsistencyLevel
DefaultConsistencyLevel defaultConsistencyLevel()- Returns:
- the default consistency level for the CosmosDB database account
-
writableReplications
- Returns:
- an array that contains the writable georeplication locations enabled for the CosmosDB account
-
readableReplications
- Returns:
- an array that contains the readable georeplication locations enabled for the CosmosDB account
-
listKeys
DatabaseAccountListKeysResult listKeys()- Returns:
- the access keys for the specified Azure CosmosDB database account
-
listKeysAsync
rx.Observable<DatabaseAccountListKeysResult> listKeysAsync()- Returns:
- the access keys for the specified Azure CosmosDB database account
-
listReadOnlyKeys
DatabaseAccountListReadOnlyKeysResult listReadOnlyKeys()- Returns:
- the read-only access keys for the specified Azure CosmosDB database account
-
listReadOnlyKeysAsync
rx.Observable<DatabaseAccountListReadOnlyKeysResult> listReadOnlyKeysAsync()- Returns:
- the read-only access keys for the specified Azure CosmosDB database account
-
listConnectionStrings
DatabaseAccountListConnectionStringsResult listConnectionStrings()- Returns:
- the connection strings for the specified Azure CosmosDB database account
-
listConnectionStringsAsync
rx.Observable<DatabaseAccountListConnectionStringsResult> listConnectionStringsAsync()- Returns:
- the connection strings for the specified Azure CosmosDB database account
-
listSqlDatabases
List<SqlDatabase> listSqlDatabases()- Returns:
- the list of Azure Cosmos DB SQL databases
-
listSqlDatabasesAsync
rx.Observable<List<SqlDatabase>> listSqlDatabasesAsync()- Returns:
- the list of Azure Cosmos DB SQL databases
-
multipleWriteLocationsEnabled
boolean multipleWriteLocationsEnabled()- Returns:
- whether write is enabled for multiple locations or not
-
cassandraConnectorEnabled
boolean cassandraConnectorEnabled()- Returns:
- whether cassandra connector is enabled or not.
-
cassandraConnectorOffer
ConnectorOffer cassandraConnectorOffer()- Returns:
- the current cassandra connector offer.
-
keyBasedMetadataWriteAccessDisabled
boolean keyBasedMetadataWriteAccessDisabled()- Returns:
- whether metadata write access is disabled or not.
-
listPrivateLinkResourcesAsync
rx.Observable<List<PrivateLinkResource>> listPrivateLinkResourcesAsync()- Returns:
- all private link resources in the account.
-
listPrivateLinkResources
List<PrivateLinkResource> listPrivateLinkResources()- Returns:
- all private link resources in the account.
-
getPrivateLinkResourceAsync
- Parameters:
groupName
- group name of private link resource- Returns:
- the specific private link resource group
-
getPrivateLinkResource
- Parameters:
groupName
- group name of private link resource- Returns:
- the specific private link resource group
-
listPrivateEndpointConnectionAsync
rx.Observable<Map<String,PrivateEndpointConnection>> listPrivateEndpointConnectionAsync()- Returns:
- all private endpoint connection in the account.
-
listPrivateEndpointConnection
Map<String,PrivateEndpointConnection> listPrivateEndpointConnection()- Returns:
- all private endpoint connection in the account.
-
getPrivateEndpointConnectionAsync
- Parameters:
name
- name of private endpoint connection- Returns:
- the specific private endpoint connection
-
getPrivateEndpointConnection
- Parameters:
name
- name of private endpoint connection- Returns:
- the specific private endpoint connection
-
capabilities
- Returns:
- a list that contains the Cosmos DB capabilities
-
virtualNetworkRules
- Returns:
- a list that contains the Cosmos DB Virtual Network ACL Rules (empty list if none is set)
-
offlineRegion
It takes offline the specified region for the current Azure Cosmos DB database account.- Parameters:
region
- Cosmos DB region
-
offlineRegionAsync
Asynchronously it takes offline the specified region for the current Azure Cosmos DB database account.- Parameters:
region
- Cosmos DB region- Returns:
- a representation of the deferred computation of this call
-
onlineRegion
It brings online the specified region for the current Azure Cosmos DB database account.- Parameters:
region
- Cosmos DB region
-
onlineRegionAsync
Asynchronously it brings online the specified region for the current Azure Cosmos DB database account.- Parameters:
region
- Cosmos DB region- Returns:
- a representation of the deferred computation of this call
-
regenerateKey
- Parameters:
keyKind
- the key kind
-
regenerateKeyAsync
- Parameters:
keyKind
- the key kind- Returns:
- a representation of the deferred computation of this call
-