Interface RestorableDatabaseAccountsClient


  • public interface RestorableDatabaseAccountsClient
    An instance of this class provides access to all the operations defined in RestorableDatabaseAccountsClient.
    • Method Detail

      • listByLocationAsync

        com.azure.core.http.rest.PagedFlux<RestorableDatabaseAccountGetResultInner> listByLocationAsync​(String location)
        Lists all the restorable Azure Cosmos DB database accounts available under the subscription and in a region. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' permission.
        Parameters:
        location - Cosmos DB region, with spaces between words and each word capitalized.
        Returns:
        the List operation response, that contains the restorable database accounts and their properties.
        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.
      • listByLocation

        com.azure.core.http.rest.PagedIterable<RestorableDatabaseAccountGetResultInner> listByLocation​(String location)
        Lists all the restorable Azure Cosmos DB database accounts available under the subscription and in a region. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' permission.
        Parameters:
        location - Cosmos DB region, with spaces between words and each word capitalized.
        Returns:
        the List operation response, that contains the restorable database accounts and their properties.
        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.
      • listByLocation

        com.azure.core.http.rest.PagedIterable<RestorableDatabaseAccountGetResultInner> listByLocation​(String location,
                                                                                                       com.azure.core.util.Context context)
        Lists all the restorable Azure Cosmos DB database accounts available under the subscription and in a region. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' permission.
        Parameters:
        location - Cosmos DB region, with spaces between words and each word capitalized.
        context - The context to associate with this operation.
        Returns:
        the List operation response, that contains the restorable database accounts and their properties.
        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<RestorableDatabaseAccountGetResultInner> listAsync()
        Lists all the restorable Azure Cosmos DB database accounts available under the subscription. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' permission.
        Returns:
        the List operation response, that contains the restorable database accounts and their properties.
        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<RestorableDatabaseAccountGetResultInner> list()
        Lists all the restorable Azure Cosmos DB database accounts available under the subscription. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' permission.
        Returns:
        the List operation response, that contains the restorable database accounts and their properties.
        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<RestorableDatabaseAccountGetResultInner> list​(com.azure.core.util.Context context)
        Lists all the restorable Azure Cosmos DB database accounts available under the subscription. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' permission.
        Parameters:
        context - The context to associate with this operation.
        Returns:
        the List operation response, that contains the restorable database accounts and their properties.
        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.
      • getByLocationWithResponseAsync

        Mono<com.azure.core.http.rest.Response<RestorableDatabaseAccountGetResultInner>> getByLocationWithResponseAsync​(String location,
                                                                                                                        String instanceId)
        Retrieves the properties of an existing Azure Cosmos DB restorable database account. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read/*' permission.
        Parameters:
        location - Cosmos DB region, with spaces between words and each word capitalized.
        instanceId - The instanceId GUID of a restorable database account.
        Returns:
        a Azure Cosmos DB restorable 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.
      • getByLocationAsync

        Mono<RestorableDatabaseAccountGetResultInner> getByLocationAsync​(String location,
                                                                         String instanceId)
        Retrieves the properties of an existing Azure Cosmos DB restorable database account. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read/*' permission.
        Parameters:
        location - Cosmos DB region, with spaces between words and each word capitalized.
        instanceId - The instanceId GUID of a restorable database account.
        Returns:
        a Azure Cosmos DB restorable 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.
      • getByLocation

        RestorableDatabaseAccountGetResultInner getByLocation​(String location,
                                                              String instanceId)
        Retrieves the properties of an existing Azure Cosmos DB restorable database account. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read/*' permission.
        Parameters:
        location - Cosmos DB region, with spaces between words and each word capitalized.
        instanceId - The instanceId GUID of a restorable database account.
        Returns:
        a Azure Cosmos DB restorable 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.
      • getByLocationWithResponse

        com.azure.core.http.rest.Response<RestorableDatabaseAccountGetResultInner> getByLocationWithResponse​(String location,
                                                                                                             String instanceId,
                                                                                                             com.azure.core.util.Context context)
        Retrieves the properties of an existing Azure Cosmos DB restorable database account. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read/*' permission.
        Parameters:
        location - Cosmos DB region, with spaces between words and each word capitalized.
        instanceId - The instanceId GUID of a restorable database account.
        context - The context to associate with this operation.
        Returns:
        a Azure Cosmos DB restorable 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.