Interface DatabaseAccountsClient
- All Superinterfaces:
InnerSupportsDelete<Void>
,InnerSupportsGet<DatabaseAccountGetResultsInner>
,InnerSupportsListing<DatabaseAccountGetResultsInner>
public interface DatabaseAccountsClient
extends InnerSupportsGet<DatabaseAccountGetResultsInner>, InnerSupportsListing<DatabaseAccountGetResultsInner>, InnerSupportsDelete<Void>
An instance of this class provides access to all the operations defined in DatabaseAccountsClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller
<com.azure.core.management.polling.PollResult<DatabaseAccountGetResultsInner>, DatabaseAccountGetResultsInner> beginCreateOrUpdate
(String resourceGroupName, String accountName, DatabaseAccountCreateUpdateParameters createUpdateParameters) Creates or updates an Azure Cosmos DB database account.com.azure.core.util.polling.SyncPoller
<com.azure.core.management.polling.PollResult<DatabaseAccountGetResultsInner>, DatabaseAccountGetResultsInner> beginCreateOrUpdate
(String resourceGroupName, String accountName, DatabaseAccountCreateUpdateParameters createUpdateParameters, com.azure.core.util.Context context) Creates or updates an Azure Cosmos DB database account.com.azure.core.util.polling.PollerFlux
<com.azure.core.management.polling.PollResult<DatabaseAccountGetResultsInner>, DatabaseAccountGetResultsInner> beginCreateOrUpdateAsync
(String resourceGroupName, String accountName, DatabaseAccountCreateUpdateParameters createUpdateParameters) Creates or updates an Azure Cosmos DB database account.beginDelete
(String resourceGroupName, String accountName) Deletes an existing Azure Cosmos DB database account.beginDelete
(String resourceGroupName, String accountName, com.azure.core.util.Context context) Deletes an existing Azure Cosmos DB database account.beginDeleteAsync
(String resourceGroupName, String accountName) Deletes an existing Azure Cosmos DB database account.beginFailoverPriorityChange
(String resourceGroupName, String accountName, FailoverPolicies failoverParameters) Changes the failover priority for the Azure Cosmos DB database account.beginFailoverPriorityChange
(String resourceGroupName, String accountName, FailoverPolicies failoverParameters, com.azure.core.util.Context context) Changes the failover priority for the Azure Cosmos DB database account.beginFailoverPriorityChangeAsync
(String resourceGroupName, String accountName, FailoverPolicies failoverParameters) Changes the failover priority for the Azure Cosmos DB database account.beginOfflineRegion
(String resourceGroupName, String accountName, RegionForOnlineOffline regionParameterForOffline) Offline the specified region for the specified Azure Cosmos DB database account.beginOfflineRegion
(String resourceGroupName, String accountName, RegionForOnlineOffline regionParameterForOffline, com.azure.core.util.Context context) Offline the specified region for the specified Azure Cosmos DB database account.beginOfflineRegionAsync
(String resourceGroupName, String accountName, RegionForOnlineOffline regionParameterForOffline) Offline the specified region for the specified Azure Cosmos DB database account.beginOnlineRegion
(String resourceGroupName, String accountName, RegionForOnlineOffline regionParameterForOnline) Online the specified region for the specified Azure Cosmos DB database account.beginOnlineRegion
(String resourceGroupName, String accountName, RegionForOnlineOffline regionParameterForOnline, com.azure.core.util.Context context) Online the specified region for the specified Azure Cosmos DB database account.beginOnlineRegionAsync
(String resourceGroupName, String accountName, RegionForOnlineOffline regionParameterForOnline) Online the specified region for the specified Azure Cosmos DB database account.beginRegenerateKey
(String resourceGroupName, String accountName, DatabaseAccountRegenerateKeyParameters keyToRegenerate) Regenerates an access key for the specified Azure Cosmos DB database account.beginRegenerateKey
(String resourceGroupName, String accountName, DatabaseAccountRegenerateKeyParameters keyToRegenerate, com.azure.core.util.Context context) Regenerates an access key for the specified Azure Cosmos DB database account.beginRegenerateKeyAsync
(String resourceGroupName, String accountName, DatabaseAccountRegenerateKeyParameters keyToRegenerate) Regenerates an access key for the specified Azure Cosmos DB database account.com.azure.core.util.polling.SyncPoller
<com.azure.core.management.polling.PollResult<DatabaseAccountGetResultsInner>, DatabaseAccountGetResultsInner> beginUpdate
(String resourceGroupName, String accountName, DatabaseAccountUpdateParameters updateParameters) Updates the properties of an existing Azure Cosmos DB database account.com.azure.core.util.polling.SyncPoller
<com.azure.core.management.polling.PollResult<DatabaseAccountGetResultsInner>, DatabaseAccountGetResultsInner> beginUpdate
(String resourceGroupName, String accountName, DatabaseAccountUpdateParameters updateParameters, com.azure.core.util.Context context) Updates the properties of an existing Azure Cosmos DB database account.com.azure.core.util.polling.PollerFlux
<com.azure.core.management.polling.PollResult<DatabaseAccountGetResultsInner>, DatabaseAccountGetResultsInner> beginUpdateAsync
(String resourceGroupName, String accountName, DatabaseAccountUpdateParameters updateParameters) Updates the properties of an existing Azure Cosmos DB database account.boolean
checkNameExists
(String accountName) Checks that the Azure Cosmos DB account name already exists.checkNameExistsAsync
(String accountName) Checks that the Azure Cosmos DB account name already exists.com.azure.core.http.rest.Response
<Boolean> checkNameExistsWithResponse
(String accountName, com.azure.core.util.Context context) Checks that the Azure Cosmos DB account name already exists.checkNameExistsWithResponseAsync
(String accountName) Checks that the Azure Cosmos DB account name already exists.createOrUpdate
(String resourceGroupName, String accountName, DatabaseAccountCreateUpdateParameters createUpdateParameters) Creates or updates an Azure Cosmos DB database account.createOrUpdate
(String resourceGroupName, String accountName, DatabaseAccountCreateUpdateParameters createUpdateParameters, com.azure.core.util.Context context) Creates or updates an Azure Cosmos DB database account.createOrUpdateAsync
(String resourceGroupName, String accountName, DatabaseAccountCreateUpdateParameters createUpdateParameters) Creates or updates an Azure Cosmos DB database account.Mono
<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync
(String resourceGroupName, String accountName, DatabaseAccountCreateUpdateParameters createUpdateParameters) Creates or updates an Azure Cosmos DB database account.void
Deletes an existing Azure Cosmos DB database account.void
Deletes an existing Azure Cosmos DB database account.deleteAsync
(String resourceGroupName, String accountName) Deletes an existing Azure Cosmos DB database account.Mono
<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync
(String resourceGroupName, String accountName) Deletes an existing Azure Cosmos DB database account.void
failoverPriorityChange
(String resourceGroupName, String accountName, FailoverPolicies failoverParameters) Changes the failover priority for the Azure Cosmos DB database account.void
failoverPriorityChange
(String resourceGroupName, String accountName, FailoverPolicies failoverParameters, com.azure.core.util.Context context) Changes the failover priority for the Azure Cosmos DB database account.failoverPriorityChangeAsync
(String resourceGroupName, String accountName, FailoverPolicies failoverParameters) Changes the failover priority for the Azure Cosmos DB database account.Mono
<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> failoverPriorityChangeWithResponseAsync
(String resourceGroupName, String accountName, FailoverPolicies failoverParameters) Changes the failover priority for the Azure Cosmos DB database account.getByResourceGroup
(String resourceGroupName, String accountName) Retrieves the properties of an existing Azure Cosmos DB database account.getByResourceGroupAsync
(String resourceGroupName, String accountName) Retrieves the properties of an existing Azure Cosmos DB database account.com.azure.core.http.rest.Response
<DatabaseAccountGetResultsInner> getByResourceGroupWithResponse
(String resourceGroupName, String accountName, com.azure.core.util.Context context) Retrieves the properties of an existing Azure Cosmos DB database account.Mono
<com.azure.core.http.rest.Response<DatabaseAccountGetResultsInner>> getByResourceGroupWithResponseAsync
(String resourceGroupName, String accountName) Retrieves the properties of an existing Azure Cosmos DB database account.getReadOnlyKeys
(String resourceGroupName, String accountName) Lists the read-only access keys for the specified Azure Cosmos DB database account.getReadOnlyKeysAsync
(String resourceGroupName, String accountName) Lists the read-only access keys for the specified Azure Cosmos DB database account.com.azure.core.http.rest.Response
<DatabaseAccountListReadOnlyKeysResultInner> getReadOnlyKeysWithResponse
(String resourceGroupName, String accountName, com.azure.core.util.Context context) Lists the read-only access keys for the specified Azure Cosmos DB database account.Mono
<com.azure.core.http.rest.Response<DatabaseAccountListReadOnlyKeysResultInner>> getReadOnlyKeysWithResponseAsync
(String resourceGroupName, String accountName) Lists the read-only access keys for the specified Azure Cosmos DB database account.com.azure.core.http.rest.PagedIterable
<DatabaseAccountGetResultsInner> list()
Lists all the Azure Cosmos DB database accounts available under the subscription.com.azure.core.http.rest.PagedIterable
<DatabaseAccountGetResultsInner> list
(com.azure.core.util.Context context) Lists all the Azure Cosmos DB database accounts available under the subscription.com.azure.core.http.rest.PagedFlux
<DatabaseAccountGetResultsInner> Lists all the Azure Cosmos DB database accounts available under the subscription.com.azure.core.http.rest.PagedIterable
<DatabaseAccountGetResultsInner> listByResourceGroup
(String resourceGroupName) Lists all the Azure Cosmos DB database accounts available under the given resource group.com.azure.core.http.rest.PagedIterable
<DatabaseAccountGetResultsInner> listByResourceGroup
(String resourceGroupName, com.azure.core.util.Context context) Lists all the Azure Cosmos DB database accounts available under the given resource group.com.azure.core.http.rest.PagedFlux
<DatabaseAccountGetResultsInner> listByResourceGroupAsync
(String resourceGroupName) Lists all the Azure Cosmos DB database accounts available under the given resource group.listConnectionStrings
(String resourceGroupName, String accountName) Lists the connection strings for the specified Azure Cosmos DB database account.listConnectionStringsAsync
(String resourceGroupName, String accountName) Lists the connection strings for the specified Azure Cosmos DB database account.com.azure.core.http.rest.Response
<DatabaseAccountListConnectionStringsResultInner> listConnectionStringsWithResponse
(String resourceGroupName, String accountName, com.azure.core.util.Context context) Lists the connection strings for the specified Azure Cosmos DB database account.Mono
<com.azure.core.http.rest.Response<DatabaseAccountListConnectionStringsResultInner>> listConnectionStringsWithResponseAsync
(String resourceGroupName, String accountName) Lists the connection strings for the specified Azure Cosmos DB database account.Lists the access keys for the specified Azure Cosmos DB database account.listKeysAsync
(String resourceGroupName, String accountName) Lists the access keys for the specified Azure Cosmos DB database account.com.azure.core.http.rest.Response
<DatabaseAccountListKeysResultInner> listKeysWithResponse
(String resourceGroupName, String accountName, com.azure.core.util.Context context) Lists the access keys for the specified Azure Cosmos DB database account.Mono
<com.azure.core.http.rest.Response<DatabaseAccountListKeysResultInner>> listKeysWithResponseAsync
(String resourceGroupName, String accountName) Lists the access keys for the specified Azure Cosmos DB database account.com.azure.core.http.rest.PagedIterable
<MetricDefinitionInner> listMetricDefinitions
(String resourceGroupName, String accountName) Retrieves metric definitions for the given database account.com.azure.core.http.rest.PagedIterable
<MetricDefinitionInner> listMetricDefinitions
(String resourceGroupName, String accountName, com.azure.core.util.Context context) Retrieves metric definitions for the given database account.com.azure.core.http.rest.PagedFlux
<MetricDefinitionInner> listMetricDefinitionsAsync
(String resourceGroupName, String accountName) Retrieves metric definitions for the given database account.com.azure.core.http.rest.PagedIterable
<MetricInner> listMetrics
(String resourceGroupName, String accountName, String filter) Retrieves the metrics determined by the given filter for the given database account.com.azure.core.http.rest.PagedIterable
<MetricInner> listMetrics
(String resourceGroupName, String accountName, String filter, com.azure.core.util.Context context) Retrieves the metrics determined by the given filter for the given database account.com.azure.core.http.rest.PagedFlux
<MetricInner> listMetricsAsync
(String resourceGroupName, String accountName, String filter) Retrieves the metrics determined by the given filter for the given database account.listReadOnlyKeys
(String resourceGroupName, String accountName) Lists the read-only access keys for the specified Azure Cosmos DB database account.listReadOnlyKeysAsync
(String resourceGroupName, String accountName) Lists the read-only access keys for the specified Azure Cosmos DB database account.com.azure.core.http.rest.Response
<DatabaseAccountListReadOnlyKeysResultInner> listReadOnlyKeysWithResponse
(String resourceGroupName, String accountName, com.azure.core.util.Context context) Lists the read-only access keys for the specified Azure Cosmos DB database account.Mono
<com.azure.core.http.rest.Response<DatabaseAccountListReadOnlyKeysResultInner>> listReadOnlyKeysWithResponseAsync
(String resourceGroupName, String accountName) Lists the read-only access keys for the specified Azure Cosmos DB database account.com.azure.core.http.rest.PagedIterable
<UsageInner> listUsages
(String resourceGroupName, String accountName) Retrieves the usages (most recent data) for the given database account.com.azure.core.http.rest.PagedIterable
<UsageInner> listUsages
(String resourceGroupName, String accountName, String filter, com.azure.core.util.Context context) Retrieves the usages (most recent data) for the given database account.com.azure.core.http.rest.PagedFlux
<UsageInner> listUsagesAsync
(String resourceGroupName, String accountName) Retrieves the usages (most recent data) for the given database account.com.azure.core.http.rest.PagedFlux
<UsageInner> listUsagesAsync
(String resourceGroupName, String accountName, String filter) Retrieves the usages (most recent data) for the given database account.void
offlineRegion
(String resourceGroupName, String accountName, RegionForOnlineOffline regionParameterForOffline) Offline the specified region for the specified Azure Cosmos DB database account.void
offlineRegion
(String resourceGroupName, String accountName, RegionForOnlineOffline regionParameterForOffline, com.azure.core.util.Context context) Offline the specified region for the specified Azure Cosmos DB database account.offlineRegionAsync
(String resourceGroupName, String accountName, RegionForOnlineOffline regionParameterForOffline) Offline the specified region for the specified Azure Cosmos DB database account.Mono
<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> offlineRegionWithResponseAsync
(String resourceGroupName, String accountName, RegionForOnlineOffline regionParameterForOffline) Offline the specified region for the specified Azure Cosmos DB database account.void
onlineRegion
(String resourceGroupName, String accountName, RegionForOnlineOffline regionParameterForOnline) Online the specified region for the specified Azure Cosmos DB database account.void
onlineRegion
(String resourceGroupName, String accountName, RegionForOnlineOffline regionParameterForOnline, com.azure.core.util.Context context) Online the specified region for the specified Azure Cosmos DB database account.onlineRegionAsync
(String resourceGroupName, String accountName, RegionForOnlineOffline regionParameterForOnline) Online the specified region for the specified Azure Cosmos DB database account.Mono
<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> onlineRegionWithResponseAsync
(String resourceGroupName, String accountName, RegionForOnlineOffline regionParameterForOnline) Online the specified region for the specified Azure Cosmos DB database account.void
regenerateKey
(String resourceGroupName, String accountName, DatabaseAccountRegenerateKeyParameters keyToRegenerate) Regenerates an access key for the specified Azure Cosmos DB database account.void
regenerateKey
(String resourceGroupName, String accountName, DatabaseAccountRegenerateKeyParameters keyToRegenerate, com.azure.core.util.Context context) Regenerates an access key for the specified Azure Cosmos DB database account.regenerateKeyAsync
(String resourceGroupName, String accountName, DatabaseAccountRegenerateKeyParameters keyToRegenerate) Regenerates an access key for the specified Azure Cosmos DB database account.Mono
<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> regenerateKeyWithResponseAsync
(String resourceGroupName, String accountName, DatabaseAccountRegenerateKeyParameters keyToRegenerate) Regenerates an access key for the specified Azure Cosmos DB database account.update
(String resourceGroupName, String accountName, DatabaseAccountUpdateParameters updateParameters) Updates the properties of an existing Azure Cosmos DB database account.update
(String resourceGroupName, String accountName, DatabaseAccountUpdateParameters updateParameters, com.azure.core.util.Context context) Updates the properties of an existing Azure Cosmos DB database account.updateAsync
(String resourceGroupName, String accountName, DatabaseAccountUpdateParameters updateParameters) Updates the properties of an existing Azure Cosmos DB database account.Mono
<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> updateWithResponseAsync
(String resourceGroupName, String accountName, DatabaseAccountUpdateParameters updateParameters) Updates the properties of an existing Azure Cosmos DB database account.
-
Method Details
-
getByResourceGroupWithResponseAsync
Mono<com.azure.core.http.rest.Response<DatabaseAccountGetResultsInner>> getByResourceGroupWithResponseAsync(String resourceGroupName, String accountName) Retrieves the properties of an existing Azure Cosmos DB database account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.- Returns:
- an Azure Cosmos DB database account along with
Response
on successful completion ofMono
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getByResourceGroupAsync
Mono<DatabaseAccountGetResultsInner> getByResourceGroupAsync(String resourceGroupName, String accountName) Retrieves the properties of an existing Azure Cosmos DB database account.- Specified by:
getByResourceGroupAsync
in interfaceInnerSupportsGet<DatabaseAccountGetResultsInner>
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.- Returns:
- an Azure Cosmos DB database account on successful completion of
Mono
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getByResourceGroupWithResponse
com.azure.core.http.rest.Response<DatabaseAccountGetResultsInner> getByResourceGroupWithResponse(String resourceGroupName, String accountName, com.azure.core.util.Context context) Retrieves the properties of an existing Azure Cosmos DB database account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.context
- The context to associate with this operation.- Returns:
- an Azure Cosmos DB database account along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getByResourceGroup
Retrieves the properties of an existing Azure Cosmos DB database account.- Specified by:
getByResourceGroup
in interfaceInnerSupportsGet<DatabaseAccountGetResultsInner>
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.- Returns:
- an Azure Cosmos DB database account.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
updateWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> updateWithResponseAsync(String resourceGroupName, String accountName, DatabaseAccountUpdateParameters updateParameters) Updates the properties of an existing Azure Cosmos DB database account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.updateParameters
- The parameters to provide for the current database account.- Returns:
- an Azure Cosmos DB database account along with
Response
on successful completion ofMono
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginUpdateAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<DatabaseAccountGetResultsInner>,DatabaseAccountGetResultsInner> beginUpdateAsync(String resourceGroupName, String accountName, DatabaseAccountUpdateParameters updateParameters) Updates the properties of an existing Azure Cosmos DB database account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.updateParameters
- The parameters to provide for the current database account.- Returns:
- the
PollerFlux
for polling of an Azure Cosmos DB database account. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DatabaseAccountGetResultsInner>,DatabaseAccountGetResultsInner> beginUpdate(String resourceGroupName, String accountName, DatabaseAccountUpdateParameters updateParameters) Updates the properties of an existing Azure Cosmos DB database account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.updateParameters
- The parameters to provide for the current database account.- Returns:
- the
SyncPoller
for polling of an Azure Cosmos DB database account. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DatabaseAccountGetResultsInner>,DatabaseAccountGetResultsInner> beginUpdate(String resourceGroupName, String accountName, DatabaseAccountUpdateParameters updateParameters, com.azure.core.util.Context context) Updates the properties of an existing Azure Cosmos DB database account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.updateParameters
- The parameters to provide for the current database account.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of an Azure Cosmos DB database account. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
updateAsync
Mono<DatabaseAccountGetResultsInner> updateAsync(String resourceGroupName, String accountName, DatabaseAccountUpdateParameters updateParameters) Updates the properties of an existing Azure Cosmos DB database account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.updateParameters
- The parameters to provide for the current database account.- Returns:
- an Azure Cosmos DB database account on successful completion of
Mono
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
update
DatabaseAccountGetResultsInner update(String resourceGroupName, String accountName, DatabaseAccountUpdateParameters updateParameters) Updates the properties of an existing Azure Cosmos DB database account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.updateParameters
- The parameters to provide for the current database account.- Returns:
- an Azure Cosmos DB database account.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
update
DatabaseAccountGetResultsInner update(String resourceGroupName, String accountName, DatabaseAccountUpdateParameters updateParameters, com.azure.core.util.Context context) Updates the properties of an existing Azure Cosmos DB database account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.updateParameters
- The parameters to provide for the current database account.context
- The context to associate with this operation.- Returns:
- an Azure Cosmos DB database account.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdateWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String accountName, DatabaseAccountCreateUpdateParameters createUpdateParameters) Creates or updates an Azure Cosmos DB database account. The "Update" method is preferred when performing updates on an account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.createUpdateParameters
- The parameters to provide for the current database account.- Returns:
- an Azure Cosmos DB database account along with
Response
on successful completion ofMono
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginCreateOrUpdateAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<DatabaseAccountGetResultsInner>,DatabaseAccountGetResultsInner> beginCreateOrUpdateAsync(String resourceGroupName, String accountName, DatabaseAccountCreateUpdateParameters createUpdateParameters) Creates or updates an Azure Cosmos DB database account. The "Update" method is preferred when performing updates on an account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.createUpdateParameters
- The parameters to provide for the current database account.- Returns:
- the
PollerFlux
for polling of an Azure Cosmos DB database account. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DatabaseAccountGetResultsInner>,DatabaseAccountGetResultsInner> beginCreateOrUpdate(String resourceGroupName, String accountName, DatabaseAccountCreateUpdateParameters createUpdateParameters) Creates or updates an Azure Cosmos DB database account. The "Update" method is preferred when performing updates on an account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.createUpdateParameters
- The parameters to provide for the current database account.- Returns:
- the
SyncPoller
for polling of an Azure Cosmos DB database account. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DatabaseAccountGetResultsInner>,DatabaseAccountGetResultsInner> beginCreateOrUpdate(String resourceGroupName, String accountName, DatabaseAccountCreateUpdateParameters createUpdateParameters, com.azure.core.util.Context context) Creates or updates an Azure Cosmos DB database account. The "Update" method is preferred when performing updates on an account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.createUpdateParameters
- The parameters to provide for the current database account.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of an Azure Cosmos DB database account. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdateAsync
Mono<DatabaseAccountGetResultsInner> createOrUpdateAsync(String resourceGroupName, String accountName, DatabaseAccountCreateUpdateParameters createUpdateParameters) Creates or updates an Azure Cosmos DB database account. The "Update" method is preferred when performing updates on an account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.createUpdateParameters
- The parameters to provide for the current database account.- Returns:
- an Azure Cosmos DB database account on successful completion of
Mono
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdate
DatabaseAccountGetResultsInner createOrUpdate(String resourceGroupName, String accountName, DatabaseAccountCreateUpdateParameters createUpdateParameters) Creates or updates an Azure Cosmos DB database account. The "Update" method is preferred when performing updates on an account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.createUpdateParameters
- The parameters to provide for the current database account.- Returns:
- an Azure Cosmos DB database account.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdate
DatabaseAccountGetResultsInner createOrUpdate(String resourceGroupName, String accountName, DatabaseAccountCreateUpdateParameters createUpdateParameters, com.azure.core.util.Context context) Creates or updates an Azure Cosmos DB database account. The "Update" method is preferred when performing updates on an account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.createUpdateParameters
- The parameters to provide for the current database account.context
- The context to associate with this operation.- Returns:
- an Azure Cosmos DB database account.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
deleteWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String accountName) Deletes an existing Azure Cosmos DB database account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.- Returns:
- the
Response
on successful completion ofMono
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginDeleteAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginDeleteAsync(String resourceGroupName, String accountName) Deletes an existing Azure Cosmos DB database account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.- Returns:
- the
PollerFlux
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String accountName) Deletes an existing Azure Cosmos DB database account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.- Returns:
- the
SyncPoller
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String accountName, com.azure.core.util.Context context) Deletes an existing Azure Cosmos DB database account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
deleteAsync
Deletes an existing Azure Cosmos DB database account.- Specified by:
deleteAsync
in interfaceInnerSupportsDelete<Void>
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.- Returns:
- A
Mono
that completes when a successful response is received. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
delete
Deletes an existing Azure Cosmos DB database account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
delete
Deletes an existing Azure Cosmos DB database account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
failoverPriorityChangeWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> failoverPriorityChangeWithResponseAsync(String resourceGroupName, String accountName, FailoverPolicies failoverParameters) Changes the failover priority for the Azure Cosmos DB 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:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.failoverParameters
- The new failover policies for the database account.- Returns:
- the
Response
on successful completion ofMono
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginFailoverPriorityChangeAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginFailoverPriorityChangeAsync(String resourceGroupName, String accountName, FailoverPolicies failoverParameters) Changes the failover priority for the Azure Cosmos DB 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:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.failoverParameters
- The new failover policies for the database account.- Returns:
- the
PollerFlux
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginFailoverPriorityChange
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginFailoverPriorityChange(String resourceGroupName, String accountName, FailoverPolicies failoverParameters) Changes the failover priority for the Azure Cosmos DB 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:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.failoverParameters
- The new failover policies for the database account.- Returns:
- the
SyncPoller
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginFailoverPriorityChange
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginFailoverPriorityChange(String resourceGroupName, String accountName, FailoverPolicies failoverParameters, com.azure.core.util.Context context) Changes the failover priority for the Azure Cosmos DB 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:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.failoverParameters
- The new failover policies for the database account.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
failoverPriorityChangeAsync
Mono<Void> failoverPriorityChangeAsync(String resourceGroupName, String accountName, FailoverPolicies failoverParameters) Changes the failover priority for the Azure Cosmos DB 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:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.failoverParameters
- The new failover policies for the database account.- Returns:
- A
Mono
that completes when a successful response is received. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
failoverPriorityChange
void failoverPriorityChange(String resourceGroupName, String accountName, FailoverPolicies failoverParameters) Changes the failover priority for the Azure Cosmos DB 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:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.failoverParameters
- The new failover policies for the database account.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
failoverPriorityChange
void failoverPriorityChange(String resourceGroupName, String accountName, FailoverPolicies failoverParameters, com.azure.core.util.Context context) Changes the failover priority for the Azure Cosmos DB 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:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.failoverParameters
- The new failover policies for the database account.context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listAsync
com.azure.core.http.rest.PagedFlux<DatabaseAccountGetResultsInner> listAsync()Lists all the Azure Cosmos DB database accounts available under the subscription.- Specified by:
listAsync
in interfaceInnerSupportsListing<DatabaseAccountGetResultsInner>
- Returns:
- the List operation response, that contains the database accounts and their properties as paginated
response with
PagedFlux
. - Throws:
com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
list
com.azure.core.http.rest.PagedIterable<DatabaseAccountGetResultsInner> list()Lists all the Azure Cosmos DB database accounts available under the subscription.- Specified by:
list
in interfaceInnerSupportsListing<DatabaseAccountGetResultsInner>
- Returns:
- the List operation response, that contains the database accounts and their properties as paginated
response with
PagedIterable
. - Throws:
com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
list
com.azure.core.http.rest.PagedIterable<DatabaseAccountGetResultsInner> list(com.azure.core.util.Context context) Lists all the Azure Cosmos DB database accounts available under the subscription.- Parameters:
context
- The context to associate with this operation.- Returns:
- the List operation response, that contains the database accounts and their properties as paginated
response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listByResourceGroupAsync
com.azure.core.http.rest.PagedFlux<DatabaseAccountGetResultsInner> listByResourceGroupAsync(String resourceGroupName) Lists all the Azure Cosmos DB database accounts available under the given resource group.- Specified by:
listByResourceGroupAsync
in interfaceInnerSupportsListing<DatabaseAccountGetResultsInner>
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.- Returns:
- the List operation response, that contains the database accounts and their properties as paginated
response with
PagedFlux
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<DatabaseAccountGetResultsInner> listByResourceGroup(String resourceGroupName) Lists all the Azure Cosmos DB database accounts available under the given resource group.- Specified by:
listByResourceGroup
in interfaceInnerSupportsListing<DatabaseAccountGetResultsInner>
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.- Returns:
- the List operation response, that contains the database accounts and their properties as paginated
response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<DatabaseAccountGetResultsInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) Lists all the Azure Cosmos DB database accounts available under the given resource group.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.context
- The context to associate with this operation.- Returns:
- the List operation response, that contains the database accounts and their properties as paginated
response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listKeysWithResponseAsync
Mono<com.azure.core.http.rest.Response<DatabaseAccountListKeysResultInner>> listKeysWithResponseAsync(String resourceGroupName, String accountName) Lists the access keys for the specified Azure Cosmos DB database account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.- Returns:
- the access keys for the given database account along with
Response
on successful completion ofMono
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listKeysAsync
Mono<DatabaseAccountListKeysResultInner> listKeysAsync(String resourceGroupName, String accountName) Lists the access keys for the specified Azure Cosmos DB database account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.- Returns:
- the access keys for the given database account on successful completion of
Mono
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listKeysWithResponse
com.azure.core.http.rest.Response<DatabaseAccountListKeysResultInner> listKeysWithResponse(String resourceGroupName, String accountName, com.azure.core.util.Context context) Lists the access keys for the specified Azure Cosmos DB database account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.context
- The context to associate with this operation.- Returns:
- the access keys for the given database account along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listKeys
Lists the access keys for the specified Azure Cosmos DB database account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.- Returns:
- the access keys for the given database account.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listConnectionStringsWithResponseAsync
Mono<com.azure.core.http.rest.Response<DatabaseAccountListConnectionStringsResultInner>> listConnectionStringsWithResponseAsync(String resourceGroupName, String accountName) Lists the connection strings for the specified Azure Cosmos DB database account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.- Returns:
- the connection strings for the given database account along with
Response
on successful completion ofMono
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listConnectionStringsAsync
Mono<DatabaseAccountListConnectionStringsResultInner> listConnectionStringsAsync(String resourceGroupName, String accountName) Lists the connection strings for the specified Azure Cosmos DB database account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.- Returns:
- the connection strings for the given database account on successful completion of
Mono
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listConnectionStringsWithResponse
com.azure.core.http.rest.Response<DatabaseAccountListConnectionStringsResultInner> listConnectionStringsWithResponse(String resourceGroupName, String accountName, com.azure.core.util.Context context) Lists the connection strings for the specified Azure Cosmos DB database account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.context
- The context to associate with this operation.- Returns:
- the connection strings for the given database account along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listConnectionStrings
DatabaseAccountListConnectionStringsResultInner listConnectionStrings(String resourceGroupName, String accountName) Lists the connection strings for the specified Azure Cosmos DB database account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.- Returns:
- the connection strings for the given database account.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
offlineRegionWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> offlineRegionWithResponseAsync(String resourceGroupName, String accountName, RegionForOnlineOffline regionParameterForOffline) Offline the specified region for the specified Azure Cosmos DB database account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.regionParameterForOffline
- Cosmos DB region to offline for the database account.- Returns:
- the
Response
on successful completion ofMono
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginOfflineRegionAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginOfflineRegionAsync(String resourceGroupName, String accountName, RegionForOnlineOffline regionParameterForOffline) Offline the specified region for the specified Azure Cosmos DB database account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.regionParameterForOffline
- Cosmos DB region to offline for the database account.- Returns:
- the
PollerFlux
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginOfflineRegion
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginOfflineRegion(String resourceGroupName, String accountName, RegionForOnlineOffline regionParameterForOffline) Offline the specified region for the specified Azure Cosmos DB database account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.regionParameterForOffline
- Cosmos DB region to offline for the database account.- Returns:
- the
SyncPoller
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginOfflineRegion
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginOfflineRegion(String resourceGroupName, String accountName, RegionForOnlineOffline regionParameterForOffline, com.azure.core.util.Context context) Offline the specified region for the specified Azure Cosmos DB database account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.regionParameterForOffline
- Cosmos DB region to offline for the database account.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
offlineRegionAsync
Mono<Void> offlineRegionAsync(String resourceGroupName, String accountName, RegionForOnlineOffline regionParameterForOffline) Offline the specified region for the specified Azure Cosmos DB database account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.regionParameterForOffline
- Cosmos DB region to offline for the database account.- Returns:
- A
Mono
that completes when a successful response is received. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
offlineRegion
void offlineRegion(String resourceGroupName, String accountName, RegionForOnlineOffline regionParameterForOffline) Offline the specified region for the specified Azure Cosmos DB database account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.regionParameterForOffline
- Cosmos DB region to offline for the database account.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
offlineRegion
void offlineRegion(String resourceGroupName, String accountName, RegionForOnlineOffline regionParameterForOffline, com.azure.core.util.Context context) Offline the specified region for the specified Azure Cosmos DB database account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.regionParameterForOffline
- Cosmos DB region to offline for the database account.context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
onlineRegionWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> onlineRegionWithResponseAsync(String resourceGroupName, String accountName, RegionForOnlineOffline regionParameterForOnline) Online the specified region for the specified Azure Cosmos DB database account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.regionParameterForOnline
- Cosmos DB region to online for the database account.- Returns:
- the
Response
on successful completion ofMono
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginOnlineRegionAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginOnlineRegionAsync(String resourceGroupName, String accountName, RegionForOnlineOffline regionParameterForOnline) Online the specified region for the specified Azure Cosmos DB database account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.regionParameterForOnline
- Cosmos DB region to online for the database account.- Returns:
- the
PollerFlux
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginOnlineRegion
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginOnlineRegion(String resourceGroupName, String accountName, RegionForOnlineOffline regionParameterForOnline) Online the specified region for the specified Azure Cosmos DB database account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.regionParameterForOnline
- Cosmos DB region to online for the database account.- Returns:
- the
SyncPoller
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginOnlineRegion
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginOnlineRegion(String resourceGroupName, String accountName, RegionForOnlineOffline regionParameterForOnline, com.azure.core.util.Context context) Online the specified region for the specified Azure Cosmos DB database account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.regionParameterForOnline
- Cosmos DB region to online for the database account.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
onlineRegionAsync
Mono<Void> onlineRegionAsync(String resourceGroupName, String accountName, RegionForOnlineOffline regionParameterForOnline) Online the specified region for the specified Azure Cosmos DB database account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.regionParameterForOnline
- Cosmos DB region to online for the database account.- Returns:
- A
Mono
that completes when a successful response is received. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
onlineRegion
void onlineRegion(String resourceGroupName, String accountName, RegionForOnlineOffline regionParameterForOnline) Online the specified region for the specified Azure Cosmos DB database account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.regionParameterForOnline
- Cosmos DB region to online for the database account.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
onlineRegion
void onlineRegion(String resourceGroupName, String accountName, RegionForOnlineOffline regionParameterForOnline, com.azure.core.util.Context context) Online the specified region for the specified Azure Cosmos DB database account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.regionParameterForOnline
- Cosmos DB region to online for the database account.context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getReadOnlyKeysWithResponseAsync
Mono<com.azure.core.http.rest.Response<DatabaseAccountListReadOnlyKeysResultInner>> getReadOnlyKeysWithResponseAsync(String resourceGroupName, String accountName) Lists the read-only access keys for the specified Azure Cosmos DB database account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.- Returns:
- the read-only access keys for the given database account along with
Response
on successful completion ofMono
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getReadOnlyKeysAsync
Mono<DatabaseAccountListReadOnlyKeysResultInner> getReadOnlyKeysAsync(String resourceGroupName, String accountName) Lists the read-only access keys for the specified Azure Cosmos DB database account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.- Returns:
- the read-only access keys for the given database account on successful completion of
Mono
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getReadOnlyKeysWithResponse
com.azure.core.http.rest.Response<DatabaseAccountListReadOnlyKeysResultInner> getReadOnlyKeysWithResponse(String resourceGroupName, String accountName, com.azure.core.util.Context context) Lists the read-only access keys for the specified Azure Cosmos DB database account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.context
- The context to associate with this operation.- Returns:
- the read-only access keys for the given database account along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getReadOnlyKeys
DatabaseAccountListReadOnlyKeysResultInner getReadOnlyKeys(String resourceGroupName, String accountName) Lists the read-only access keys for the specified Azure Cosmos DB database account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.- Returns:
- the read-only access keys for the given database account.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listReadOnlyKeysWithResponseAsync
Mono<com.azure.core.http.rest.Response<DatabaseAccountListReadOnlyKeysResultInner>> listReadOnlyKeysWithResponseAsync(String resourceGroupName, String accountName) Lists the read-only access keys for the specified Azure Cosmos DB database account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.- Returns:
- the read-only access keys for the given database account along with
Response
on successful completion ofMono
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listReadOnlyKeysAsync
Mono<DatabaseAccountListReadOnlyKeysResultInner> listReadOnlyKeysAsync(String resourceGroupName, String accountName) Lists the read-only access keys for the specified Azure Cosmos DB database account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.- Returns:
- the read-only access keys for the given database account on successful completion of
Mono
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listReadOnlyKeysWithResponse
com.azure.core.http.rest.Response<DatabaseAccountListReadOnlyKeysResultInner> listReadOnlyKeysWithResponse(String resourceGroupName, String accountName, com.azure.core.util.Context context) Lists the read-only access keys for the specified Azure Cosmos DB database account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.context
- The context to associate with this operation.- Returns:
- the read-only access keys for the given database account along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listReadOnlyKeys
DatabaseAccountListReadOnlyKeysResultInner listReadOnlyKeys(String resourceGroupName, String accountName) Lists the read-only access keys for the specified Azure Cosmos DB database account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.- Returns:
- the read-only access keys for the given database account.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
regenerateKeyWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> regenerateKeyWithResponseAsync(String resourceGroupName, String accountName, DatabaseAccountRegenerateKeyParameters keyToRegenerate) Regenerates an access key for the specified Azure Cosmos DB database account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.keyToRegenerate
- The name of the key to regenerate.- Returns:
- the
Response
on successful completion ofMono
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginRegenerateKeyAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginRegenerateKeyAsync(String resourceGroupName, String accountName, DatabaseAccountRegenerateKeyParameters keyToRegenerate) Regenerates an access key for the specified Azure Cosmos DB database account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.keyToRegenerate
- The name of the key to regenerate.- Returns:
- the
PollerFlux
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginRegenerateKey
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginRegenerateKey(String resourceGroupName, String accountName, DatabaseAccountRegenerateKeyParameters keyToRegenerate) Regenerates an access key for the specified Azure Cosmos DB database account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.keyToRegenerate
- The name of the key to regenerate.- Returns:
- the
SyncPoller
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginRegenerateKey
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginRegenerateKey(String resourceGroupName, String accountName, DatabaseAccountRegenerateKeyParameters keyToRegenerate, com.azure.core.util.Context context) Regenerates an access key for the specified Azure Cosmos DB database account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.keyToRegenerate
- The name of the key to regenerate.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
regenerateKeyAsync
Mono<Void> regenerateKeyAsync(String resourceGroupName, String accountName, DatabaseAccountRegenerateKeyParameters keyToRegenerate) Regenerates an access key for the specified Azure Cosmos DB database account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.keyToRegenerate
- The name of the key to regenerate.- Returns:
- A
Mono
that completes when a successful response is received. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
regenerateKey
void regenerateKey(String resourceGroupName, String accountName, DatabaseAccountRegenerateKeyParameters keyToRegenerate) Regenerates an access key for the specified Azure Cosmos DB database account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.keyToRegenerate
- The name of the key to regenerate.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
regenerateKey
void regenerateKey(String resourceGroupName, String accountName, DatabaseAccountRegenerateKeyParameters keyToRegenerate, com.azure.core.util.Context context) Regenerates an access key for the specified Azure Cosmos DB database account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.keyToRegenerate
- The name of the key to regenerate.context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
checkNameExistsWithResponseAsync
Mono<com.azure.core.http.rest.Response<Boolean>> checkNameExistsWithResponseAsync(String accountName) Checks that the Azure Cosmos DB account name already exists. A valid account name may contain only lowercase letters, numbers, and the '-' character, and must be between 3 and 50 characters.- Parameters:
accountName
- Cosmos DB database account name.- Returns:
- whether resource exists along with
Response
on successful completion ofMono
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
checkNameExistsAsync
Checks that the Azure Cosmos DB account name already exists. A valid account name may contain only lowercase letters, numbers, and the '-' character, and must be between 3 and 50 characters.- Parameters:
accountName
- Cosmos DB database account name.- Returns:
- whether resource exists on successful completion of
Mono
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
checkNameExistsWithResponse
com.azure.core.http.rest.Response<Boolean> checkNameExistsWithResponse(String accountName, com.azure.core.util.Context context) Checks that the Azure Cosmos DB account name already exists. A valid account name may contain only lowercase letters, numbers, and the '-' character, and must be between 3 and 50 characters.- Parameters:
accountName
- Cosmos DB database account name.context
- The context to associate with this operation.- Returns:
- whether resource exists along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
checkNameExists
Checks that the Azure Cosmos DB account name already exists. A valid account name may contain only lowercase letters, numbers, and the '-' character, and must be between 3 and 50 characters.- Parameters:
accountName
- Cosmos DB database account name.- Returns:
- whether resource exists.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listMetricsAsync
com.azure.core.http.rest.PagedFlux<MetricInner> listMetricsAsync(String resourceGroupName, String accountName, String filter) Retrieves the metrics determined by the given filter for the given database account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.filter
- An OData filter expression that describes a subset of metrics to return. The parameters that can be filtered are name.value (name of the metric, can have an or of multiple names), startTime, endTime, and timeGrain. The supported operator is eq.- Returns:
- the response to a list metrics request as paginated response with
PagedFlux
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listMetrics
com.azure.core.http.rest.PagedIterable<MetricInner> listMetrics(String resourceGroupName, String accountName, String filter) Retrieves the metrics determined by the given filter for the given database account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.filter
- An OData filter expression that describes a subset of metrics to return. The parameters that can be filtered are name.value (name of the metric, can have an or of multiple names), startTime, endTime, and timeGrain. The supported operator is eq.- Returns:
- the response to a list metrics request as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listMetrics
com.azure.core.http.rest.PagedIterable<MetricInner> listMetrics(String resourceGroupName, String accountName, String filter, com.azure.core.util.Context context) Retrieves the metrics determined by the given filter for the given database account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.filter
- An OData filter expression that describes a subset of metrics to return. The parameters that can be filtered are name.value (name of the metric, can have an or of multiple names), startTime, endTime, and timeGrain. The supported operator is eq.context
- The context to associate with this operation.- Returns:
- the response to a list metrics request as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listUsagesAsync
com.azure.core.http.rest.PagedFlux<UsageInner> listUsagesAsync(String resourceGroupName, String accountName, String filter) Retrieves the usages (most recent data) for the given database account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.filter
- An OData filter expression that describes a subset of usages to return. The supported parameter is name.value (name of the metric, can have an or of multiple names).- Returns:
- the response to a list usage request as paginated response with
PagedFlux
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listUsagesAsync
com.azure.core.http.rest.PagedFlux<UsageInner> listUsagesAsync(String resourceGroupName, String accountName) Retrieves the usages (most recent data) for the given database account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.- Returns:
- the response to a list usage request as paginated response with
PagedFlux
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listUsages
com.azure.core.http.rest.PagedIterable<UsageInner> listUsages(String resourceGroupName, String accountName) Retrieves the usages (most recent data) for the given database account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.- Returns:
- the response to a list usage request as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listUsages
com.azure.core.http.rest.PagedIterable<UsageInner> listUsages(String resourceGroupName, String accountName, String filter, com.azure.core.util.Context context) Retrieves the usages (most recent data) for the given database account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.filter
- An OData filter expression that describes a subset of usages to return. The supported parameter is name.value (name of the metric, can have an or of multiple names).context
- The context to associate with this operation.- Returns:
- the response to a list usage request as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listMetricDefinitionsAsync
com.azure.core.http.rest.PagedFlux<MetricDefinitionInner> listMetricDefinitionsAsync(String resourceGroupName, String accountName) Retrieves metric definitions for the given database account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.- Returns:
- the response to a list metric definitions request as paginated response with
PagedFlux
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listMetricDefinitions
com.azure.core.http.rest.PagedIterable<MetricDefinitionInner> listMetricDefinitions(String resourceGroupName, String accountName) Retrieves metric definitions for the given database account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.- Returns:
- the response to a list metric definitions request as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listMetricDefinitions
com.azure.core.http.rest.PagedIterable<MetricDefinitionInner> listMetricDefinitions(String resourceGroupName, String accountName, com.azure.core.util.Context context) Retrieves metric definitions for the given database account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- Cosmos DB database account name.context
- The context to associate with this operation.- Returns:
- the response to a list metric definitions request as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-