1. Packages
  2. Volcengine
  3. API Docs
  4. kms
  5. AsymmetricPlaintexts
Volcengine v0.0.46 published on Friday, Feb 27, 2026 by Volcengine
volcengine logo
Volcengine v0.0.46 published on Friday, Feb 27, 2026 by Volcengine
    Deprecated: volcengine.kms.AsymmetricPlaintexts has been deprecated in favor of volcengine.kms.getAsymmetricPlaintexts

    Use this data source to query detailed information of kms asymmetric plaintexts

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    import * as volcengine from "@volcengine/pulumi";
    
    const encryptStable = new volcengine.kms.AsymmetricCiphertext("encryptStable", {
        keyId: "9601e1af-ad69-42df-****-eaf10ce6a3e9",
        plaintext: "VGhpcyBpcyBhIHBsYWludGV4dCBleGFtcGxLg==",
        algorithm: "RSAES_OAEP_SHA_256",
    });
    const decrypt = pulumi.all([encryptStable.keyId, encryptStable.ciphertextBlob]).apply(([keyId, ciphertextBlob]) => volcengine.kms.getAsymmetricPlaintextsOutput({
        keyId: keyId,
        ciphertextBlob: ciphertextBlob,
        algorithm: "RSAES_OAEP_SHA_256",
    }));
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    encrypt_stable = volcengine.kms.AsymmetricCiphertext("encryptStable",
        key_id="9601e1af-ad69-42df-****-eaf10ce6a3e9",
        plaintext="VGhpcyBpcyBhIHBsYWludGV4dCBleGFtcGxLg==",
        algorithm="RSAES_OAEP_SHA_256")
    decrypt = pulumi.Output.all(encrypt_stable.key_id, encrypt_stable.ciphertext_blob).apply(lambda key_id, ciphertext_blob: volcengine.kms.get_asymmetric_plaintexts_output(key_id=key_id,
        ciphertext_blob=ciphertext_blob,
        algorithm="RSAES_OAEP_SHA_256"))
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/kms"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		encryptStable, err := kms.NewAsymmetricCiphertext(ctx, "encryptStable", &kms.AsymmetricCiphertextArgs{
    			KeyId:     pulumi.String("9601e1af-ad69-42df-****-eaf10ce6a3e9"),
    			Plaintext: pulumi.String("VGhpcyBpcyBhIHBsYWludGV4dCBleGFtcGxLg=="),
    			Algorithm: pulumi.String("RSAES_OAEP_SHA_256"),
    		})
    		if err != nil {
    			return err
    		}
    		_ = pulumi.All(encryptStable.KeyId, encryptStable.CiphertextBlob).ApplyT(func(_args []interface{}) (kms.GetAsymmetricPlaintextsResult, error) {
    			keyId := _args[0].(*string)
    			ciphertextBlob := _args[1].(string)
    			return kms.GetAsymmetricPlaintextsOutput(ctx, kms.GetAsymmetricPlaintextsOutputArgs{
    				KeyId:          keyId,
    				CiphertextBlob: ciphertextBlob,
    				Algorithm:      "RSAES_OAEP_SHA_256",
    			}, nil), nil
    		}).(kms.GetAsymmetricPlaintextsResultOutput)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var encryptStable = new Volcengine.Kms.AsymmetricCiphertext("encryptStable", new()
        {
            KeyId = "9601e1af-ad69-42df-****-eaf10ce6a3e9",
            Plaintext = "VGhpcyBpcyBhIHBsYWludGV4dCBleGFtcGxLg==",
            Algorithm = "RSAES_OAEP_SHA_256",
        });
    
        var decrypt = Volcengine.Kms.GetAsymmetricPlaintexts.Invoke(new()
        {
            KeyId = encryptStable.KeyId,
            CiphertextBlob = encryptStable.CiphertextBlob,
            Algorithm = "RSAES_OAEP_SHA_256",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.volcengine.kms.AsymmetricCiphertext;
    import com.pulumi.volcengine.kms.AsymmetricCiphertextArgs;
    import com.pulumi.volcengine.kms.KmsFunctions;
    import com.pulumi.volcengine.kms.inputs.GetAsymmetricPlaintextsArgs;
    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) {
            var encryptStable = new AsymmetricCiphertext("encryptStable", AsymmetricCiphertextArgs.builder()        
                .keyId("9601e1af-ad69-42df-****-eaf10ce6a3e9")
                .plaintext("VGhpcyBpcyBhIHBsYWludGV4dCBleGFtcGxLg==")
                .algorithm("RSAES_OAEP_SHA_256")
                .build());
    
            final var decrypt = KmsFunctions.getAsymmetricPlaintexts(GetAsymmetricPlaintextsArgs.builder()
                .keyId(encryptStable.keyId())
                .ciphertextBlob(encryptStable.ciphertextBlob())
                .algorithm("RSAES_OAEP_SHA_256")
                .build());
    
        }
    }
    
    resources:
      encryptStable:
        type: volcengine:kms:AsymmetricCiphertext
        properties:
          keyId: 9601e1af-ad69-42df-****-eaf10ce6a3e9
          plaintext: VGhpcyBpcyBhIHBsYWludGV4dCBleGFtcGxLg==
          algorithm: RSAES_OAEP_SHA_256
    variables:
      decrypt:
        fn::invoke:
          Function: volcengine:kms:getAsymmetricPlaintexts
          Arguments:
            keyId: ${encryptStable.keyId}
            ciphertextBlob: ${encryptStable.ciphertextBlob}
            algorithm: RSAES_OAEP_SHA_256
    

    Using AsymmetricPlaintexts

    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 asymmetricPlaintexts(args: AsymmetricPlaintextsArgs, opts?: InvokeOptions): Promise<AsymmetricPlaintextsResult>
    function asymmetricPlaintextsOutput(args: AsymmetricPlaintextsOutputArgs, opts?: InvokeOptions): Output<AsymmetricPlaintextsResult>
    def asymmetric_plaintexts(algorithm: Optional[str] = None,
                              ciphertext_blob: Optional[str] = None,
                              key_id: Optional[str] = None,
                              key_name: Optional[str] = None,
                              keyring_name: Optional[str] = None,
                              output_file: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> AsymmetricPlaintextsResult
    def asymmetric_plaintexts_output(algorithm: Optional[pulumi.Input[str]] = None,
                              ciphertext_blob: Optional[pulumi.Input[str]] = None,
                              key_id: Optional[pulumi.Input[str]] = None,
                              key_name: Optional[pulumi.Input[str]] = None,
                              keyring_name: Optional[pulumi.Input[str]] = None,
                              output_file: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[AsymmetricPlaintextsResult]
    func AsymmetricPlaintexts(ctx *Context, args *AsymmetricPlaintextsArgs, opts ...InvokeOption) (*AsymmetricPlaintextsResult, error)
    func AsymmetricPlaintextsOutput(ctx *Context, args *AsymmetricPlaintextsOutputArgs, opts ...InvokeOption) AsymmetricPlaintextsResultOutput
    public static class AsymmetricPlaintexts 
    {
        public static Task<AsymmetricPlaintextsResult> InvokeAsync(AsymmetricPlaintextsArgs args, InvokeOptions? opts = null)
        public static Output<AsymmetricPlaintextsResult> Invoke(AsymmetricPlaintextsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<AsymmetricPlaintextsResult> asymmetricPlaintexts(AsymmetricPlaintextsArgs args, InvokeOptions options)
    public static Output<AsymmetricPlaintextsResult> asymmetricPlaintexts(AsymmetricPlaintextsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: volcengine:kms:AsymmetricPlaintexts
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Algorithm string
    The encryption algorithm. valid values: RSAES_OAEP_SHA_256, SM2PKE.
    CiphertextBlob string
    The ciphertext to be decrypted, Base64 encoded.
    KeyId string
    The id of the key. When key_id is not specified, both keyring_name and key_name must be specified.
    KeyName string
    The name of the key.
    KeyringName string
    The name of the keyring.
    OutputFile string
    File name where to save data source results.
    Algorithm string
    The encryption algorithm. valid values: RSAES_OAEP_SHA_256, SM2PKE.
    CiphertextBlob string
    The ciphertext to be decrypted, Base64 encoded.
    KeyId string
    The id of the key. When key_id is not specified, both keyring_name and key_name must be specified.
    KeyName string
    The name of the key.
    KeyringName string
    The name of the keyring.
    OutputFile string
    File name where to save data source results.
    algorithm String
    The encryption algorithm. valid values: RSAES_OAEP_SHA_256, SM2PKE.
    ciphertextBlob String
    The ciphertext to be decrypted, Base64 encoded.
    keyId String
    The id of the key. When key_id is not specified, both keyring_name and key_name must be specified.
    keyName String
    The name of the key.
    keyringName String
    The name of the keyring.
    outputFile String
    File name where to save data source results.
    algorithm string
    The encryption algorithm. valid values: RSAES_OAEP_SHA_256, SM2PKE.
    ciphertextBlob string
    The ciphertext to be decrypted, Base64 encoded.
    keyId string
    The id of the key. When key_id is not specified, both keyring_name and key_name must be specified.
    keyName string
    The name of the key.
    keyringName string
    The name of the keyring.
    outputFile string
    File name where to save data source results.
    algorithm str
    The encryption algorithm. valid values: RSAES_OAEP_SHA_256, SM2PKE.
    ciphertext_blob str
    The ciphertext to be decrypted, Base64 encoded.
    key_id str
    The id of the key. When key_id is not specified, both keyring_name and key_name must be specified.
    key_name str
    The name of the key.
    keyring_name str
    The name of the keyring.
    output_file str
    File name where to save data source results.
    algorithm String
    The encryption algorithm. valid values: RSAES_OAEP_SHA_256, SM2PKE.
    ciphertextBlob String
    The ciphertext to be decrypted, Base64 encoded.
    keyId String
    The id of the key. When key_id is not specified, both keyring_name and key_name must be specified.
    keyName String
    The name of the key.
    keyringName String
    The name of the keyring.
    outputFile String
    File name where to save data source results.

    AsymmetricPlaintexts Result

    The following output properties are available:

    Algorithm string
    CiphertextBlob string
    Id string
    The provider-assigned unique ID for this managed resource.
    PlaintextInfos List<AsymmetricPlaintextsPlaintextInfo>
    The decrypted plaintext.
    TotalCount int
    The total count of query.
    KeyId string
    KeyName string
    KeyringName string
    OutputFile string
    Algorithm string
    CiphertextBlob string
    Id string
    The provider-assigned unique ID for this managed resource.
    PlaintextInfos []AsymmetricPlaintextsPlaintextInfo
    The decrypted plaintext.
    TotalCount int
    The total count of query.
    KeyId string
    KeyName string
    KeyringName string
    OutputFile string
    algorithm String
    ciphertextBlob String
    id String
    The provider-assigned unique ID for this managed resource.
    plaintextInfos List<AsymmetricPlaintextsPlaintextInfo>
    The decrypted plaintext.
    totalCount Integer
    The total count of query.
    keyId String
    keyName String
    keyringName String
    outputFile String
    algorithm string
    ciphertextBlob string
    id string
    The provider-assigned unique ID for this managed resource.
    plaintextInfos AsymmetricPlaintextsPlaintextInfo[]
    The decrypted plaintext.
    totalCount number
    The total count of query.
    keyId string
    keyName string
    keyringName string
    outputFile string
    algorithm str
    ciphertext_blob str
    id str
    The provider-assigned unique ID for this managed resource.
    plaintext_infos Sequence[AsymmetricPlaintextsPlaintextInfo]
    The decrypted plaintext.
    total_count int
    The total count of query.
    key_id str
    key_name str
    keyring_name str
    output_file str
    algorithm String
    ciphertextBlob String
    id String
    The provider-assigned unique ID for this managed resource.
    plaintextInfos List<Property Map>
    The decrypted plaintext.
    totalCount Number
    The total count of query.
    keyId String
    keyName String
    keyringName String
    outputFile String

    Supporting Types

    AsymmetricPlaintextsPlaintextInfo

    Plaintext string
    The decrypted plaintext, Base64 encoded.
    Plaintext string
    The decrypted plaintext, Base64 encoded.
    plaintext String
    The decrypted plaintext, Base64 encoded.
    plaintext string
    The decrypted plaintext, Base64 encoded.
    plaintext str
    The decrypted plaintext, Base64 encoded.
    plaintext String
    The decrypted plaintext, Base64 encoded.

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.46 published on Friday, Feb 27, 2026 by Volcengine
      Meet Neo: Your AI Platform Teammate