Sign in
agent:

Adding, Deleting, Listing DagKnows Proxy credentials or key-value pairs

There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.
  1. 1

    List credentials

    There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.

    List all the credential labels available or accessible for users with a given proxy role

    Inputs:

    • proxyrole: The proxy role for which we want to list credential labels
    dkv credentials list --role <proxyrole>
    copied
    1
  2. 2

    Add credentials

    There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.

    Using this task you can add credentials to the vault

    Inputs:

    • cred_label : Give a label to the credentials so that you can reference it in your code. No special characters.
    • type: specify type of credentials [ssh, winrm, jwt, basicauth]
    • username: some username with the credentials
    • password: This should be password for ssh, winrm, basicauth or API token for basicauth or jwt
    • proxyrole: The proxy role that has access to these credentials
    cmd = f"dkv credentials add {cred_label} --role {proxyrole} --conn-type {cred_type} --username {username} --password {password}" op = _exe(None, cmd) print(op)
    copied
    2
  3. 3

    Delete credentials

    There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.

    This command will delete credentials with a given credential label

    Inputs:

    • cred_label : The label of the credentials to delete
    • proxyrole: The proxy role under which the credentials are available
    dkv credentials delete <cred_label> --role <proxyrole>
    copied
    3
  4. 4

    View credentials

    There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.

    This command allows you to view the stored credentials. Be very careful!

    Inputs:

    • cred_label: The label of the credential to view
    • proxyrole: The proxy role under which the credentials are stored
    dkv credentials get <cred_label> --role <proxyrole>
    copied
    4
  5. 5

    List keys of the key-value pairs

    There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.

    This command allows you to list all the keys stored under a proxy role

    Inputs:

    • proxyrole: The proxy role under which the keys are stored
    dkv keys list --role <proxyrole>
    copied
    5
  6. 6

    Add a key-value pair

    There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.

    This command allows you to create a key-value pair

    Inputs:

    • key: The key to store
    • value: The value associated with the key
    • proxyrole: The role under which this key value pair is stored
    dkv keys set <key> --value <value> --role <proxyrole>
    copied
    6
  7. 7

    Get the value of a key

    There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.

    This command allows you to get the value associated with a key

    Inputs:

    • key: The key to get value of
    • proxyrole: The role under which this key value pair is stored


    dkv keys get <key> --role <proxyrole>
    copied
    7