We recommend using Azure Native.
azure.keyvault.getEncryptedValue
Explore with Pulumi AI
Encrypts or Decrypts a value using a Key Vault Key.
Using getEncryptedValue
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 getEncryptedValue(args: GetEncryptedValueArgs, opts?: InvokeOptions): Promise<GetEncryptedValueResult>
function getEncryptedValueOutput(args: GetEncryptedValueOutputArgs, opts?: InvokeOptions): Output<GetEncryptedValueResult>def get_encrypted_value(algorithm: Optional[str] = None,
                        encrypted_data: Optional[str] = None,
                        key_vault_key_id: Optional[str] = None,
                        plain_text_value: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetEncryptedValueResult
def get_encrypted_value_output(algorithm: Optional[pulumi.Input[str]] = None,
                        encrypted_data: Optional[pulumi.Input[str]] = None,
                        key_vault_key_id: Optional[pulumi.Input[str]] = None,
                        plain_text_value: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetEncryptedValueResult]func GetEncryptedValue(ctx *Context, args *GetEncryptedValueArgs, opts ...InvokeOption) (*GetEncryptedValueResult, error)
func GetEncryptedValueOutput(ctx *Context, args *GetEncryptedValueOutputArgs, opts ...InvokeOption) GetEncryptedValueResultOutput> Note: This function is named GetEncryptedValue in the Go SDK.
public static class GetEncryptedValue 
{
    public static Task<GetEncryptedValueResult> InvokeAsync(GetEncryptedValueArgs args, InvokeOptions? opts = null)
    public static Output<GetEncryptedValueResult> Invoke(GetEncryptedValueInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetEncryptedValueResult> getEncryptedValue(GetEncryptedValueArgs args, InvokeOptions options)
public static Output<GetEncryptedValueResult> getEncryptedValue(GetEncryptedValueArgs args, InvokeOptions options)
fn::invoke:
  function: azure:keyvault/getEncryptedValue:getEncryptedValue
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Algorithm string
- The Algorithm which should be used to Decrypt/Encrypt this Value. Possible values are RSA1_5,RSA-OAEPandRSA-OAEP-256.
- KeyVault stringKey Id 
- The ID of the Key Vault Key which should be used to Decrypt/Encrypt this Value.
- EncryptedData string
- The Base64 URL Encoded Encrypted Data which should be decrypted into plain_text_value.
- PlainText stringValue 
- The plain-text value which should be Encrypted into - encrypted_data.- Note: One of either - encrypted_dataor- plain_text_valuemust be specified and is used to populate the encrypted/decrypted value for the other field.
- Algorithm string
- The Algorithm which should be used to Decrypt/Encrypt this Value. Possible values are RSA1_5,RSA-OAEPandRSA-OAEP-256.
- KeyVault stringKey Id 
- The ID of the Key Vault Key which should be used to Decrypt/Encrypt this Value.
- EncryptedData string
- The Base64 URL Encoded Encrypted Data which should be decrypted into plain_text_value.
- PlainText stringValue 
- The plain-text value which should be Encrypted into - encrypted_data.- Note: One of either - encrypted_dataor- plain_text_valuemust be specified and is used to populate the encrypted/decrypted value for the other field.
- algorithm String
- The Algorithm which should be used to Decrypt/Encrypt this Value. Possible values are RSA1_5,RSA-OAEPandRSA-OAEP-256.
- keyVault StringKey Id 
- The ID of the Key Vault Key which should be used to Decrypt/Encrypt this Value.
- encryptedData String
- The Base64 URL Encoded Encrypted Data which should be decrypted into plain_text_value.
- plainText StringValue 
- The plain-text value which should be Encrypted into - encrypted_data.- Note: One of either - encrypted_dataor- plain_text_valuemust be specified and is used to populate the encrypted/decrypted value for the other field.
- algorithm string
- The Algorithm which should be used to Decrypt/Encrypt this Value. Possible values are RSA1_5,RSA-OAEPandRSA-OAEP-256.
- keyVault stringKey Id 
- The ID of the Key Vault Key which should be used to Decrypt/Encrypt this Value.
- encryptedData string
- The Base64 URL Encoded Encrypted Data which should be decrypted into plain_text_value.
- plainText stringValue 
- The plain-text value which should be Encrypted into - encrypted_data.- Note: One of either - encrypted_dataor- plain_text_valuemust be specified and is used to populate the encrypted/decrypted value for the other field.
- algorithm str
- The Algorithm which should be used to Decrypt/Encrypt this Value. Possible values are RSA1_5,RSA-OAEPandRSA-OAEP-256.
- key_vault_ strkey_ id 
- The ID of the Key Vault Key which should be used to Decrypt/Encrypt this Value.
- encrypted_data str
- The Base64 URL Encoded Encrypted Data which should be decrypted into plain_text_value.
- plain_text_ strvalue 
- The plain-text value which should be Encrypted into - encrypted_data.- Note: One of either - encrypted_dataor- plain_text_valuemust be specified and is used to populate the encrypted/decrypted value for the other field.
- algorithm String
- The Algorithm which should be used to Decrypt/Encrypt this Value. Possible values are RSA1_5,RSA-OAEPandRSA-OAEP-256.
- keyVault StringKey Id 
- The ID of the Key Vault Key which should be used to Decrypt/Encrypt this Value.
- encryptedData String
- The Base64 URL Encoded Encrypted Data which should be decrypted into plain_text_value.
- plainText StringValue 
- The plain-text value which should be Encrypted into - encrypted_data.- Note: One of either - encrypted_dataor- plain_text_valuemust be specified and is used to populate the encrypted/decrypted value for the other field.
getEncryptedValue Result
The following output properties are available:
- Algorithm string
- DecodedPlain stringText Value 
- The Base64URL decoded string of plain_text_value. Because the API would remove padding characters ofplain_text_valuewhen encrypting, this attribute is useful to get the original value.
- Id string
- The provider-assigned unique ID for this managed resource.
- KeyVault stringKey Id 
- EncryptedData string
- PlainText stringValue 
- Algorithm string
- DecodedPlain stringText Value 
- The Base64URL decoded string of plain_text_value. Because the API would remove padding characters ofplain_text_valuewhen encrypting, this attribute is useful to get the original value.
- Id string
- The provider-assigned unique ID for this managed resource.
- KeyVault stringKey Id 
- EncryptedData string
- PlainText stringValue 
- algorithm String
- decodedPlain StringText Value 
- The Base64URL decoded string of plain_text_value. Because the API would remove padding characters ofplain_text_valuewhen encrypting, this attribute is useful to get the original value.
- id String
- The provider-assigned unique ID for this managed resource.
- keyVault StringKey Id 
- encryptedData String
- plainText StringValue 
- algorithm string
- decodedPlain stringText Value 
- The Base64URL decoded string of plain_text_value. Because the API would remove padding characters ofplain_text_valuewhen encrypting, this attribute is useful to get the original value.
- id string
- The provider-assigned unique ID for this managed resource.
- keyVault stringKey Id 
- encryptedData string
- plainText stringValue 
- algorithm str
- decoded_plain_ strtext_ value 
- The Base64URL decoded string of plain_text_value. Because the API would remove padding characters ofplain_text_valuewhen encrypting, this attribute is useful to get the original value.
- id str
- The provider-assigned unique ID for this managed resource.
- key_vault_ strkey_ id 
- encrypted_data str
- plain_text_ strvalue 
- algorithm String
- decodedPlain StringText Value 
- The Base64URL decoded string of plain_text_value. Because the API would remove padding characters ofplain_text_valuewhen encrypting, this attribute is useful to get the original value.
- id String
- The provider-assigned unique ID for this managed resource.
- keyVault StringKey Id 
- encryptedData String
- plainText StringValue 
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the azurermTerraform Provider.