Interface CosmosDBAccounts

    • Method Detail

      • failoverPriorityChange

        void failoverPriorityChange​(String groupName,
                                    String accountName,
                                    List<Location> failoverPolicies)
        Changes the failover priority for the Azure CosmosDB database account. A failover priority of 0 indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists.
        Parameters:
        groupName - the group name
        accountName - the account name
        failoverPolicies - the list of failover policies
      • listKeys

        DatabaseAccountListKeysResult listKeys​(String groupName,
                                               String accountName)
        Lists the access keys for the specified Azure CosmosDB database account.
        Parameters:
        groupName - the group name
        accountName - the account name
        Returns:
        a list of keys
      • listReadOnlyKeys

        DatabaseAccountListReadOnlyKeysResult listReadOnlyKeys​(String groupName,
                                                               String accountName)
        Lists the read-only access keys for the specified Azure CosmosDB database account.
        Parameters:
        groupName - the group name
        accountName - the account name
        Returns:
        a list of keys
      • listConnectionStrings

        DatabaseAccountListConnectionStringsResult listConnectionStrings​(String groupName,
                                                                         String accountName)
        Lists the connection strings for the specified Azure CosmosDB database account.
        Parameters:
        groupName - the group name
        accountName - the account name
        Returns:
        a list of connection strings
      • regenerateKey

        void regenerateKey​(String groupName,
                           String accountName,
                           KeyKind keyKind)
        Regenerates an access key for the specified Azure CosmosDB database account.
        Parameters:
        groupName - the group name
        accountName - the account name
        keyKind - the key kind
      • failoverPriorityChangeAsync

        Mono<Void> failoverPriorityChangeAsync​(String groupName,
                                               String accountName,
                                               List<Location> failoverPolicies)
        Changes the failover priority for the Azure CosmosDB database account. A failover priority of 0 indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists.
        Parameters:
        groupName - the group name
        accountName - the account name
        failoverPolicies - the list of failover policies
        Returns:
        the ServiceResponse object if successful.
      • listKeysAsync

        Mono<DatabaseAccountListKeysResult> listKeysAsync​(String groupName,
                                                          String accountName)
        Lists the access keys for the specified Azure CosmosDB database account.
        Parameters:
        groupName - the group name
        accountName - the account name
        Returns:
        a list of keys
      • listReadOnlyKeysAsync

        Mono<DatabaseAccountListReadOnlyKeysResult> listReadOnlyKeysAsync​(String groupName,
                                                                          String accountName)
        Lists the read-only access keys for the specified Azure CosmosDB database account.
        Parameters:
        groupName - the group name
        accountName - the account name
        Returns:
        a list of keys
      • listConnectionStringsAsync

        Mono<DatabaseAccountListConnectionStringsResult> listConnectionStringsAsync​(String groupName,
                                                                                    String accountName)
        Lists the connection strings for the specified Azure CosmosDB database account.
        Parameters:
        groupName - the group name
        accountName - the account name
        Returns:
        a list of connection strings
      • regenerateKeyAsync

        Mono<Void> regenerateKeyAsync​(String groupName,
                                      String accountName,
                                      KeyKind keyKind)
        Regenerates an access key for the specified Azure CosmosDB database account.
        Parameters:
        groupName - the group name
        accountName - the account name
        keyKind - the key kind
        Returns:
        the ServiceResponse object if successful.