tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getKmsListKeys
Explore with Pulumi AI
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
Use this data source to query detailed information of kms list_keys
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = tencentcloud.getKmsListKeys({
role: 1,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.get_kms_list_keys(role=1)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.GetKmsListKeys(ctx, &tencentcloud.GetKmsListKeysArgs{
Role: pulumi.Float64Ref(1),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var example = Tencentcloud.GetKmsListKeys.Invoke(new()
{
Role = 1,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetKmsListKeysArgs;
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 example = TencentcloudFunctions.getKmsListKeys(GetKmsListKeysArgs.builder()
.role(1)
.build());
}
}
variables:
example:
fn::invoke:
function: tencentcloud:getKmsListKeys
arguments:
role: 1
Using getKmsListKeys
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 getKmsListKeys(args: GetKmsListKeysArgs, opts?: InvokeOptions): Promise<GetKmsListKeysResult>
function getKmsListKeysOutput(args: GetKmsListKeysOutputArgs, opts?: InvokeOptions): Output<GetKmsListKeysResult>
def get_kms_list_keys(hsm_cluster_id: Optional[str] = None,
id: Optional[str] = None,
result_output_file: Optional[str] = None,
role: Optional[float] = None,
opts: Optional[InvokeOptions] = None) -> GetKmsListKeysResult
def get_kms_list_keys_output(hsm_cluster_id: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
role: Optional[pulumi.Input[float]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetKmsListKeysResult]
func GetKmsListKeys(ctx *Context, args *GetKmsListKeysArgs, opts ...InvokeOption) (*GetKmsListKeysResult, error)
func GetKmsListKeysOutput(ctx *Context, args *GetKmsListKeysOutputArgs, opts ...InvokeOption) GetKmsListKeysResultOutput
> Note: This function is named GetKmsListKeys
in the Go SDK.
public static class GetKmsListKeys
{
public static Task<GetKmsListKeysResult> InvokeAsync(GetKmsListKeysArgs args, InvokeOptions? opts = null)
public static Output<GetKmsListKeysResult> Invoke(GetKmsListKeysInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetKmsListKeysResult> getKmsListKeys(GetKmsListKeysArgs args, InvokeOptions options)
public static Output<GetKmsListKeysResult> getKmsListKeys(GetKmsListKeysArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getKmsListKeys:getKmsListKeys
arguments:
# arguments dictionary
The following arguments are supported:
- Hsm
Cluster stringId - HSM cluster ID (only valid for KMS exclusive/managed service instances).
- Id string
- Result
Output stringFile - Used to save results.
- Role double
- Filter based on the creator role. The default value is 0, which indicates the cmk created by the user himself, and 1, which indicates the cmk automatically created by authorizing other cloud products.
- Hsm
Cluster stringId - HSM cluster ID (only valid for KMS exclusive/managed service instances).
- Id string
- Result
Output stringFile - Used to save results.
- Role float64
- Filter based on the creator role. The default value is 0, which indicates the cmk created by the user himself, and 1, which indicates the cmk automatically created by authorizing other cloud products.
- hsm
Cluster StringId - HSM cluster ID (only valid for KMS exclusive/managed service instances).
- id String
- result
Output StringFile - Used to save results.
- role Double
- Filter based on the creator role. The default value is 0, which indicates the cmk created by the user himself, and 1, which indicates the cmk automatically created by authorizing other cloud products.
- hsm
Cluster stringId - HSM cluster ID (only valid for KMS exclusive/managed service instances).
- id string
- result
Output stringFile - Used to save results.
- role number
- Filter based on the creator role. The default value is 0, which indicates the cmk created by the user himself, and 1, which indicates the cmk automatically created by authorizing other cloud products.
- hsm_
cluster_ strid - HSM cluster ID (only valid for KMS exclusive/managed service instances).
- id str
- result_
output_ strfile - Used to save results.
- role float
- Filter based on the creator role. The default value is 0, which indicates the cmk created by the user himself, and 1, which indicates the cmk automatically created by authorizing other cloud products.
- hsm
Cluster StringId - HSM cluster ID (only valid for KMS exclusive/managed service instances).
- id String
- result
Output StringFile - Used to save results.
- role Number
- Filter based on the creator role. The default value is 0, which indicates the cmk created by the user himself, and 1, which indicates the cmk automatically created by authorizing other cloud products.
getKmsListKeys Result
The following output properties are available:
- Id string
- Keys
List<Get
Kms List Keys Key> - A list of KMS keys.
- Hsm
Cluster stringId - Result
Output stringFile - Role double
- Id string
- Keys
[]Get
Kms List Keys Key - A list of KMS keys.
- Hsm
Cluster stringId - Result
Output stringFile - Role float64
- id String
- keys
List<Get
Kms List Keys Key> - A list of KMS keys.
- hsm
Cluster StringId - result
Output StringFile - role Double
- id string
- keys
Get
Kms List Keys Key[] - A list of KMS keys.
- hsm
Cluster stringId - result
Output stringFile - role number
- id str
- keys
Sequence[Get
Kms List Keys Key] - A list of KMS keys.
- hsm_
cluster_ strid - result_
output_ strfile - role float
- id String
- keys List<Property Map>
- A list of KMS keys.
- hsm
Cluster StringId - result
Output StringFile - role Number
Supporting Types
GetKmsListKeysKey
- Key
Id string - ID of CMK.
- Key
Id string - ID of CMK.
- key
Id String - ID of CMK.
- key
Id string - ID of CMK.
- key_
id str - ID of CMK.
- key
Id String - ID of CMK.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack