Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
Use this data source to query detailed information of kms secrets
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const default = volcengine.kms.getSecrets({
descriptions: [
"tf-1",
"tf-2",
],
secretNames: [
"5r3",
"5r",
"tf",
],
});
import pulumi
import pulumi_volcengine as volcengine
default = volcengine.kms.get_secrets(descriptions=[
"tf-1",
"tf-2",
],
secret_names=[
"5r3",
"5r",
"tf",
])
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.GetSecrets(ctx, &kms.GetSecretsArgs{
Descriptions: []string{
"tf-1",
"tf-2",
},
SecretNames: []string{
"5r3",
"5r",
"tf",
},
}, 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.GetSecrets.Invoke(new()
{
Descriptions = new[]
{
"tf-1",
"tf-2",
},
SecretNames = new[]
{
"5r3",
"5r",
"tf",
},
});
});
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.GetSecretsArgs;
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.getSecrets(GetSecretsArgs.builder()
.descriptions(
"tf-1",
"tf-2")
.secretNames(
"5r3",
"5r",
"tf")
.build());
}
}
variables:
default:
fn::invoke:
Function: volcengine:kms:getSecrets
Arguments:
descriptions:
- tf-1
- tf-2
secretNames:
- 5r3
- 5r
- tf
Using getSecrets
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 getSecrets(args: GetSecretsArgs, opts?: InvokeOptions): Promise<GetSecretsResult>
function getSecretsOutput(args: GetSecretsOutputArgs, opts?: InvokeOptions): Output<GetSecretsResult>def get_secrets(creation_date_ranges: Optional[Sequence[str]] = None,
descriptions: Optional[Sequence[str]] = None,
managed_states: Optional[Sequence[str]] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
project_name: Optional[str] = None,
rotation_states: Optional[Sequence[str]] = None,
secret_names: Optional[Sequence[str]] = None,
secret_states: Optional[Sequence[str]] = None,
secret_types: Optional[Sequence[str]] = None,
trns: Optional[Sequence[str]] = None,
update_date_ranges: Optional[Sequence[str]] = None,
opts: Optional[InvokeOptions] = None) -> GetSecretsResult
def get_secrets_output(creation_date_ranges: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
descriptions: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
managed_states: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
project_name: Optional[pulumi.Input[str]] = None,
rotation_states: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
secret_names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
secret_states: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
secret_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
trns: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
update_date_ranges: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSecretsResult]func GetSecrets(ctx *Context, args *GetSecretsArgs, opts ...InvokeOption) (*GetSecretsResult, error)
func GetSecretsOutput(ctx *Context, args *GetSecretsOutputArgs, opts ...InvokeOption) GetSecretsResultOutput> Note: This function is named GetSecrets in the Go SDK.
public static class GetSecrets
{
public static Task<GetSecretsResult> InvokeAsync(GetSecretsArgs args, InvokeOptions? opts = null)
public static Output<GetSecretsResult> Invoke(GetSecretsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSecretsResult> getSecrets(GetSecretsArgs args, InvokeOptions options)
public static Output<GetSecretsResult> getSecrets(GetSecretsArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:kms/getSecrets:getSecrets
arguments:
# arguments dictionaryThe following arguments are supported:
- Creation
Date List<string>Ranges - The creation date of the secret.
- Descriptions List<string>
- The description of the secret.
- Managed
States List<string> - The state of the managed.
- Name
Regex string - A Name Regex of Resource.
- Output
File string - File name where to save data source results.
- Project
Name string - The name of the project to which the secret belongs.
- Rotation
States List<string> - The state of the rotation.
- Secret
Names List<string> - The name of the secret.
- Secret
States List<string> - The state of the secret.
- Secret
Types List<string> - The type of the secret.
- Trns List<string>
- The trn of the secret.
- Update
Date List<string>Ranges - The update date of the secret.
- Creation
Date []stringRanges - The creation date of the secret.
- Descriptions []string
- The description of the secret.
- Managed
States []string - The state of the managed.
- Name
Regex string - A Name Regex of Resource.
- Output
File string - File name where to save data source results.
- Project
Name string - The name of the project to which the secret belongs.
- Rotation
States []string - The state of the rotation.
- Secret
Names []string - The name of the secret.
- Secret
States []string - The state of the secret.
- Secret
Types []string - The type of the secret.
- Trns []string
- The trn of the secret.
- Update
Date []stringRanges - The update date of the secret.
- creation
Date List<String>Ranges - The creation date of the secret.
- descriptions List<String>
- The description of the secret.
- managed
States List<String> - The state of the managed.
- name
Regex String - A Name Regex of Resource.
- output
File String - File name where to save data source results.
- project
Name String - The name of the project to which the secret belongs.
- rotation
States List<String> - The state of the rotation.
- secret
Names List<String> - The name of the secret.
- secret
States List<String> - The state of the secret.
- secret
Types List<String> - The type of the secret.
- trns List<String>
- The trn of the secret.
- update
Date List<String>Ranges - The update date of the secret.
- creation
Date string[]Ranges - The creation date of the secret.
- descriptions string[]
- The description of the secret.
- managed
States string[] - The state of the managed.
- name
Regex string - A Name Regex of Resource.
- output
File string - File name where to save data source results.
- project
Name string - The name of the project to which the secret belongs.
- rotation
States string[] - The state of the rotation.
- secret
Names string[] - The name of the secret.
- secret
States string[] - The state of the secret.
- secret
Types string[] - The type of the secret.
- trns string[]
- The trn of the secret.
- update
Date string[]Ranges - The update date of the secret.
- creation_
date_ Sequence[str]ranges - The creation date of the secret.
- descriptions Sequence[str]
- The description of the secret.
- managed_
states Sequence[str] - The state of the managed.
- name_
regex str - A Name Regex of Resource.
- output_
file str - File name where to save data source results.
- project_
name str - The name of the project to which the secret belongs.
- rotation_
states Sequence[str] - The state of the rotation.
- secret_
names Sequence[str] - The name of the secret.
- secret_
states Sequence[str] - The state of the secret.
- secret_
types Sequence[str] - The type of the secret.
- trns Sequence[str]
- The trn of the secret.
- update_
date_ Sequence[str]ranges - The update date of the secret.
- creation
Date List<String>Ranges - The creation date of the secret.
- descriptions List<String>
- The description of the secret.
- managed
States List<String> - The state of the managed.
- name
Regex String - A Name Regex of Resource.
- output
File String - File name where to save data source results.
- project
Name String - The name of the project to which the secret belongs.
- rotation
States List<String> - The state of the rotation.
- secret
Names List<String> - The name of the secret.
- secret
States List<String> - The state of the secret.
- secret
Types List<String> - The type of the secret.
- trns List<String>
- The trn of the secret.
- update
Date List<String>Ranges - The update date of the secret.
getSecrets Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Secrets
List<Get
Secrets Secret> - The information about the secret.
- Total
Count int - The total count of query.
- Creation
Date List<string>Ranges - Descriptions List<string>
- The description of the secret.
- Managed
States List<string> - Name
Regex string - Output
File string - Project
Name string - The project name of the secret.
- Rotation
States List<string> - The rotation state of the secret.
- Secret
Names List<string> - The name of the secret.
- Secret
States List<string> - The state of secret.
- Secret
Types List<string> - The type of the secret.
- Trns List<string>
- The information about the tenant resource name (TRN).
- Update
Date List<string>Ranges
- Id string
- The provider-assigned unique ID for this managed resource.
- Secrets
[]Get
Secrets Secret - The information about the secret.
- Total
Count int - The total count of query.
- Creation
Date []stringRanges - Descriptions []string
- The description of the secret.
- Managed
States []string - Name
Regex string - Output
File string - Project
Name string - The project name of the secret.
- Rotation
States []string - The rotation state of the secret.
- Secret
Names []string - The name of the secret.
- Secret
States []string - The state of secret.
- Secret
Types []string - The type of the secret.
- Trns []string
- The information about the tenant resource name (TRN).
- Update
Date []stringRanges
- id String
- The provider-assigned unique ID for this managed resource.
- secrets
List<Get
Secrets Secret> - The information about the secret.
- total
Count Integer - The total count of query.
- creation
Date List<String>Ranges - descriptions List<String>
- The description of the secret.
- managed
States List<String> - name
Regex String - output
File String - project
Name String - The project name of the secret.
- rotation
States List<String> - The rotation state of the secret.
- secret
Names List<String> - The name of the secret.
- secret
States List<String> - The state of secret.
- secret
Types List<String> - The type of the secret.
- trns List<String>
- The information about the tenant resource name (TRN).
- update
Date List<String>Ranges
- id string
- The provider-assigned unique ID for this managed resource.
- secrets
Get
Secrets Secret[] - The information about the secret.
- total
Count number - The total count of query.
- creation
Date string[]Ranges - descriptions string[]
- The description of the secret.
- managed
States string[] - name
Regex string - output
File string - project
Name string - The project name of the secret.
- rotation
States string[] - The rotation state of the secret.
- secret
Names string[] - The name of the secret.
- secret
States string[] - The state of secret.
- secret
Types string[] - The type of the secret.
- trns string[]
- The information about the tenant resource name (TRN).
- update
Date string[]Ranges
- id str
- The provider-assigned unique ID for this managed resource.
- secrets
Sequence[Get
Secrets Secret] - The information about the secret.
- total_
count int - The total count of query.
- creation_
date_ Sequence[str]ranges - descriptions Sequence[str]
- The description of the secret.
- managed_
states Sequence[str] - name_
regex str - output_
file str - project_
name str - The project name of the secret.
- rotation_
states Sequence[str] - The rotation state of the secret.
- secret_
names Sequence[str] - The name of the secret.
- secret_
states Sequence[str] - The state of secret.
- secret_
types Sequence[str] - The type of the secret.
- trns Sequence[str]
- The information about the tenant resource name (TRN).
- update_
date_ Sequence[str]ranges
- id String
- The provider-assigned unique ID for this managed resource.
- secrets List<Property Map>
- The information about the secret.
- total
Count Number - The total count of query.
- creation
Date List<String>Ranges - descriptions List<String>
- The description of the secret.
- managed
States List<String> - name
Regex String - output
File String - project
Name String - The project name of the secret.
- rotation
States List<String> - The rotation state of the secret.
- secret
Names List<String> - The name of the secret.
- secret
States List<String> - The state of secret.
- secret
Types List<String> - The type of the secret.
- trns List<String>
- The information about the tenant resource name (TRN).
- update
Date List<String>Ranges
Supporting Types
GetSecretsSecret
- Creation
Date int - The date when the keyring was created.
- Description string
- The description of the secret.
- Encryption
Key string - The TRN of the KMS key used to encrypt the secret value.
- Extended
Config string - The extended configurations of the secret.
- Id string
- The unique ID of the secret. The value is in the UUID format.
- Last
Rotation stringTime - The last time the secret was rotated.
- Managed bool
- Indicates whether the secret is hosted.
- Project
Name string - The name of the project to which the secret belongs.
- Rotation
Interval int - The interval at which automatic rotation is performed.
- Rotation
State string - The state of the rotation.
- Schedule
Delete stringTime - The time when the secret will be deleted.
- Schedule
Rotation stringTime - The next time the secret will be rotated.
- Secret
Name string - The name of the secret.
- Secret
State string - The state of the secret.
- Secret
Type string - The type of the secret.
- Trn string
- The trn of the secret.
- Uid string
- The tenant ID of the secret.
- Update
Date int - The date when the keyring was updated.
- Creation
Date int - The date when the keyring was created.
- Description string
- The description of the secret.
- Encryption
Key string - The TRN of the KMS key used to encrypt the secret value.
- Extended
Config string - The extended configurations of the secret.
- Id string
- The unique ID of the secret. The value is in the UUID format.
- Last
Rotation stringTime - The last time the secret was rotated.
- Managed bool
- Indicates whether the secret is hosted.
- Project
Name string - The name of the project to which the secret belongs.
- Rotation
Interval int - The interval at which automatic rotation is performed.
- Rotation
State string - The state of the rotation.
- Schedule
Delete stringTime - The time when the secret will be deleted.
- Schedule
Rotation stringTime - The next time the secret will be rotated.
- Secret
Name string - The name of the secret.
- Secret
State string - The state of the secret.
- Secret
Type string - The type of the secret.
- Trn string
- The trn of the secret.
- Uid string
- The tenant ID of the secret.
- Update
Date int - The date when the keyring was updated.
- creation
Date Integer - The date when the keyring was created.
- description String
- The description of the secret.
- encryption
Key String - The TRN of the KMS key used to encrypt the secret value.
- extended
Config String - The extended configurations of the secret.
- id String
- The unique ID of the secret. The value is in the UUID format.
- last
Rotation StringTime - The last time the secret was rotated.
- managed Boolean
- Indicates whether the secret is hosted.
- project
Name String - The name of the project to which the secret belongs.
- rotation
Interval Integer - The interval at which automatic rotation is performed.
- rotation
State String - The state of the rotation.
- schedule
Delete StringTime - The time when the secret will be deleted.
- schedule
Rotation StringTime - The next time the secret will be rotated.
- secret
Name String - The name of the secret.
- secret
State String - The state of the secret.
- secret
Type String - The type of the secret.
- trn String
- The trn of the secret.
- uid String
- The tenant ID of the secret.
- update
Date Integer - The date when the keyring was updated.
- creation
Date number - The date when the keyring was created.
- description string
- The description of the secret.
- encryption
Key string - The TRN of the KMS key used to encrypt the secret value.
- extended
Config string - The extended configurations of the secret.
- id string
- The unique ID of the secret. The value is in the UUID format.
- last
Rotation stringTime - The last time the secret was rotated.
- managed boolean
- Indicates whether the secret is hosted.
- project
Name string - The name of the project to which the secret belongs.
- rotation
Interval number - The interval at which automatic rotation is performed.
- rotation
State string - The state of the rotation.
- schedule
Delete stringTime - The time when the secret will be deleted.
- schedule
Rotation stringTime - The next time the secret will be rotated.
- secret
Name string - The name of the secret.
- secret
State string - The state of the secret.
- secret
Type string - The type of the secret.
- trn string
- The trn of the secret.
- uid string
- The tenant ID of the secret.
- update
Date number - The date when the keyring was updated.
- creation_
date int - The date when the keyring was created.
- description str
- The description of the secret.
- encryption_
key str - The TRN of the KMS key used to encrypt the secret value.
- extended_
config str - The extended configurations of the secret.
- id str
- The unique ID of the secret. The value is in the UUID format.
- last_
rotation_ strtime - The last time the secret was rotated.
- managed bool
- Indicates whether the secret is hosted.
- project_
name str - The name of the project to which the secret belongs.
- rotation_
interval int - The interval at which automatic rotation is performed.
- rotation_
state str - The state of the rotation.
- schedule_
delete_ strtime - The time when the secret will be deleted.
- schedule_
rotation_ strtime - The next time the secret will be rotated.
- secret_
name str - The name of the secret.
- secret_
state str - The state of the secret.
- secret_
type str - The type of the secret.
- trn str
- The trn of the secret.
- uid str
- The tenant ID of the secret.
- update_
date int - The date when the keyring was updated.
- creation
Date Number - The date when the keyring was created.
- description String
- The description of the secret.
- encryption
Key String - The TRN of the KMS key used to encrypt the secret value.
- extended
Config String - The extended configurations of the secret.
- id String
- The unique ID of the secret. The value is in the UUID format.
- last
Rotation StringTime - The last time the secret was rotated.
- managed Boolean
- Indicates whether the secret is hosted.
- project
Name String - The name of the project to which the secret belongs.
- rotation
Interval Number - The interval at which automatic rotation is performed.
- rotation
State String - The state of the rotation.
- schedule
Delete StringTime - The time when the secret will be deleted.
- schedule
Rotation StringTime - The next time the secret will be rotated.
- secret
Name String - The name of the secret.
- secret
State String - The state of the secret.
- secret
Type String - The type of the secret.
- trn String
- The trn of the secret.
- uid String
- The tenant ID of the secret.
- update
Date Number - The date when the keyring was updated.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengineTerraform Provider.
Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
