oci.Kms.getDecryptedData
The oci.Kms.getDecryptedData
data source provides details about a specific DecryptedData
Decrypts data using the given DecryptDataDetails resource.
Example Usage
using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testDecryptedData = Oci.Kms.GetDecryptedData.Invoke(new()
{
Ciphertext = @var.Decrypted_data_ciphertext,
CryptoEndpoint = @var.Decrypted_data_crypto_endpoint,
KeyId = oci_kms_key.Test_key.Id,
AssociatedData = @var.Decrypted_data_associated_data,
});
});
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/Kms"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Kms.GetDecryptedData(ctx, &kms.GetDecryptedDataArgs{
Ciphertext: _var.Decrypted_data_ciphertext,
CryptoEndpoint: _var.Decrypted_data_crypto_endpoint,
KeyId: oci_kms_key.Test_key.Id,
AssociatedData: _var.Decrypted_data_associated_data,
}, nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Kms.KmsFunctions;
import com.pulumi.oci.Kms.inputs.GetDecryptedDataArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var testDecryptedData = KmsFunctions.getDecryptedData(GetDecryptedDataArgs.builder()
.ciphertext(var_.decrypted_data_ciphertext())
.cryptoEndpoint(var_.decrypted_data_crypto_endpoint())
.keyId(oci_kms_key.test_key().id())
.associatedData(var_.decrypted_data_associated_data())
.build());
}
}
import pulumi
import pulumi_oci as oci
test_decrypted_data = oci.Kms.get_decrypted_data(ciphertext=var["decrypted_data_ciphertext"],
crypto_endpoint=var["decrypted_data_crypto_endpoint"],
key_id=oci_kms_key["test_key"]["id"],
associated_data=var["decrypted_data_associated_data"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDecryptedData = oci.Kms.getDecryptedData({
ciphertext: _var.decrypted_data_ciphertext,
cryptoEndpoint: _var.decrypted_data_crypto_endpoint,
keyId: oci_kms_key.test_key.id,
associatedData: _var.decrypted_data_associated_data,
});
variables:
testDecryptedData:
fn::invoke:
Function: oci:Kms:getDecryptedData
Arguments:
ciphertext: ${var.decrypted_data_ciphertext}
cryptoEndpoint: ${var.decrypted_data_crypto_endpoint}
keyId: ${oci_kms_key.test_key.id}
associatedData: ${var.decrypted_data_associated_data}
Using getDecryptedData
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 getDecryptedData(args: GetDecryptedDataArgs, opts?: InvokeOptions): Promise<GetDecryptedDataResult>
function getDecryptedDataOutput(args: GetDecryptedDataOutputArgs, opts?: InvokeOptions): Output<GetDecryptedDataResult>
def get_decrypted_data(associated_data: Optional[Mapping[str, Any]] = None,
ciphertext: Optional[str] = None,
crypto_endpoint: Optional[str] = None,
key_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDecryptedDataResult
def get_decrypted_data_output(associated_data: Optional[pulumi.Input[Mapping[str, Any]]] = None,
ciphertext: Optional[pulumi.Input[str]] = None,
crypto_endpoint: Optional[pulumi.Input[str]] = None,
key_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDecryptedDataResult]
func GetDecryptedData(ctx *Context, args *GetDecryptedDataArgs, opts ...InvokeOption) (*GetDecryptedDataResult, error)
func GetDecryptedDataOutput(ctx *Context, args *GetDecryptedDataOutputArgs, opts ...InvokeOption) GetDecryptedDataResultOutput
> Note: This function is named GetDecryptedData
in the Go SDK.
public static class GetDecryptedData
{
public static Task<GetDecryptedDataResult> InvokeAsync(GetDecryptedDataArgs args, InvokeOptions? opts = null)
public static Output<GetDecryptedDataResult> Invoke(GetDecryptedDataInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDecryptedDataResult> getDecryptedData(GetDecryptedDataArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Kms/getDecryptedData:getDecryptedData
arguments:
# arguments dictionary
The following arguments are supported:
- Ciphertext string
The encrypted data to decrypt.
- Crypto
Endpoint string The service endpoint to perform cryptographic operations against. Cryptographic operations include 'Encrypt,' 'Decrypt,' and 'GenerateDataEncryptionKey' operations. see Vault Crypto endpoint.
- Key
Id string The OCID of the key used to encrypt the ciphertext.
- Associated
Data Dictionary<string, object> Information that can be used to provide an encryption context for the encrypted data. The length of the string representation of the associatedData must be fewer than 4096 characters.
- Ciphertext string
The encrypted data to decrypt.
- Crypto
Endpoint string The service endpoint to perform cryptographic operations against. Cryptographic operations include 'Encrypt,' 'Decrypt,' and 'GenerateDataEncryptionKey' operations. see Vault Crypto endpoint.
- Key
Id string The OCID of the key used to encrypt the ciphertext.
- Associated
Data map[string]interface{} Information that can be used to provide an encryption context for the encrypted data. The length of the string representation of the associatedData must be fewer than 4096 characters.
- ciphertext String
The encrypted data to decrypt.
- crypto
Endpoint String The service endpoint to perform cryptographic operations against. Cryptographic operations include 'Encrypt,' 'Decrypt,' and 'GenerateDataEncryptionKey' operations. see Vault Crypto endpoint.
- key
Id String The OCID of the key used to encrypt the ciphertext.
- associated
Data Map<String,Object> Information that can be used to provide an encryption context for the encrypted data. The length of the string representation of the associatedData must be fewer than 4096 characters.
- ciphertext string
The encrypted data to decrypt.
- crypto
Endpoint string The service endpoint to perform cryptographic operations against. Cryptographic operations include 'Encrypt,' 'Decrypt,' and 'GenerateDataEncryptionKey' operations. see Vault Crypto endpoint.
- key
Id string The OCID of the key used to encrypt the ciphertext.
- associated
Data {[key: string]: any} Information that can be used to provide an encryption context for the encrypted data. The length of the string representation of the associatedData must be fewer than 4096 characters.
- ciphertext str
The encrypted data to decrypt.
- crypto_
endpoint str The service endpoint to perform cryptographic operations against. Cryptographic operations include 'Encrypt,' 'Decrypt,' and 'GenerateDataEncryptionKey' operations. see Vault Crypto endpoint.
- key_
id str The OCID of the key used to encrypt the ciphertext.
- associated_
data Mapping[str, Any] Information that can be used to provide an encryption context for the encrypted data. The length of the string representation of the associatedData must be fewer than 4096 characters.
- ciphertext String
The encrypted data to decrypt.
- crypto
Endpoint String The service endpoint to perform cryptographic operations against. Cryptographic operations include 'Encrypt,' 'Decrypt,' and 'GenerateDataEncryptionKey' operations. see Vault Crypto endpoint.
- key
Id String The OCID of the key used to encrypt the ciphertext.
- associated
Data Map<Any> Information that can be used to provide an encryption context for the encrypted data. The length of the string representation of the associatedData must be fewer than 4096 characters.
getDecryptedData Result
The following output properties are available:
- Ciphertext string
- Crypto
Endpoint string - Id string
The provider-assigned unique ID for this managed resource.
- Key
Id string - Plaintext string
The decrypted data, in the form of a base64-encoded value.
- Plaintext
Checksum string Checksum of the decrypted data.
- Associated
Data Dictionary<string, object>
- Ciphertext string
- Crypto
Endpoint string - Id string
The provider-assigned unique ID for this managed resource.
- Key
Id string - Plaintext string
The decrypted data, in the form of a base64-encoded value.
- Plaintext
Checksum string Checksum of the decrypted data.
- Associated
Data map[string]interface{}
- ciphertext String
- crypto
Endpoint String - id String
The provider-assigned unique ID for this managed resource.
- key
Id String - plaintext String
The decrypted data, in the form of a base64-encoded value.
- plaintext
Checksum String Checksum of the decrypted data.
- associated
Data Map<String,Object>
- ciphertext string
- crypto
Endpoint string - id string
The provider-assigned unique ID for this managed resource.
- key
Id string - plaintext string
The decrypted data, in the form of a base64-encoded value.
- plaintext
Checksum string Checksum of the decrypted data.
- associated
Data {[key: string]: any}
- ciphertext str
- crypto_
endpoint str - id str
The provider-assigned unique ID for this managed resource.
- key_
id str - plaintext str
The decrypted data, in the form of a base64-encoded value.
- plaintext_
checksum str Checksum of the decrypted data.
- associated_
data Mapping[str, Any]
- ciphertext String
- crypto
Endpoint String - id String
The provider-assigned unique ID for this managed resource.
- key
Id String - plaintext String
The decrypted data, in the form of a base64-encoded value.
- plaintext
Checksum String Checksum of the decrypted data.
- associated
Data Map<Any>
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.