1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getKmsListKeys
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.getKmsListKeys

Explore with Pulumi AI

tencentcloud logo
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:

    HsmClusterId string
    HSM cluster ID (only valid for KMS exclusive/managed service instances).
    Id string
    ResultOutputFile string
    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.
    HsmClusterId string
    HSM cluster ID (only valid for KMS exclusive/managed service instances).
    Id string
    ResultOutputFile string
    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.
    hsmClusterId String
    HSM cluster ID (only valid for KMS exclusive/managed service instances).
    id String
    resultOutputFile String
    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.
    hsmClusterId string
    HSM cluster ID (only valid for KMS exclusive/managed service instances).
    id string
    resultOutputFile string
    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_id str
    HSM cluster ID (only valid for KMS exclusive/managed service instances).
    id str
    result_output_file str
    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.
    hsmClusterId String
    HSM cluster ID (only valid for KMS exclusive/managed service instances).
    id String
    resultOutputFile String
    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<GetKmsListKeysKey>
    A list of KMS keys.
    HsmClusterId string
    ResultOutputFile string
    Role double
    Id string
    Keys []GetKmsListKeysKey
    A list of KMS keys.
    HsmClusterId string
    ResultOutputFile string
    Role float64
    id String
    keys List<GetKmsListKeysKey>
    A list of KMS keys.
    hsmClusterId String
    resultOutputFile String
    role Double
    id string
    keys GetKmsListKeysKey[]
    A list of KMS keys.
    hsmClusterId string
    resultOutputFile string
    role number
    id String
    keys List<Property Map>
    A list of KMS keys.
    hsmClusterId String
    resultOutputFile String
    role Number

    Supporting Types

    GetKmsListKeysKey

    KeyId string
    ID of CMK.
    KeyId string
    ID of CMK.
    keyId String
    ID of CMK.
    keyId string
    ID of CMK.
    key_id str
    ID of CMK.
    keyId 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 logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack