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.Ciphertexts has been deprecated in favor of volcengine.kms.getCiphertexts
Use this data source to query detailed information of kms ciphertexts
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const encrypted = volcengine.kms.getCiphertexts({
keyId: "c44870c3-f33b-421a-****-a2bba37c993e",
plaintext: "VGhpcyBpcyBhIHBsYWludGV4dCBleGFtcGxlLg==",
});
import pulumi
import pulumi_volcengine as volcengine
encrypted = volcengine.kms.get_ciphertexts(key_id="c44870c3-f33b-421a-****-a2bba37c993e",
plaintext="VGhpcyBpcyBhIHBsYWludGV4dCBleGFtcGxlLg==")
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 {
_, err := kms.GetCiphertexts(ctx, &kms.GetCiphertextsArgs{
KeyId: pulumi.StringRef("c44870c3-f33b-421a-****-a2bba37c993e"),
Plaintext: "VGhpcyBpcyBhIHBsYWludGV4dCBleGFtcGxlLg==",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var encrypted = Volcengine.Kms.GetCiphertexts.Invoke(new()
{
KeyId = "c44870c3-f33b-421a-****-a2bba37c993e",
Plaintext = "VGhpcyBpcyBhIHBsYWludGV4dCBleGFtcGxlLg==",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.kms.KmsFunctions;
import com.pulumi.volcengine.kms.inputs.GetCiphertextsArgs;
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 encrypted = KmsFunctions.getCiphertexts(GetCiphertextsArgs.builder()
.keyId("c44870c3-f33b-421a-****-a2bba37c993e")
.plaintext("VGhpcyBpcyBhIHBsYWludGV4dCBleGFtcGxlLg==")
.build());
}
}
variables:
encrypted:
fn::invoke:
Function: volcengine:kms:getCiphertexts
Arguments:
keyId: c44870c3-f33b-421a-****-a2bba37c993e
plaintext: VGhpcyBpcyBhIHBsYWludGV4dCBleGFtcGxlLg==
Using Ciphertexts
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 ciphertexts(args: CiphertextsArgs, opts?: InvokeOptions): Promise<CiphertextsResult>
function ciphertextsOutput(args: CiphertextsOutputArgs, opts?: InvokeOptions): Output<CiphertextsResult>def ciphertexts(encryption_context: Optional[str] = None,
key_id: Optional[str] = None,
key_name: Optional[str] = None,
keyring_name: Optional[str] = None,
output_file: Optional[str] = None,
plaintext: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> CiphertextsResult
def ciphertexts_output(encryption_context: 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,
plaintext: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[CiphertextsResult]func Ciphertexts(ctx *Context, args *CiphertextsArgs, opts ...InvokeOption) (*CiphertextsResult, error)
func CiphertextsOutput(ctx *Context, args *CiphertextsOutputArgs, opts ...InvokeOption) CiphertextsResultOutputpublic static class Ciphertexts
{
public static Task<CiphertextsResult> InvokeAsync(CiphertextsArgs args, InvokeOptions? opts = null)
public static Output<CiphertextsResult> Invoke(CiphertextsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<CiphertextsResult> ciphertexts(CiphertextsArgs args, InvokeOptions options)
public static Output<CiphertextsResult> ciphertexts(CiphertextsArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:kms:Ciphertexts
arguments:
# arguments dictionaryThe following arguments are supported:
- Plaintext string
- The plaintext to be encrypted, Base64 encoded.
- Encryption
Context string - The JSON string of key/value pairs.
- 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.
- Plaintext string
- The plaintext to be encrypted, Base64 encoded.
- Encryption
Context string - The JSON string of key/value pairs.
- 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.
- plaintext String
- The plaintext to be encrypted, Base64 encoded.
- encryption
Context String - The JSON string of key/value pairs.
- 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.
- plaintext string
- The plaintext to be encrypted, Base64 encoded.
- encryption
Context string - The JSON string of key/value pairs.
- 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.
- plaintext str
- The plaintext to be encrypted, Base64 encoded.
- encryption_
context str - The JSON string of key/value pairs.
- 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.
- plaintext String
- The plaintext to be encrypted, Base64 encoded.
- encryption
Context String - The JSON string of key/value pairs.
- 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.
Ciphertexts Result
The following output properties are available:
- Ciphertext
Infos List<CiphertextsCiphertext Info> - The information about the ciphertext.
- Id string
- The provider-assigned unique ID for this managed resource.
- Plaintext string
- Total
Count int - The total count of query.
- Encryption
Context string - Key
Id string - Key
Name string - Keyring
Name string - Output
File string
- Ciphertext
Infos []CiphertextsCiphertext Info - The information about the ciphertext.
- Id string
- The provider-assigned unique ID for this managed resource.
- Plaintext string
- Total
Count int - The total count of query.
- Encryption
Context string - Key
Id string - Key
Name string - Keyring
Name string - Output
File string
- ciphertext
Infos List<CiphertextsCiphertext Info> - The information about the ciphertext.
- id String
- The provider-assigned unique ID for this managed resource.
- plaintext String
- total
Count Integer - The total count of query.
- encryption
Context String - key
Id String - key
Name String - keyring
Name String - output
File String
- ciphertext
Infos CiphertextsCiphertext Info[] - The information about the ciphertext.
- id string
- The provider-assigned unique ID for this managed resource.
- plaintext string
- total
Count number - The total count of query.
- encryption
Context string - key
Id string - key
Name string - keyring
Name string - output
File string
- ciphertext_
infos Sequence[CiphertextsCiphertext Info] - The information about the ciphertext.
- id str
- The provider-assigned unique ID for this managed resource.
- plaintext str
- total_
count int - The total count of query.
- encryption_
context str - key_
id str - key_
name str - keyring_
name str - output_
file str
- ciphertext
Infos List<Property Map> - The information about the ciphertext.
- id String
- The provider-assigned unique ID for this managed resource.
- plaintext String
- total
Count Number - The total count of query.
- encryption
Context String - key
Id String - key
Name String - keyring
Name String - output
File String
Supporting Types
CiphertextsCiphertextInfo
- Ciphertext
Blob string - The ciphertext, Base64 encoded. The plaintext gets re-encrypted on each apply, resulting in a changed ciphertext_blob. If a stable ciphertext is needed use the
volcengine.kms.Ciphertextresource.
- Ciphertext
Blob string - The ciphertext, Base64 encoded. The plaintext gets re-encrypted on each apply, resulting in a changed ciphertext_blob. If a stable ciphertext is needed use the
volcengine.kms.Ciphertextresource.
- ciphertext
Blob String - The ciphertext, Base64 encoded. The plaintext gets re-encrypted on each apply, resulting in a changed ciphertext_blob. If a stable ciphertext is needed use the
volcengine.kms.Ciphertextresource.
- ciphertext
Blob string - The ciphertext, Base64 encoded. The plaintext gets re-encrypted on each apply, resulting in a changed ciphertext_blob. If a stable ciphertext is needed use the
volcengine.kms.Ciphertextresource.
- ciphertext_
blob str - The ciphertext, Base64 encoded. The plaintext gets re-encrypted on each apply, resulting in a changed ciphertext_blob. If a stable ciphertext is needed use the
volcengine.kms.Ciphertextresource.
- ciphertext
Blob String - The ciphertext, Base64 encoded. The plaintext gets re-encrypted on each apply, resulting in a changed ciphertext_blob. If a stable ciphertext is needed use the
volcengine.kms.Ciphertextresource.
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
