GetSecret
Using GetSecret
function getSecret(args: GetSecretArgs, opts?: InvokeOptions): Promise<GetSecretResult>function get_secret(path=None, version=None, opts=None)func LookupSecret(ctx *Context, args *LookupSecretArgs, opts ...InvokeOption) (*LookupSecretResult, error)Note: This function is named
LookupSecretin 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 theGETmethod.- 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 theGETmethod.- 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 theGETmethod.- 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 theGETmethod.- version float
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.
- Data
Json 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.
- 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 string The lease identifier assigned by Vault, if any.
- Lease
Renewable bool - Lease
Start stringTime - 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.
- Data
Json 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.
- 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 string The lease identifier assigned by Vault, if any.
- Lease
Renewable bool - Lease
Start stringTime - 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.
- data
Json 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.
- lease
Duration 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.
- lease
Id string The lease identifier assigned by Vault, if any.
- lease
Renewable boolean - lease
Start stringTime - path string
- version number
- data Dict[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 float 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_ strtime - path str
- version float
Package Details
- Repository
- https://github.com/pulumi/pulumi-vault
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
vaultTerraform Provider.