Volcengine v0.0.46 published on Friday, Feb 27, 2026 by Volcengine
Volcengine v0.0.46 published on Friday, Feb 27, 2026 by Volcengine
Deprecated: volcengine.kms.Plaintexts has been deprecated in favor of volcengine.kms.getPlaintexts
Use this data source to query detailed information of kms 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.Ciphertext("encryptStable", {
keyId: "c44870c3-f33b-421a-****-a2bba37c993e",
plaintext: "VGhpcyBpcyBhIHBsYWludGV4dCBleGFtcGxlLg==",
});
const decrypt = volcengine.kms.getPlaintextsOutput({
ciphertextBlob: encryptStable.ciphertextBlob,
});
import pulumi
import pulumi_volcengine as volcengine
encrypt_stable = volcengine.kms.Ciphertext("encryptStable",
key_id="c44870c3-f33b-421a-****-a2bba37c993e",
plaintext="VGhpcyBpcyBhIHBsYWludGV4dCBleGFtcGxlLg==")
decrypt = volcengine.kms.get_plaintexts_output(ciphertext_blob=encrypt_stable.ciphertext_blob)
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.NewCiphertext(ctx, "encryptStable", &kms.CiphertextArgs{
KeyId: pulumi.String("c44870c3-f33b-421a-****-a2bba37c993e"),
Plaintext: pulumi.String("VGhpcyBpcyBhIHBsYWludGV4dCBleGFtcGxlLg=="),
})
if err != nil {
return err
}
_ = kms.GetPlaintextsOutput(ctx, kms.GetPlaintextsOutputArgs{
CiphertextBlob: encryptStable.CiphertextBlob,
}, nil)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var encryptStable = new Volcengine.Kms.Ciphertext("encryptStable", new()
{
KeyId = "c44870c3-f33b-421a-****-a2bba37c993e",
Plaintext = "VGhpcyBpcyBhIHBsYWludGV4dCBleGFtcGxlLg==",
});
var decrypt = Volcengine.Kms.GetPlaintexts.Invoke(new()
{
CiphertextBlob = encryptStable.CiphertextBlob,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.kms.Ciphertext;
import com.pulumi.volcengine.kms.CiphertextArgs;
import com.pulumi.volcengine.kms.KmsFunctions;
import com.pulumi.volcengine.kms.inputs.GetPlaintextsArgs;
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 Ciphertext("encryptStable", CiphertextArgs.builder()
.keyId("c44870c3-f33b-421a-****-a2bba37c993e")
.plaintext("VGhpcyBpcyBhIHBsYWludGV4dCBleGFtcGxlLg==")
.build());
final var decrypt = KmsFunctions.getPlaintexts(GetPlaintextsArgs.builder()
.ciphertextBlob(encryptStable.ciphertextBlob())
.build());
}
}
resources:
encryptStable:
type: volcengine:kms:Ciphertext
properties:
keyId: c44870c3-f33b-421a-****-a2bba37c993e
plaintext: VGhpcyBpcyBhIHBsYWludGV4dCBleGFtcGxlLg==
variables:
decrypt:
fn::invoke:
Function: volcengine:kms:getPlaintexts
Arguments:
ciphertextBlob: ${encryptStable.ciphertextBlob}
Using Plaintexts
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 plaintexts(args: PlaintextsArgs, opts?: InvokeOptions): Promise<PlaintextsResult>
function plaintextsOutput(args: PlaintextsOutputArgs, opts?: InvokeOptions): Output<PlaintextsResult>def plaintexts(ciphertext_blob: Optional[str] = None,
encryption_context: Optional[str] = None,
output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> PlaintextsResult
def plaintexts_output(ciphertext_blob: Optional[pulumi.Input[str]] = None,
encryption_context: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[PlaintextsResult]func Plaintexts(ctx *Context, args *PlaintextsArgs, opts ...InvokeOption) (*PlaintextsResult, error)
func PlaintextsOutput(ctx *Context, args *PlaintextsOutputArgs, opts ...InvokeOption) PlaintextsResultOutputpublic static class Plaintexts
{
public static Task<PlaintextsResult> InvokeAsync(PlaintextsArgs args, InvokeOptions? opts = null)
public static Output<PlaintextsResult> Invoke(PlaintextsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<PlaintextsResult> plaintexts(PlaintextsArgs args, InvokeOptions options)
public static Output<PlaintextsResult> plaintexts(PlaintextsArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:kms:Plaintexts
arguments:
# arguments dictionaryThe following arguments are supported:
- Ciphertext
Blob string - The ciphertext to be decrypted.
- Encryption
Context string - The JSON string of key/value pairs.
- Output
File string - File name where to save data source results.
- Ciphertext
Blob string - The ciphertext to be decrypted.
- Encryption
Context string - The JSON string of key/value pairs.
- Output
File string - File name where to save data source results.
- ciphertext
Blob String - The ciphertext to be decrypted.
- encryption
Context String - The JSON string of key/value pairs.
- output
File String - File name where to save data source results.
- ciphertext
Blob string - The ciphertext to be decrypted.
- encryption
Context string - The JSON string of key/value pairs.
- output
File string - File name where to save data source results.
- ciphertext_
blob str - The ciphertext to be decrypted.
- encryption_
context str - The JSON string of key/value pairs.
- output_
file str - File name where to save data source results.
- ciphertext
Blob String - The ciphertext to be decrypted.
- encryption
Context String - The JSON string of key/value pairs.
- output
File String - File name where to save data source results.
Plaintexts Result
The following output properties are available:
- Ciphertext
Blob string - Id string
- The provider-assigned unique ID for this managed resource.
- Plaintext
Infos List<PlaintextsPlaintext Info> - The decrypted plaintext.
- Total
Count int - The total count of query.
- Encryption
Context string - Output
File string
- Ciphertext
Blob string - Id string
- The provider-assigned unique ID for this managed resource.
- Plaintext
Infos []PlaintextsPlaintext Info - The decrypted plaintext.
- Total
Count int - The total count of query.
- Encryption
Context string - Output
File string
- ciphertext
Blob String - id String
- The provider-assigned unique ID for this managed resource.
- plaintext
Infos List<PlaintextsPlaintext Info> - The decrypted plaintext.
- total
Count Integer - The total count of query.
- encryption
Context String - output
File String
- ciphertext
Blob string - id string
- The provider-assigned unique ID for this managed resource.
- plaintext
Infos PlaintextsPlaintext Info[] - The decrypted plaintext.
- total
Count number - The total count of query.
- encryption
Context string - output
File string
- ciphertext_
blob str - id str
- The provider-assigned unique ID for this managed resource.
- plaintext_
infos Sequence[PlaintextsPlaintext Info] - The decrypted plaintext.
- total_
count int - The total count of query.
- encryption_
context str - output_
file str
- 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.
- encryption
Context String - output
File String
Supporting Types
PlaintextsPlaintextInfo
- 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
