HashiCorp Vault v6.3.0 published on Thursday, Aug 8, 2024 by Pulumi
vault.transit.getEncrypt
Explore with Pulumi AI
This is a data source which can be used to encrypt plaintext using a Vault Transit key.
Using getEncrypt
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getEncrypt(args: GetEncryptArgs, opts?: InvokeOptions): Promise<GetEncryptResult>
function getEncryptOutput(args: GetEncryptOutputArgs, opts?: InvokeOptions): Output<GetEncryptResult>
def get_encrypt(backend: Optional[str] = None,
context: Optional[str] = None,
key: Optional[str] = None,
key_version: Optional[int] = None,
namespace: Optional[str] = None,
plaintext: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetEncryptResult
def get_encrypt_output(backend: Optional[pulumi.Input[str]] = None,
context: Optional[pulumi.Input[str]] = None,
key: Optional[pulumi.Input[str]] = None,
key_version: Optional[pulumi.Input[int]] = None,
namespace: Optional[pulumi.Input[str]] = None,
plaintext: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetEncryptResult]
func GetEncrypt(ctx *Context, args *GetEncryptArgs, opts ...InvokeOption) (*GetEncryptResult, error)
func GetEncryptOutput(ctx *Context, args *GetEncryptOutputArgs, opts ...InvokeOption) GetEncryptResultOutput
> Note: This function is named GetEncrypt
in the Go SDK.
public static class GetEncrypt
{
public static Task<GetEncryptResult> InvokeAsync(GetEncryptArgs args, InvokeOptions? opts = null)
public static Output<GetEncryptResult> Invoke(GetEncryptInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetEncryptResult> getEncrypt(GetEncryptArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: vault:transit/getEncrypt:getEncrypt
arguments:
# arguments dictionary
The following arguments are supported:
getEncrypt Result
The following output properties are available:
- Backend string
- Ciphertext string
- Encrypted ciphertext returned from Vault
- Id string
- The provider-assigned unique ID for this managed resource.
- Key string
- Plaintext string
- Context string
- Key
Version int - Namespace string
- Backend string
- Ciphertext string
- Encrypted ciphertext returned from Vault
- Id string
- The provider-assigned unique ID for this managed resource.
- Key string
- Plaintext string
- Context string
- Key
Version int - Namespace string
- backend String
- ciphertext String
- Encrypted ciphertext returned from Vault
- id String
- The provider-assigned unique ID for this managed resource.
- key String
- plaintext String
- context String
- key
Version Integer - namespace String
- backend string
- ciphertext string
- Encrypted ciphertext returned from Vault
- id string
- The provider-assigned unique ID for this managed resource.
- key string
- plaintext string
- context string
- key
Version number - namespace string
- backend str
- ciphertext str
- Encrypted ciphertext returned from Vault
- id str
- The provider-assigned unique ID for this managed resource.
- key str
- plaintext str
- context str
- key_
version int - namespace str
- backend String
- ciphertext String
- Encrypted ciphertext returned from Vault
- id String
- The provider-assigned unique ID for this managed resource.
- key String
- plaintext String
- context String
- key
Version Number - namespace String
Package Details
- Repository
- Vault pulumi/pulumi-vault
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
vault
Terraform Provider.