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.SecretVersions has been deprecated in favor of volcengine.kms.getSecretVersions
Use this data source to query detailed information of kms secret versions
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const default = volcengine.kms.getSecretVersions({
secretName: "secret-9527",
});
import pulumi
import pulumi_volcengine as volcengine
default = volcengine.kms.get_secret_versions(secret_name="secret-9527")
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.GetSecretVersions(ctx, &kms.GetSecretVersionsArgs{
SecretName: "secret-9527",
}, 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 @default = Volcengine.Kms.GetSecretVersions.Invoke(new()
{
SecretName = "secret-9527",
});
});
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.GetSecretVersionsArgs;
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 default = KmsFunctions.getSecretVersions(GetSecretVersionsArgs.builder()
.secretName("secret-9527")
.build());
}
}
variables:
default:
fn::invoke:
Function: volcengine:kms:getSecretVersions
Arguments:
secretName: secret-9527
Using SecretVersions
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 secretVersions(args: SecretVersionsArgs, opts?: InvokeOptions): Promise<SecretVersionsResult>
function secretVersionsOutput(args: SecretVersionsOutputArgs, opts?: InvokeOptions): Output<SecretVersionsResult>def secret_versions(output_file: Optional[str] = None,
secret_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> SecretVersionsResult
def secret_versions_output(output_file: Optional[pulumi.Input[str]] = None,
secret_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[SecretVersionsResult]func SecretVersions(ctx *Context, args *SecretVersionsArgs, opts ...InvokeOption) (*SecretVersionsResult, error)
func SecretVersionsOutput(ctx *Context, args *SecretVersionsOutputArgs, opts ...InvokeOption) SecretVersionsResultOutputpublic static class SecretVersions
{
public static Task<SecretVersionsResult> InvokeAsync(SecretVersionsArgs args, InvokeOptions? opts = null)
public static Output<SecretVersionsResult> Invoke(SecretVersionsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<SecretVersionsResult> secretVersions(SecretVersionsArgs args, InvokeOptions options)
public static Output<SecretVersionsResult> secretVersions(SecretVersionsArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:kms:SecretVersions
arguments:
# arguments dictionaryThe following arguments are supported:
- Secret
Name string - The name of the secret.
- Output
File string - File name where to save data source results.
- Secret
Name string - The name of the secret.
- Output
File string - File name where to save data source results.
- secret
Name String - The name of the secret.
- output
File String - File name where to save data source results.
- secret
Name string - The name of the secret.
- output
File string - File name where to save data source results.
- secret_
name str - The name of the secret.
- output_
file str - File name where to save data source results.
- secret
Name String - The name of the secret.
- output
File String - File name where to save data source results.
SecretVersions Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Secret
Name string - Secret
Versions List<SecretVersions Secret Version> - The version info of secret.
- Total
Count int - The total count of query.
- Output
File string
- Id string
- The provider-assigned unique ID for this managed resource.
- Secret
Name string - Secret
Versions []SecretVersions Secret Version - The version info of secret.
- Total
Count int - The total count of query.
- Output
File string
- id String
- The provider-assigned unique ID for this managed resource.
- secret
Name String - secret
Versions List<SecretVersions Secret Version> - The version info of secret.
- total
Count Integer - The total count of query.
- output
File String
- id string
- The provider-assigned unique ID for this managed resource.
- secret
Name string - secret
Versions SecretVersions Secret Version[] - The version info of secret.
- total
Count number - The total count of query.
- output
File string
- id str
- The provider-assigned unique ID for this managed resource.
- secret_
name str - secret_
versions Sequence[SecretVersions Secret Version] - The version info of secret.
- total_
count int - The total count of query.
- output_
file str
- id String
- The provider-assigned unique ID for this managed resource.
- secret
Name String - secret
Versions List<Property Map> - The version info of secret.
- total
Count Number - The total count of query.
- output
File String
Supporting Types
SecretVersionsSecretVersion
- Creation
Date int - The creation time of secret version.
- Version
Id string - The version ID of secret value.
- Version
Stage string - The version stage of secret value.
- Creation
Date int - The creation time of secret version.
- Version
Id string - The version ID of secret value.
- Version
Stage string - The version stage of secret value.
- creation
Date Integer - The creation time of secret version.
- version
Id String - The version ID of secret value.
- version
Stage String - The version stage of secret value.
- creation
Date number - The creation time of secret version.
- version
Id string - The version ID of secret value.
- version
Stage string - The version stage of secret value.
- creation_
date int - The creation time of secret version.
- version_
id str - The version ID of secret value.
- version_
stage str - The version stage of secret value.
- creation
Date Number - The creation time of secret version.
- version
Id String - The version ID of secret value.
- version
Stage String - The version stage of secret value.
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
