getSecret

Using getSecret

function getSecret(args: GetSecretArgs, opts?: InvokeOptions): Promise<GetSecretResult>
def get_secret(path: Optional[str] = None,
               version: Optional[int] = None,
               opts: Optional[InvokeOptions] = None) -> GetSecretResult
func LookupSecret(ctx *Context, args *LookupSecretArgs, opts ...InvokeOption) (*LookupSecretResult, error)

Note: This function is named LookupSecret in the Go SDK.

public static class GetSecret {
    public static Task<GetSecretResult> InvokeAsync(GetSecretArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Path string
The full logical path from which to request data. To read data from the “generic” secret backend mounted in Vault by default, this should be prefixed with secret/. Reading from other backends with this data source is possible; consult each backend’s documentation to see which endpoints support the GET method.
Version int
Path string
The full logical path from which to request data. To read data from the “generic” secret backend mounted in Vault by default, this should be prefixed with secret/. Reading from other backends with this data source is possible; consult each backend’s documentation to see which endpoints support the GET method.
Version int
path string
The full logical path from which to request data. To read data from the “generic” secret backend mounted in Vault by default, this should be prefixed with secret/. Reading from other backends with this data source is possible; consult each backend’s documentation to see which endpoints support the GET method.
version number
path str
The full logical path from which to request data. To read data from the “generic” secret backend mounted in Vault by default, this should be prefixed with secret/. Reading from other backends with this data source is possible; consult each backend’s documentation to see which endpoints support the GET method.
version int

getSecret Result

The following output properties are available:

Data Dictionary<string, object>
A mapping whose keys are the top-level data keys returned from Vault and whose values are the corresponding values. This map can only represent string data, so any non-string values returned from Vault are serialized as JSON.
DataJson string
A string containing the full data payload retrieved from Vault, serialized in JSON format.
Id string
The provider-assigned unique ID for this managed resource.
LeaseDuration int
The duration of the secret lease, in seconds relative to the time the data was requested. Once this time has passed any plan generated with this data may fail to apply.
LeaseId string
The lease identifier assigned by Vault, if any.
LeaseRenewable bool
LeaseStartTime string
Path string
Version int
Data map[string]interface{}
A mapping whose keys are the top-level data keys returned from Vault and whose values are the corresponding values. This map can only represent string data, so any non-string values returned from Vault are serialized as JSON.
DataJson string
A string containing the full data payload retrieved from Vault, serialized in JSON format.
Id string
The provider-assigned unique ID for this managed resource.
LeaseDuration int
The duration of the secret lease, in seconds relative to the time the data was requested. Once this time has passed any plan generated with this data may fail to apply.
LeaseId string
The lease identifier assigned by Vault, if any.
LeaseRenewable bool
LeaseStartTime string
Path string
Version int
data {[key: string]: any}
A mapping whose keys are the top-level data keys returned from Vault and whose values are the corresponding values. This map can only represent string data, so any non-string values returned from Vault are serialized as JSON.
dataJson string
A string containing the full data payload retrieved from Vault, serialized in JSON format.
id string
The provider-assigned unique ID for this managed resource.
leaseDuration number
The duration of the secret lease, in seconds relative to the time the data was requested. Once this time has passed any plan generated with this data may fail to apply.
leaseId string
The lease identifier assigned by Vault, if any.
leaseRenewable boolean
leaseStartTime string
path string
version number
data Mapping[str, Any]
A mapping whose keys are the top-level data keys returned from Vault and whose values are the corresponding values. This map can only represent string data, so any non-string values returned from Vault are serialized as JSON.
data_json str
A string containing the full data payload retrieved from Vault, serialized in JSON format.
id str
The provider-assigned unique ID for this managed resource.
lease_duration int
The duration of the secret lease, in seconds relative to the time the data was requested. Once this time has passed any plan generated with this data may fail to apply.
lease_id str
The lease identifier assigned by Vault, if any.
lease_renewable bool
lease_start_time str
path str
version int

Package Details

Repository
https://github.com/pulumi/pulumi-vault
License
Apache-2.0
Notes
This Pulumi package is based on the vault Terraform Provider.