Volcengine v0.0.46 published on Friday, Feb 27, 2026 by Volcengine
Volcengine v0.0.46 published on Friday, Feb 27, 2026 by Volcengine
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 getAsymmetricPlaintexts
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 getAsymmetricPlaintexts(args: GetAsymmetricPlaintextsArgs, opts?: InvokeOptions): Promise<GetAsymmetricPlaintextsResult>
function getAsymmetricPlaintextsOutput(args: GetAsymmetricPlaintextsOutputArgs, opts?: InvokeOptions): Output<GetAsymmetricPlaintextsResult>def get_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) -> GetAsymmetricPlaintextsResult
def get_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[GetAsymmetricPlaintextsResult]func GetAsymmetricPlaintexts(ctx *Context, args *GetAsymmetricPlaintextsArgs, opts ...InvokeOption) (*GetAsymmetricPlaintextsResult, error)
func GetAsymmetricPlaintextsOutput(ctx *Context, args *GetAsymmetricPlaintextsOutputArgs, opts ...InvokeOption) GetAsymmetricPlaintextsResultOutput> Note: This function is named GetAsymmetricPlaintexts in the Go SDK.
public static class GetAsymmetricPlaintexts
{
public static Task<GetAsymmetricPlaintextsResult> InvokeAsync(GetAsymmetricPlaintextsArgs args, InvokeOptions? opts = null)
public static Output<GetAsymmetricPlaintextsResult> Invoke(GetAsymmetricPlaintextsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetAsymmetricPlaintextsResult> getAsymmetricPlaintexts(GetAsymmetricPlaintextsArgs args, InvokeOptions options)
public static Output<GetAsymmetricPlaintextsResult> getAsymmetricPlaintexts(GetAsymmetricPlaintextsArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:kms/getAsymmetricPlaintexts:getAsymmetricPlaintexts
arguments:
# arguments dictionaryThe following arguments are supported:
- Algorithm string
- The encryption algorithm. valid values:
RSAES_OAEP_SHA_256,SM2PKE. - Ciphertext
Blob string - The ciphertext to be decrypted, Base64 encoded.
- Key
Id string - The id of the key. When key_id is not specified, both keyring_name and key_name must be specified.
- Key
Name string - The name of the key.
- Keyring
Name string - The name of the keyring.
- Output
File string - File name where to save data source results.
- Algorithm string
- The encryption algorithm. valid values:
RSAES_OAEP_SHA_256,SM2PKE. - Ciphertext
Blob string - The ciphertext to be decrypted, Base64 encoded.
- Key
Id string - The id of the key. When key_id is not specified, both keyring_name and key_name must be specified.
- Key
Name string - The name of the key.
- Keyring
Name string - The name of the keyring.
- Output
File string - File name where to save data source results.
- algorithm String
- The encryption algorithm. valid values:
RSAES_OAEP_SHA_256,SM2PKE. - ciphertext
Blob String - The ciphertext to be decrypted, Base64 encoded.
- key
Id String - The id of the key. When key_id is not specified, both keyring_name and key_name must be specified.
- key
Name String - The name of the key.
- keyring
Name String - The name of the keyring.
- output
File String - File name where to save data source results.
- algorithm string
- The encryption algorithm. valid values:
RSAES_OAEP_SHA_256,SM2PKE. - ciphertext
Blob string - The ciphertext to be decrypted, Base64 encoded.
- key
Id string - The id of the key. When key_id is not specified, both keyring_name and key_name must be specified.
- key
Name string - The name of the key.
- keyring
Name string - The name of the keyring.
- output
File 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. - ciphertext
Blob String - The ciphertext to be decrypted, Base64 encoded.
- key
Id String - The id of the key. When key_id is not specified, both keyring_name and key_name must be specified.
- key
Name String - The name of the key.
- keyring
Name String - The name of the keyring.
- output
File String - File name where to save data source results.
getAsymmetricPlaintexts Result
The following output properties are available:
- Algorithm string
- Ciphertext
Blob string - Id string
- The provider-assigned unique ID for this managed resource.
- Plaintext
Infos List<GetAsymmetric Plaintexts Plaintext Info> - The decrypted plaintext.
- Total
Count int - The total count of query.
- Key
Id string - Key
Name string - Keyring
Name string - Output
File string
- Algorithm string
- Ciphertext
Blob string - Id string
- The provider-assigned unique ID for this managed resource.
- Plaintext
Infos []GetAsymmetric Plaintexts Plaintext Info - The decrypted plaintext.
- Total
Count int - The total count of query.
- Key
Id string - Key
Name string - Keyring
Name string - Output
File string
- algorithm String
- ciphertext
Blob String - id String
- The provider-assigned unique ID for this managed resource.
- plaintext
Infos List<GetAsymmetric Plaintexts Plaintext Info> - The decrypted plaintext.
- total
Count Integer - The total count of query.
- key
Id String - key
Name String - keyring
Name String - output
File String
- algorithm string
- ciphertext
Blob string - id string
- The provider-assigned unique ID for this managed resource.
- plaintext
Infos GetAsymmetric Plaintexts Plaintext Info[] - The decrypted plaintext.
- total
Count number - The total count of query.
- key
Id string - key
Name string - keyring
Name string - output
File string
- algorithm str
- ciphertext_
blob str - id str
- The provider-assigned unique ID for this managed resource.
- plaintext_
infos Sequence[GetAsymmetric Plaintexts Plaintext Info] - 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
- ciphertext
Blob String - id String
- The provider-assigned unique ID for this managed resource.
- plaintext
Infos List<Property Map> - The decrypted plaintext.
- total
Count Number - The total count of query.
- key
Id String - key
Name String - keyring
Name String - output
File String
Supporting Types
GetAsymmetricPlaintextsPlaintextInfo
- 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
volcengineTerraform Provider.
Volcengine v0.0.46 published on Friday, Feb 27, 2026 by Volcengine
