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.PublicKeys has been deprecated in favor of volcengine.kms.getPublicKeys
Use this data source to query detailed information of kms public keys
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const default = volcengine.kms.getPublicKeys({
keyName: "Test-key2",
keyringName: "Tf-test",
});
import pulumi
import pulumi_volcengine as volcengine
default = volcengine.kms.get_public_keys(key_name="Test-key2",
keyring_name="Tf-test")
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.GetPublicKeys(ctx, &kms.GetPublicKeysArgs{
KeyName: pulumi.StringRef("Test-key2"),
KeyringName: pulumi.StringRef("Tf-test"),
}, 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.GetPublicKeys.Invoke(new()
{
KeyName = "Test-key2",
KeyringName = "Tf-test",
});
});
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.GetPublicKeysArgs;
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.getPublicKeys(GetPublicKeysArgs.builder()
.keyName("Test-key2")
.keyringName("Tf-test")
.build());
}
}
variables:
default:
fn::invoke:
Function: volcengine:kms:getPublicKeys
Arguments:
keyName: Test-key2
keyringName: Tf-test
Using PublicKeys
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 publicKeys(args: PublicKeysArgs, opts?: InvokeOptions): Promise<PublicKeysResult>
function publicKeysOutput(args: PublicKeysOutputArgs, opts?: InvokeOptions): Output<PublicKeysResult>def public_keys(key_id: Optional[str] = None,
key_name: Optional[str] = None,
keyring_name: Optional[str] = None,
output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> PublicKeysResult
def public_keys_output(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[PublicKeysResult]func PublicKeys(ctx *Context, args *PublicKeysArgs, opts ...InvokeOption) (*PublicKeysResult, error)
func PublicKeysOutput(ctx *Context, args *PublicKeysOutputArgs, opts ...InvokeOption) PublicKeysResultOutputpublic static class PublicKeys
{
public static Task<PublicKeysResult> InvokeAsync(PublicKeysArgs args, InvokeOptions? opts = null)
public static Output<PublicKeysResult> Invoke(PublicKeysInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<PublicKeysResult> publicKeys(PublicKeysArgs args, InvokeOptions options)
public static Output<PublicKeysResult> publicKeys(PublicKeysArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:kms:PublicKeys
arguments:
# arguments dictionaryThe following arguments are supported:
- Key
Id string - The id of key. When key_id is not specified, both keyring_name and key_name must be specified.
- Key
Name string - The name of key.
- Keyring
Name string - The name of keyring.
- Output
File string - File name where to save data source results.
- Key
Id string - The id of key. When key_id is not specified, both keyring_name and key_name must be specified.
- Key
Name string - The name of key.
- Keyring
Name string - The name of keyring.
- Output
File string - File name where to save data source results.
- key
Id String - The id of key. When key_id is not specified, both keyring_name and key_name must be specified.
- key
Name String - The name of key.
- keyring
Name String - The name of keyring.
- output
File String - File name where to save data source results.
- key
Id string - The id of key. When key_id is not specified, both keyring_name and key_name must be specified.
- key
Name string - The name of key.
- keyring
Name string - The name of keyring.
- output
File string - File name where to save data source results.
- key_
id str - The id of key. When key_id is not specified, both keyring_name and key_name must be specified.
- key_
name str - The name of key.
- keyring_
name str - The name of keyring.
- output_
file str - File name where to save data source results.
- key
Id String - The id of key. When key_id is not specified, both keyring_name and key_name must be specified.
- key
Name String - The name of key.
- keyring
Name String - The name of keyring.
- output
File String - File name where to save data source results.
PublicKeys Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Public
Keys List<PublicKeys Public Key> - The public key in PEM format.
- Total
Count int - The total count of query.
- Key
Id string - The id of key.
- Key
Name string - Keyring
Name string - Output
File string
- Id string
- The provider-assigned unique ID for this managed resource.
- Public
Keys []PublicKeys Public Key - The public key in PEM format.
- Total
Count int - The total count of query.
- Key
Id string - The id of key.
- Key
Name string - Keyring
Name string - Output
File string
- id String
- The provider-assigned unique ID for this managed resource.
- public
Keys List<PublicKeys Public Key> - The public key in PEM format.
- total
Count Integer - The total count of query.
- key
Id String - The id of key.
- key
Name String - keyring
Name String - output
File String
- id string
- The provider-assigned unique ID for this managed resource.
- public
Keys PublicKeys Public Key[] - The public key in PEM format.
- total
Count number - The total count of query.
- key
Id string - The id of key.
- key
Name string - keyring
Name string - output
File string
- id str
- The provider-assigned unique ID for this managed resource.
- public_
keys Sequence[PublicKeys Public Key] - The public key in PEM format.
- total_
count int - The total count of query.
- key_
id str - The id of key.
- key_
name str - keyring_
name str - output_
file str
- id String
- The provider-assigned unique ID for this managed resource.
- public
Keys List<Property Map> - The public key in PEM format.
- total
Count Number - The total count of query.
- key
Id String - The id of key.
- key
Name String - keyring
Name String - output
File String
Supporting Types
PublicKeysPublicKey
- key_
id str - The id of key. When key_id is not specified, both keyring_name and key_name must be specified.
- public_
key str - The public key in PEM format.
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
