tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getKmsDescribeKeys
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 key_lists
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = tencentcloud.getKmsDescribeKeys({
keyIds: [
"9ffacc8b-6461-11ee-a54e-525400dd8a7d",
"bffae4ed-6465-11ee-90b2-5254000ef00e",
],
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.get_kms_describe_keys(key_ids=[
"9ffacc8b-6461-11ee-a54e-525400dd8a7d",
"bffae4ed-6465-11ee-90b2-5254000ef00e",
])
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.GetKmsDescribeKeys(ctx, &tencentcloud.GetKmsDescribeKeysArgs{
KeyIds: []string{
"9ffacc8b-6461-11ee-a54e-525400dd8a7d",
"bffae4ed-6465-11ee-90b2-5254000ef00e",
},
}, 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.GetKmsDescribeKeys.Invoke(new()
{
KeyIds = new[]
{
"9ffacc8b-6461-11ee-a54e-525400dd8a7d",
"bffae4ed-6465-11ee-90b2-5254000ef00e",
},
});
});
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.GetKmsDescribeKeysArgs;
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.getKmsDescribeKeys(GetKmsDescribeKeysArgs.builder()
.keyIds(
"9ffacc8b-6461-11ee-a54e-525400dd8a7d",
"bffae4ed-6465-11ee-90b2-5254000ef00e")
.build());
}
}
variables:
example:
fn::invoke:
function: tencentcloud:getKmsDescribeKeys
arguments:
keyIds:
- 9ffacc8b-6461-11ee-a54e-525400dd8a7d
- bffae4ed-6465-11ee-90b2-5254000ef00e
Using getKmsDescribeKeys
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 getKmsDescribeKeys(args: GetKmsDescribeKeysArgs, opts?: InvokeOptions): Promise<GetKmsDescribeKeysResult>
function getKmsDescribeKeysOutput(args: GetKmsDescribeKeysOutputArgs, opts?: InvokeOptions): Output<GetKmsDescribeKeysResult>
def get_kms_describe_keys(id: Optional[str] = None,
key_ids: Optional[Sequence[str]] = None,
result_output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetKmsDescribeKeysResult
def get_kms_describe_keys_output(id: Optional[pulumi.Input[str]] = None,
key_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetKmsDescribeKeysResult]
func GetKmsDescribeKeys(ctx *Context, args *GetKmsDescribeKeysArgs, opts ...InvokeOption) (*GetKmsDescribeKeysResult, error)
func GetKmsDescribeKeysOutput(ctx *Context, args *GetKmsDescribeKeysOutputArgs, opts ...InvokeOption) GetKmsDescribeKeysResultOutput
> Note: This function is named GetKmsDescribeKeys
in the Go SDK.
public static class GetKmsDescribeKeys
{
public static Task<GetKmsDescribeKeysResult> InvokeAsync(GetKmsDescribeKeysArgs args, InvokeOptions? opts = null)
public static Output<GetKmsDescribeKeysResult> Invoke(GetKmsDescribeKeysInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetKmsDescribeKeysResult> getKmsDescribeKeys(GetKmsDescribeKeysArgs args, InvokeOptions options)
public static Output<GetKmsDescribeKeysResult> getKmsDescribeKeys(GetKmsDescribeKeysArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getKmsDescribeKeys:getKmsDescribeKeys
arguments:
# arguments dictionary
The following arguments are supported:
- Key
Ids List<string> - Query the ID list of CMK, batch query supports up to 100 KeyIds at a time.
- Id string
- Result
Output stringFile - Used to save results.
- Key
Ids []string - Query the ID list of CMK, batch query supports up to 100 KeyIds at a time.
- Id string
- Result
Output stringFile - Used to save results.
- key
Ids List<String> - Query the ID list of CMK, batch query supports up to 100 KeyIds at a time.
- id String
- result
Output StringFile - Used to save results.
- key
Ids string[] - Query the ID list of CMK, batch query supports up to 100 KeyIds at a time.
- id string
- result
Output stringFile - Used to save results.
- key_
ids Sequence[str] - Query the ID list of CMK, batch query supports up to 100 KeyIds at a time.
- id str
- result_
output_ strfile - Used to save results.
- key
Ids List<String> - Query the ID list of CMK, batch query supports up to 100 KeyIds at a time.
- id String
- result
Output StringFile - Used to save results.
getKmsDescribeKeys Result
The following output properties are available:
- Id string
- Key
Ids List<string> - Key
Lists List<GetKms Describe Keys Key List> - A list of KMS keys.
- Result
Output stringFile
- Id string
- Key
Ids []string - Key
Lists []GetKms Describe Keys Key List - A list of KMS keys.
- Result
Output stringFile
- id String
- key
Ids List<String> - key
Lists List<GetKms Describe Keys Key List> - A list of KMS keys.
- result
Output StringFile
- id string
- key
Ids string[] - key
Lists GetKms Describe Keys Key List[] - A list of KMS keys.
- result
Output stringFile
- id str
- key_
ids Sequence[str] - key_
lists Sequence[GetKms Describe Keys Key List] - A list of KMS keys.
- result_
output_ strfile
- id String
- key
Ids List<String> - key
Lists List<Property Map> - A list of KMS keys.
- result
Output StringFile
Supporting Types
GetKmsDescribeKeysKeyList
- Alias string
- Name of CMK.
- Create
Time double - Create time of CMK.
- Creator
Uin double - Uin of CMK Creator.
- Deletion
Date double - Delete time of CMK.
- Description string
- Description of CMK.
- Key
Id string - ID of CMK.
- Key
Rotation boolEnabled - Specify whether to enable key rotation.
- Key
State string - State of CMK.
- Key
Usage string - Usage of CMK.
- Next
Rotate doubleTime - Next rotate time of CMK when key_rotation_enabled is true.
- Origin string
- Origin of CMK.
TENCENT_KMS
- CMK created by KMS,EXTERNAL
- CMK imported by user. - Owner string
- Creator of CMK.
- Valid
To double - Valid when origin is
EXTERNAL
, it means the effective date of the key material.
- Alias string
- Name of CMK.
- Create
Time float64 - Create time of CMK.
- Creator
Uin float64 - Uin of CMK Creator.
- Deletion
Date float64 - Delete time of CMK.
- Description string
- Description of CMK.
- Key
Id string - ID of CMK.
- Key
Rotation boolEnabled - Specify whether to enable key rotation.
- Key
State string - State of CMK.
- Key
Usage string - Usage of CMK.
- Next
Rotate float64Time - Next rotate time of CMK when key_rotation_enabled is true.
- Origin string
- Origin of CMK.
TENCENT_KMS
- CMK created by KMS,EXTERNAL
- CMK imported by user. - Owner string
- Creator of CMK.
- Valid
To float64 - Valid when origin is
EXTERNAL
, it means the effective date of the key material.
- alias String
- Name of CMK.
- create
Time Double - Create time of CMK.
- creator
Uin Double - Uin of CMK Creator.
- deletion
Date Double - Delete time of CMK.
- description String
- Description of CMK.
- key
Id String - ID of CMK.
- key
Rotation BooleanEnabled - Specify whether to enable key rotation.
- key
State String - State of CMK.
- key
Usage String - Usage of CMK.
- next
Rotate DoubleTime - Next rotate time of CMK when key_rotation_enabled is true.
- origin String
- Origin of CMK.
TENCENT_KMS
- CMK created by KMS,EXTERNAL
- CMK imported by user. - owner String
- Creator of CMK.
- valid
To Double - Valid when origin is
EXTERNAL
, it means the effective date of the key material.
- alias string
- Name of CMK.
- create
Time number - Create time of CMK.
- creator
Uin number - Uin of CMK Creator.
- deletion
Date number - Delete time of CMK.
- description string
- Description of CMK.
- key
Id string - ID of CMK.
- key
Rotation booleanEnabled - Specify whether to enable key rotation.
- key
State string - State of CMK.
- key
Usage string - Usage of CMK.
- next
Rotate numberTime - Next rotate time of CMK when key_rotation_enabled is true.
- origin string
- Origin of CMK.
TENCENT_KMS
- CMK created by KMS,EXTERNAL
- CMK imported by user. - owner string
- Creator of CMK.
- valid
To number - Valid when origin is
EXTERNAL
, it means the effective date of the key material.
- alias str
- Name of CMK.
- create_
time float - Create time of CMK.
- creator_
uin float - Uin of CMK Creator.
- deletion_
date float - Delete time of CMK.
- description str
- Description of CMK.
- key_
id str - ID of CMK.
- key_
rotation_ boolenabled - Specify whether to enable key rotation.
- key_
state str - State of CMK.
- key_
usage str - Usage of CMK.
- next_
rotate_ floattime - Next rotate time of CMK when key_rotation_enabled is true.
- origin str
- Origin of CMK.
TENCENT_KMS
- CMK created by KMS,EXTERNAL
- CMK imported by user. - owner str
- Creator of CMK.
- valid_
to float - Valid when origin is
EXTERNAL
, it means the effective date of the key material.
- alias String
- Name of CMK.
- create
Time Number - Create time of CMK.
- creator
Uin Number - Uin of CMK Creator.
- deletion
Date Number - Delete time of CMK.
- description String
- Description of CMK.
- key
Id String - ID of CMK.
- key
Rotation BooleanEnabled - Specify whether to enable key rotation.
- key
State String - State of CMK.
- key
Usage String - Usage of CMK.
- next
Rotate NumberTime - Next rotate time of CMK when key_rotation_enabled is true.
- origin String
- Origin of CMK.
TENCENT_KMS
- CMK created by KMS,EXTERNAL
- CMK imported by user. - owner String
- Creator of CMK.
- valid
To Number - Valid when origin is
EXTERNAL
, it means the effective date of the key material.
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