vaultmanager/modules/VaultManagerKV.py
def kv_secrets_tree(self, vault_addr, vault_token, paths, excluded=[]):
        """
        Method running the secrets tree function of KV module

        :param vault_addr: Vault instance URL
        :type vault_addr: str
        :param vault_token: Vault token
        :type vault_token: str
        :param paths: Paths to look for duplicates
        :type paths: list(str)
        :param excluded: Paths to exclude from count
        :type excluded: list(str)

        :return: dict
        """
        self.logger.debug("KV secrets paths starting")
        vault_client = self.connect_to_vault(
            vault_addr,
            vault_token
        )
        kv_full = {}
        for path in paths:
            kv_full[path] = vault_client.secrets_tree_list(path, excluded)
        self.logger.info(json.dumps(kv_full, indent=4))
        return kv_full

        Method running the secrets tree function of KV module

        :param vault_addr: Vault instance URL
        :type vault_addr: str
        :param vault_token: Vault token
        :type vault_token: str
        :param paths: Paths to look for duplicates
        :type paths: list(str)
        :param excluded: Paths to exclude from count
        :type excluded: list(str)

        :return: dict
        
Method running the secrets tree function of KV module
Method running the secrets tree function of KV module
def kv_secrets_tree(self, vault_addr, vault_token, paths, excluded=[]):
        self.logger.debug("KV secrets paths starting")
        vault_client = self.connect_to_vault(
            vault_addr,
            vault_token
        )
        kv_full = {}
        for path in paths:
            kv_full[path] = vault_client.secrets_tree_list(path, excluded)
        self.logger.info(json.dumps(kv_full, indent=4))
        return kv_full
def kv_secrets_tree ( self , vault_addr , vault_token , paths , excluded = [ ] ) : self . logger . debug ( "KV secrets paths starting" ) vault_client = self . connect_to_vault ( vault_addr , vault_token ) kv_full = { } for path in paths : kv_full [ path ] = vault_client . secrets_tree_list ( path , excluded ) self . logger . info ( json . dumps ( kv_full , indent = 4 ) ) return kv_full
Method running the secrets tree function of KV module
Method running the secrets tree function of KV module
"""
        Method running the secrets tree function of KV module

        :param vault_addr: Vault instance URL
        :type vault_addr: str
        :param vault_token: Vault token
        :type vault_token: str
        :param paths: Paths to look for duplicates
        :type paths: list(str)
        :param excluded: Paths to exclude from count
        :type excluded: list(str)

        :return: dict
        """
None
self
vault_addr
Vault instance URL
Vault instance URL
vault_token
None
paths
Paths to look for duplicates
Paths to look for duplicates
excluded
Paths to exclude from count
Paths to exclude from count