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

tencentcloud.getKmsGetParametersForImport

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 get_parameters_for_import

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = tencentcloud.getKmsGetParametersForImport({
        keyId: "786aea8c-4aec-11ee-b601-525400281a45",
        wrappingAlgorithm: "RSAES_OAEP_SHA_1",
        wrappingKeySpec: "RSA_2048",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.get_kms_get_parameters_for_import(key_id="786aea8c-4aec-11ee-b601-525400281a45",
        wrapping_algorithm="RSAES_OAEP_SHA_1",
        wrapping_key_spec="RSA_2048")
    
    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.GetKmsGetParametersForImport(ctx, &tencentcloud.GetKmsGetParametersForImportArgs{
    			KeyId:             "786aea8c-4aec-11ee-b601-525400281a45",
    			WrappingAlgorithm: "RSAES_OAEP_SHA_1",
    			WrappingKeySpec:   "RSA_2048",
    		}, 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.GetKmsGetParametersForImport.Invoke(new()
        {
            KeyId = "786aea8c-4aec-11ee-b601-525400281a45",
            WrappingAlgorithm = "RSAES_OAEP_SHA_1",
            WrappingKeySpec = "RSA_2048",
        });
    
    });
    
    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.GetKmsGetParametersForImportArgs;
    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.getKmsGetParametersForImport(GetKmsGetParametersForImportArgs.builder()
                .keyId("786aea8c-4aec-11ee-b601-525400281a45")
                .wrappingAlgorithm("RSAES_OAEP_SHA_1")
                .wrappingKeySpec("RSA_2048")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: tencentcloud:getKmsGetParametersForImport
          arguments:
            keyId: 786aea8c-4aec-11ee-b601-525400281a45
            wrappingAlgorithm: RSAES_OAEP_SHA_1
            wrappingKeySpec: RSA_2048
    

    Using getKmsGetParametersForImport

    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 getKmsGetParametersForImport(args: GetKmsGetParametersForImportArgs, opts?: InvokeOptions): Promise<GetKmsGetParametersForImportResult>
    function getKmsGetParametersForImportOutput(args: GetKmsGetParametersForImportOutputArgs, opts?: InvokeOptions): Output<GetKmsGetParametersForImportResult>
    def get_kms_get_parameters_for_import(id: Optional[str] = None,
                                          key_id: Optional[str] = None,
                                          result_output_file: Optional[str] = None,
                                          wrapping_algorithm: Optional[str] = None,
                                          wrapping_key_spec: Optional[str] = None,
                                          opts: Optional[InvokeOptions] = None) -> GetKmsGetParametersForImportResult
    def get_kms_get_parameters_for_import_output(id: Optional[pulumi.Input[str]] = None,
                                          key_id: Optional[pulumi.Input[str]] = None,
                                          result_output_file: Optional[pulumi.Input[str]] = None,
                                          wrapping_algorithm: Optional[pulumi.Input[str]] = None,
                                          wrapping_key_spec: Optional[pulumi.Input[str]] = None,
                                          opts: Optional[InvokeOptions] = None) -> Output[GetKmsGetParametersForImportResult]
    func GetKmsGetParametersForImport(ctx *Context, args *GetKmsGetParametersForImportArgs, opts ...InvokeOption) (*GetKmsGetParametersForImportResult, error)
    func GetKmsGetParametersForImportOutput(ctx *Context, args *GetKmsGetParametersForImportOutputArgs, opts ...InvokeOption) GetKmsGetParametersForImportResultOutput

    > Note: This function is named GetKmsGetParametersForImport in the Go SDK.

    public static class GetKmsGetParametersForImport 
    {
        public static Task<GetKmsGetParametersForImportResult> InvokeAsync(GetKmsGetParametersForImportArgs args, InvokeOptions? opts = null)
        public static Output<GetKmsGetParametersForImportResult> Invoke(GetKmsGetParametersForImportInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetKmsGetParametersForImportResult> getKmsGetParametersForImport(GetKmsGetParametersForImportArgs args, InvokeOptions options)
    public static Output<GetKmsGetParametersForImportResult> getKmsGetParametersForImport(GetKmsGetParametersForImportArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getKmsGetParametersForImport:getKmsGetParametersForImport
      arguments:
        # arguments dictionary

    The following arguments are supported:

    KeyId string
    CMK unique identifier.
    WrappingAlgorithm string
    Specifies the algorithm for encrypting key material, currently supports RSAES_PKCS1_V1_5, RSAES_OAEP_SHA_1, RSAES_OAEP_SHA_256.
    WrappingKeySpec string
    Specifies the type of encryption key material, currently only supports RSA_2048.
    Id string
    ResultOutputFile string
    Used to save results.
    KeyId string
    CMK unique identifier.
    WrappingAlgorithm string
    Specifies the algorithm for encrypting key material, currently supports RSAES_PKCS1_V1_5, RSAES_OAEP_SHA_1, RSAES_OAEP_SHA_256.
    WrappingKeySpec string
    Specifies the type of encryption key material, currently only supports RSA_2048.
    Id string
    ResultOutputFile string
    Used to save results.
    keyId String
    CMK unique identifier.
    wrappingAlgorithm String
    Specifies the algorithm for encrypting key material, currently supports RSAES_PKCS1_V1_5, RSAES_OAEP_SHA_1, RSAES_OAEP_SHA_256.
    wrappingKeySpec String
    Specifies the type of encryption key material, currently only supports RSA_2048.
    id String
    resultOutputFile String
    Used to save results.
    keyId string
    CMK unique identifier.
    wrappingAlgorithm string
    Specifies the algorithm for encrypting key material, currently supports RSAES_PKCS1_V1_5, RSAES_OAEP_SHA_1, RSAES_OAEP_SHA_256.
    wrappingKeySpec string
    Specifies the type of encryption key material, currently only supports RSA_2048.
    id string
    resultOutputFile string
    Used to save results.
    key_id str
    CMK unique identifier.
    wrapping_algorithm str
    Specifies the algorithm for encrypting key material, currently supports RSAES_PKCS1_V1_5, RSAES_OAEP_SHA_1, RSAES_OAEP_SHA_256.
    wrapping_key_spec str
    Specifies the type of encryption key material, currently only supports RSA_2048.
    id str
    result_output_file str
    Used to save results.
    keyId String
    CMK unique identifier.
    wrappingAlgorithm String
    Specifies the algorithm for encrypting key material, currently supports RSAES_PKCS1_V1_5, RSAES_OAEP_SHA_1, RSAES_OAEP_SHA_256.
    wrappingKeySpec String
    Specifies the type of encryption key material, currently only supports RSA_2048.
    id String
    resultOutputFile String
    Used to save results.

    getKmsGetParametersForImport Result

    The following output properties are available:

    Id string
    ImportToken string
    The token required for importing key material is used as the parameter of ImportKeyMaterial.
    KeyId string
    ParametersValidTo double
    The validity period of the exported token and public key cannot be imported after this period, and you need to call GetParametersForImport again to obtain it.
    PublicKey string
    Base64-encoded public key content.
    WrappingAlgorithm string
    WrappingKeySpec string
    ResultOutputFile string
    Id string
    ImportToken string
    The token required for importing key material is used as the parameter of ImportKeyMaterial.
    KeyId string
    ParametersValidTo float64
    The validity period of the exported token and public key cannot be imported after this period, and you need to call GetParametersForImport again to obtain it.
    PublicKey string
    Base64-encoded public key content.
    WrappingAlgorithm string
    WrappingKeySpec string
    ResultOutputFile string
    id String
    importToken String
    The token required for importing key material is used as the parameter of ImportKeyMaterial.
    keyId String
    parametersValidTo Double
    The validity period of the exported token and public key cannot be imported after this period, and you need to call GetParametersForImport again to obtain it.
    publicKey String
    Base64-encoded public key content.
    wrappingAlgorithm String
    wrappingKeySpec String
    resultOutputFile String
    id string
    importToken string
    The token required for importing key material is used as the parameter of ImportKeyMaterial.
    keyId string
    parametersValidTo number
    The validity period of the exported token and public key cannot be imported after this period, and you need to call GetParametersForImport again to obtain it.
    publicKey string
    Base64-encoded public key content.
    wrappingAlgorithm string
    wrappingKeySpec string
    resultOutputFile string
    id str
    import_token str
    The token required for importing key material is used as the parameter of ImportKeyMaterial.
    key_id str
    parameters_valid_to float
    The validity period of the exported token and public key cannot be imported after this period, and you need to call GetParametersForImport again to obtain it.
    public_key str
    Base64-encoded public key content.
    wrapping_algorithm str
    wrapping_key_spec str
    result_output_file str
    id String
    importToken String
    The token required for importing key material is used as the parameter of ImportKeyMaterial.
    keyId String
    parametersValidTo Number
    The validity period of the exported token and public key cannot be imported after this period, and you need to call GetParametersForImport again to obtain it.
    publicKey String
    Base64-encoded public key content.
    wrappingAlgorithm String
    wrappingKeySpec String
    resultOutputFile String

    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