def get_cosmosdb_account_keys(access_token, subscription_id, rgname, account_name):
    '''Get the access keys for the specified Cosmos DB account.

    Args:
        access_token (str): A valid Azure authentication token.
        subscription_id (str): Azure subscription id.
        rgname (str): Azure resource group name.
        account_name (str): Name of the Cosmos DB account.

    Returns:
        HTTP response. JSON body of Cosmos DB account keys.
    '''
    endpoint = ''.join([get_rm_endpoint(),
                        '/subscriptions/', subscription_id,
                        '/resourcegroups/', rgname,
                        '/providers/Microsoft.DocumentDB/databaseAccounts/', account_name,
                        '/listKeys',
                        '?api-version=', COSMOSDB_API])
    return do_post(endpoint, '', access_token)
def get_cosmosdb_account_keys ( access_token , subscription_id , rgname , account_name ) : endpoint = '' . join ( [ get_rm_endpoint ( ) , '/subscriptions/' , subscription_id , '/resourcegroups/' , rgname , '/providers/Microsoft.DocumentDB/databaseAccounts/' , account_name , '/listKeys' , '?api-version=' , COSMOSDB_API ] ) return do_post ( endpoint , '' , access_token )
Get the access keys for the specified Cosmos DB account.

    Args:
        access_token (str): A valid Azure authentication token.
        subscription_id (str): Azure subscription id.
        rgname (str): Azure resource group name.
        account_name (str): Name of the Cosmos DB account.

    Returns:
        HTTP response. JSON body of Cosmos DB account keys.