lr_hashicorp_vault_save_secret_from_json
Extracts the secret from the response received from HashiCorp Vault and saves it in a parameter.
Arguments
| Name | Comments |
|---|---|
| JSON | The json response received from Vault. |
| Secret | The secret that will be extracted from “data” field, e.g. “username”. |
| ResultParamName | The name of the parameter in which the response will be stored. |
Return Values
Returns 0 on success, or 1 for an error.
Parameterization
All string input arguments can be passed using standard parameterization.
Examples
C language
lr_hashicorp_vault_save_secret_from_json ("JSON={response}",
"Secret=username"
"ResultParamName=data",
LAST);Java and .NET
lr.hashicorp_vault_save_secret_from_json (new String[] {
"JSON={response}",
"Secret=username",
"ResultParamName=data"});JavaScript
lr.hashicorpVaultSaveSecretFromJson ({ json: "{response}",
secret: "username",
resultParamName: "data"});

