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

tencentcloud.CvmLaunchTemplate

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides a resource to create a cvm launch template

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const myFavoriteImage = tencentcloud.getImages({
        imageTypes: ["PUBLIC_IMAGE"],
        imageNameRegex: "Final",
    });
    const demo = new tencentcloud.CvmLaunchTemplate("demo", {
        launchTemplateName: "test",
        placement: {
            zone: "ap-guangzhou-6",
            projectId: 0,
        },
        imageId: myFavoriteImage.then(myFavoriteImage => myFavoriteImage.images?.[0]?.imageId),
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    my_favorite_image = tencentcloud.get_images(image_types=["PUBLIC_IMAGE"],
        image_name_regex="Final")
    demo = tencentcloud.CvmLaunchTemplate("demo",
        launch_template_name="test",
        placement={
            "zone": "ap-guangzhou-6",
            "project_id": 0,
        },
        image_id=my_favorite_image.images[0].image_id)
    
    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 {
    		myFavoriteImage, err := tencentcloud.GetImages(ctx, &tencentcloud.GetImagesArgs{
    			ImageTypes: []string{
    				"PUBLIC_IMAGE",
    			},
    			ImageNameRegex: pulumi.StringRef("Final"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = tencentcloud.NewCvmLaunchTemplate(ctx, "demo", &tencentcloud.CvmLaunchTemplateArgs{
    			LaunchTemplateName: pulumi.String("test"),
    			Placement: &tencentcloud.CvmLaunchTemplatePlacementArgs{
    				Zone:      pulumi.String("ap-guangzhou-6"),
    				ProjectId: pulumi.Float64(0),
    			},
    			ImageId: pulumi.String(myFavoriteImage.Images[0].ImageId),
    		})
    		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 myFavoriteImage = Tencentcloud.GetImages.Invoke(new()
        {
            ImageTypes = new[]
            {
                "PUBLIC_IMAGE",
            },
            ImageNameRegex = "Final",
        });
    
        var demo = new Tencentcloud.CvmLaunchTemplate("demo", new()
        {
            LaunchTemplateName = "test",
            Placement = new Tencentcloud.Inputs.CvmLaunchTemplatePlacementArgs
            {
                Zone = "ap-guangzhou-6",
                ProjectId = 0,
            },
            ImageId = myFavoriteImage.Apply(getImagesResult => getImagesResult.Images[0]?.ImageId),
        });
    
    });
    
    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.GetImagesArgs;
    import com.pulumi.tencentcloud.CvmLaunchTemplate;
    import com.pulumi.tencentcloud.CvmLaunchTemplateArgs;
    import com.pulumi.tencentcloud.inputs.CvmLaunchTemplatePlacementArgs;
    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 myFavoriteImage = TencentcloudFunctions.getImages(GetImagesArgs.builder()
                .imageTypes("PUBLIC_IMAGE")
                .imageNameRegex("Final")
                .build());
    
            var demo = new CvmLaunchTemplate("demo", CvmLaunchTemplateArgs.builder()
                .launchTemplateName("test")
                .placement(CvmLaunchTemplatePlacementArgs.builder()
                    .zone("ap-guangzhou-6")
                    .projectId(0)
                    .build())
                .imageId(myFavoriteImage.applyValue(getImagesResult -> getImagesResult.images()[0].imageId()))
                .build());
    
        }
    }
    
    resources:
      demo:
        type: tencentcloud:CvmLaunchTemplate
        properties:
          launchTemplateName: test
          placement:
            zone: ap-guangzhou-6
            projectId: 0
          imageId: ${myFavoriteImage.images[0].imageId}
    variables:
      myFavoriteImage:
        fn::invoke:
          function: tencentcloud:getImages
          arguments:
            imageTypes:
              - PUBLIC_IMAGE
            imageNameRegex: Final
    

    Create CvmLaunchTemplate Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new CvmLaunchTemplate(name: string, args: CvmLaunchTemplateArgs, opts?: CustomResourceOptions);
    @overload
    def CvmLaunchTemplate(resource_name: str,
                          args: CvmLaunchTemplateArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def CvmLaunchTemplate(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          image_id: Optional[str] = None,
                          placement: Optional[CvmLaunchTemplatePlacementArgs] = None,
                          launch_template_name: Optional[str] = None,
                          instance_count: Optional[float] = None,
                          instance_name: Optional[str] = None,
                          disable_api_termination: Optional[bool] = None,
                          disaster_recover_group_ids: Optional[Sequence[str]] = None,
                          dry_run: Optional[bool] = None,
                          enhanced_service: Optional[CvmLaunchTemplateEnhancedServiceArgs] = None,
                          host_name: Optional[str] = None,
                          hpc_cluster_id: Optional[str] = None,
                          cvm_launch_template_id: Optional[str] = None,
                          instance_charge_prepaid: Optional[CvmLaunchTemplateInstanceChargePrepaidArgs] = None,
                          instance_charge_type: Optional[str] = None,
                          action_timer: Optional[CvmLaunchTemplateActionTimerArgs] = None,
                          instance_market_options: Optional[CvmLaunchTemplateInstanceMarketOptionsArgs] = None,
                          data_disks: Optional[Sequence[CvmLaunchTemplateDataDiskArgs]] = None,
                          instance_type: Optional[str] = None,
                          internet_accessible: Optional[CvmLaunchTemplateInternetAccessibleArgs] = None,
                          client_token: Optional[str] = None,
                          launch_template_version_description: Optional[str] = None,
                          login_settings: Optional[CvmLaunchTemplateLoginSettingsArgs] = None,
                          cam_role_name: Optional[str] = None,
                          security_group_ids: Optional[Sequence[str]] = None,
                          system_disk: Optional[CvmLaunchTemplateSystemDiskArgs] = None,
                          tag_specifications: Optional[Sequence[CvmLaunchTemplateTagSpecificationArgs]] = None,
                          tags: Optional[Mapping[str, str]] = None,
                          user_data: Optional[str] = None,
                          virtual_private_cloud: Optional[CvmLaunchTemplateVirtualPrivateCloudArgs] = None)
    func NewCvmLaunchTemplate(ctx *Context, name string, args CvmLaunchTemplateArgs, opts ...ResourceOption) (*CvmLaunchTemplate, error)
    public CvmLaunchTemplate(string name, CvmLaunchTemplateArgs args, CustomResourceOptions? opts = null)
    public CvmLaunchTemplate(String name, CvmLaunchTemplateArgs args)
    public CvmLaunchTemplate(String name, CvmLaunchTemplateArgs args, CustomResourceOptions options)
    
    type: tencentcloud:CvmLaunchTemplate
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args CvmLaunchTemplateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args CvmLaunchTemplateArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args CvmLaunchTemplateArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CvmLaunchTemplateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CvmLaunchTemplateArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    CvmLaunchTemplate Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The CvmLaunchTemplate resource accepts the following input properties:

    ImageId string
    Image ID.
    LaunchTemplateName string
    The name of launch template.
    Placement CvmLaunchTemplatePlacement
    The location of instance.
    ActionTimer CvmLaunchTemplateActionTimer
    Timed task.
    CamRoleName string
    The role name of CAM.
    ClientToken string
    A string to used guarantee request idempotency.
    CvmLaunchTemplateId string
    ID of the resource.
    DataDisks List<CvmLaunchTemplateDataDisk>
    Data disk configuration information of the instance.
    DisableApiTermination bool
    Instance destruction protection flag.
    DisasterRecoverGroupIds List<string>
    The ID of disaster recover group.
    DryRun bool
    Whether to preflight only this request, true or false.
    EnhancedService CvmLaunchTemplateEnhancedService
    Enhanced service. If this parameter is not specified, cloud monitoring and cloud security services will be enabled by default in public images.
    HostName string
    The host name of CVM.
    HpcClusterId string
    The ID of HPC cluster.
    InstanceChargePrepaid CvmLaunchTemplateInstanceChargePrepaid
    The configuration of charge prepaid.
    InstanceChargeType string
    The charge type of instance. Default value: POSTPAID_BY_HOUR.
    InstanceCount double
    The number of instances purchased.
    InstanceMarketOptions CvmLaunchTemplateInstanceMarketOptions
    The marketplace options of instance.
    InstanceName string
    The name of instance. If you do not specify an instance display name, 'Unnamed' is displayed by default.
    InstanceType string
    The type of the instance. If this parameter is not specified, the system will dynamically specify the default model according to the resource sales in the current region.
    InternetAccessible CvmLaunchTemplateInternetAccessible
    The information settings of public network bandwidth. If you do not specify this parameter, the default Internet bandwidth is 0 Mbps.
    LaunchTemplateVersionDescription string
    Instance launch template version description.
    LoginSettings CvmLaunchTemplateLoginSettings
    The login settings of instance. By default, passwords are randomly generated and notified to users via internal messages.
    SecurityGroupIds List<string>
    The security group ID of instance. If this parameter is not specified, the default security group is bound.
    SystemDisk CvmLaunchTemplateSystemDisk
    System disk configuration information of the instance. If this parameter is not specified, it is assigned according to the system default.
    TagSpecifications List<CvmLaunchTemplateTagSpecification>
    Tag description list.
    Tags Dictionary<string, string>
    Tag description list.
    UserData string
    The data of users.
    VirtualPrivateCloud CvmLaunchTemplateVirtualPrivateCloud
    The configuration information of VPC. If this parameter is not specified, the basic network is used by default.
    ImageId string
    Image ID.
    LaunchTemplateName string
    The name of launch template.
    Placement CvmLaunchTemplatePlacementArgs
    The location of instance.
    ActionTimer CvmLaunchTemplateActionTimerArgs
    Timed task.
    CamRoleName string
    The role name of CAM.
    ClientToken string
    A string to used guarantee request idempotency.
    CvmLaunchTemplateId string
    ID of the resource.
    DataDisks []CvmLaunchTemplateDataDiskArgs
    Data disk configuration information of the instance.
    DisableApiTermination bool
    Instance destruction protection flag.
    DisasterRecoverGroupIds []string
    The ID of disaster recover group.
    DryRun bool
    Whether to preflight only this request, true or false.
    EnhancedService CvmLaunchTemplateEnhancedServiceArgs
    Enhanced service. If this parameter is not specified, cloud monitoring and cloud security services will be enabled by default in public images.
    HostName string
    The host name of CVM.
    HpcClusterId string
    The ID of HPC cluster.
    InstanceChargePrepaid CvmLaunchTemplateInstanceChargePrepaidArgs
    The configuration of charge prepaid.
    InstanceChargeType string
    The charge type of instance. Default value: POSTPAID_BY_HOUR.
    InstanceCount float64
    The number of instances purchased.
    InstanceMarketOptions CvmLaunchTemplateInstanceMarketOptionsArgs
    The marketplace options of instance.
    InstanceName string
    The name of instance. If you do not specify an instance display name, 'Unnamed' is displayed by default.
    InstanceType string
    The type of the instance. If this parameter is not specified, the system will dynamically specify the default model according to the resource sales in the current region.
    InternetAccessible CvmLaunchTemplateInternetAccessibleArgs
    The information settings of public network bandwidth. If you do not specify this parameter, the default Internet bandwidth is 0 Mbps.
    LaunchTemplateVersionDescription string
    Instance launch template version description.
    LoginSettings CvmLaunchTemplateLoginSettingsArgs
    The login settings of instance. By default, passwords are randomly generated and notified to users via internal messages.
    SecurityGroupIds []string
    The security group ID of instance. If this parameter is not specified, the default security group is bound.
    SystemDisk CvmLaunchTemplateSystemDiskArgs
    System disk configuration information of the instance. If this parameter is not specified, it is assigned according to the system default.
    TagSpecifications []CvmLaunchTemplateTagSpecificationArgs
    Tag description list.
    Tags map[string]string
    Tag description list.
    UserData string
    The data of users.
    VirtualPrivateCloud CvmLaunchTemplateVirtualPrivateCloudArgs
    The configuration information of VPC. If this parameter is not specified, the basic network is used by default.
    imageId String
    Image ID.
    launchTemplateName String
    The name of launch template.
    placement CvmLaunchTemplatePlacement
    The location of instance.
    actionTimer CvmLaunchTemplateActionTimer
    Timed task.
    camRoleName String
    The role name of CAM.
    clientToken String
    A string to used guarantee request idempotency.
    cvmLaunchTemplateId String
    ID of the resource.
    dataDisks List<CvmLaunchTemplateDataDisk>
    Data disk configuration information of the instance.
    disableApiTermination Boolean
    Instance destruction protection flag.
    disasterRecoverGroupIds List<String>
    The ID of disaster recover group.
    dryRun Boolean
    Whether to preflight only this request, true or false.
    enhancedService CvmLaunchTemplateEnhancedService
    Enhanced service. If this parameter is not specified, cloud monitoring and cloud security services will be enabled by default in public images.
    hostName String
    The host name of CVM.
    hpcClusterId String
    The ID of HPC cluster.
    instanceChargePrepaid CvmLaunchTemplateInstanceChargePrepaid
    The configuration of charge prepaid.
    instanceChargeType String
    The charge type of instance. Default value: POSTPAID_BY_HOUR.
    instanceCount Double
    The number of instances purchased.
    instanceMarketOptions CvmLaunchTemplateInstanceMarketOptions
    The marketplace options of instance.
    instanceName String
    The name of instance. If you do not specify an instance display name, 'Unnamed' is displayed by default.
    instanceType String
    The type of the instance. If this parameter is not specified, the system will dynamically specify the default model according to the resource sales in the current region.
    internetAccessible CvmLaunchTemplateInternetAccessible
    The information settings of public network bandwidth. If you do not specify this parameter, the default Internet bandwidth is 0 Mbps.
    launchTemplateVersionDescription String
    Instance launch template version description.
    loginSettings CvmLaunchTemplateLoginSettings
    The login settings of instance. By default, passwords are randomly generated and notified to users via internal messages.
    securityGroupIds List<String>
    The security group ID of instance. If this parameter is not specified, the default security group is bound.
    systemDisk CvmLaunchTemplateSystemDisk
    System disk configuration information of the instance. If this parameter is not specified, it is assigned according to the system default.
    tagSpecifications List<CvmLaunchTemplateTagSpecification>
    Tag description list.
    tags Map<String,String>
    Tag description list.
    userData String
    The data of users.
    virtualPrivateCloud CvmLaunchTemplateVirtualPrivateCloud
    The configuration information of VPC. If this parameter is not specified, the basic network is used by default.
    imageId string
    Image ID.
    launchTemplateName string
    The name of launch template.
    placement CvmLaunchTemplatePlacement
    The location of instance.
    actionTimer CvmLaunchTemplateActionTimer
    Timed task.
    camRoleName string
    The role name of CAM.
    clientToken string
    A string to used guarantee request idempotency.
    cvmLaunchTemplateId string
    ID of the resource.
    dataDisks CvmLaunchTemplateDataDisk[]
    Data disk configuration information of the instance.
    disableApiTermination boolean
    Instance destruction protection flag.
    disasterRecoverGroupIds string[]
    The ID of disaster recover group.
    dryRun boolean
    Whether to preflight only this request, true or false.
    enhancedService CvmLaunchTemplateEnhancedService
    Enhanced service. If this parameter is not specified, cloud monitoring and cloud security services will be enabled by default in public images.
    hostName string
    The host name of CVM.
    hpcClusterId string
    The ID of HPC cluster.
    instanceChargePrepaid CvmLaunchTemplateInstanceChargePrepaid
    The configuration of charge prepaid.
    instanceChargeType string
    The charge type of instance. Default value: POSTPAID_BY_HOUR.
    instanceCount number
    The number of instances purchased.
    instanceMarketOptions CvmLaunchTemplateInstanceMarketOptions
    The marketplace options of instance.
    instanceName string
    The name of instance. If you do not specify an instance display name, 'Unnamed' is displayed by default.
    instanceType string
    The type of the instance. If this parameter is not specified, the system will dynamically specify the default model according to the resource sales in the current region.
    internetAccessible CvmLaunchTemplateInternetAccessible
    The information settings of public network bandwidth. If you do not specify this parameter, the default Internet bandwidth is 0 Mbps.
    launchTemplateVersionDescription string
    Instance launch template version description.
    loginSettings CvmLaunchTemplateLoginSettings
    The login settings of instance. By default, passwords are randomly generated and notified to users via internal messages.
    securityGroupIds string[]
    The security group ID of instance. If this parameter is not specified, the default security group is bound.
    systemDisk CvmLaunchTemplateSystemDisk
    System disk configuration information of the instance. If this parameter is not specified, it is assigned according to the system default.
    tagSpecifications CvmLaunchTemplateTagSpecification[]
    Tag description list.
    tags {[key: string]: string}
    Tag description list.
    userData string
    The data of users.
    virtualPrivateCloud CvmLaunchTemplateVirtualPrivateCloud
    The configuration information of VPC. If this parameter is not specified, the basic network is used by default.
    image_id str
    Image ID.
    launch_template_name str
    The name of launch template.
    placement CvmLaunchTemplatePlacementArgs
    The location of instance.
    action_timer CvmLaunchTemplateActionTimerArgs
    Timed task.
    cam_role_name str
    The role name of CAM.
    client_token str
    A string to used guarantee request idempotency.
    cvm_launch_template_id str
    ID of the resource.
    data_disks Sequence[CvmLaunchTemplateDataDiskArgs]
    Data disk configuration information of the instance.
    disable_api_termination bool
    Instance destruction protection flag.
    disaster_recover_group_ids Sequence[str]
    The ID of disaster recover group.
    dry_run bool
    Whether to preflight only this request, true or false.
    enhanced_service CvmLaunchTemplateEnhancedServiceArgs
    Enhanced service. If this parameter is not specified, cloud monitoring and cloud security services will be enabled by default in public images.
    host_name str
    The host name of CVM.
    hpc_cluster_id str
    The ID of HPC cluster.
    instance_charge_prepaid CvmLaunchTemplateInstanceChargePrepaidArgs
    The configuration of charge prepaid.
    instance_charge_type str
    The charge type of instance. Default value: POSTPAID_BY_HOUR.
    instance_count float
    The number of instances purchased.
    instance_market_options CvmLaunchTemplateInstanceMarketOptionsArgs
    The marketplace options of instance.
    instance_name str
    The name of instance. If you do not specify an instance display name, 'Unnamed' is displayed by default.
    instance_type str
    The type of the instance. If this parameter is not specified, the system will dynamically specify the default model according to the resource sales in the current region.
    internet_accessible CvmLaunchTemplateInternetAccessibleArgs
    The information settings of public network bandwidth. If you do not specify this parameter, the default Internet bandwidth is 0 Mbps.
    launch_template_version_description str
    Instance launch template version description.
    login_settings CvmLaunchTemplateLoginSettingsArgs
    The login settings of instance. By default, passwords are randomly generated and notified to users via internal messages.
    security_group_ids Sequence[str]
    The security group ID of instance. If this parameter is not specified, the default security group is bound.
    system_disk CvmLaunchTemplateSystemDiskArgs
    System disk configuration information of the instance. If this parameter is not specified, it is assigned according to the system default.
    tag_specifications Sequence[CvmLaunchTemplateTagSpecificationArgs]
    Tag description list.
    tags Mapping[str, str]
    Tag description list.
    user_data str
    The data of users.
    virtual_private_cloud CvmLaunchTemplateVirtualPrivateCloudArgs
    The configuration information of VPC. If this parameter is not specified, the basic network is used by default.
    imageId String
    Image ID.
    launchTemplateName String
    The name of launch template.
    placement Property Map
    The location of instance.
    actionTimer Property Map
    Timed task.
    camRoleName String
    The role name of CAM.
    clientToken String
    A string to used guarantee request idempotency.
    cvmLaunchTemplateId String
    ID of the resource.
    dataDisks List<Property Map>
    Data disk configuration information of the instance.
    disableApiTermination Boolean
    Instance destruction protection flag.
    disasterRecoverGroupIds List<String>
    The ID of disaster recover group.
    dryRun Boolean
    Whether to preflight only this request, true or false.
    enhancedService Property Map
    Enhanced service. If this parameter is not specified, cloud monitoring and cloud security services will be enabled by default in public images.
    hostName String
    The host name of CVM.
    hpcClusterId String
    The ID of HPC cluster.
    instanceChargePrepaid Property Map
    The configuration of charge prepaid.
    instanceChargeType String
    The charge type of instance. Default value: POSTPAID_BY_HOUR.
    instanceCount Number
    The number of instances purchased.
    instanceMarketOptions Property Map
    The marketplace options of instance.
    instanceName String
    The name of instance. If you do not specify an instance display name, 'Unnamed' is displayed by default.
    instanceType String
    The type of the instance. If this parameter is not specified, the system will dynamically specify the default model according to the resource sales in the current region.
    internetAccessible Property Map
    The information settings of public network bandwidth. If you do not specify this parameter, the default Internet bandwidth is 0 Mbps.
    launchTemplateVersionDescription String
    Instance launch template version description.
    loginSettings Property Map
    The login settings of instance. By default, passwords are randomly generated and notified to users via internal messages.
    securityGroupIds List<String>
    The security group ID of instance. If this parameter is not specified, the default security group is bound.
    systemDisk Property Map
    System disk configuration information of the instance. If this parameter is not specified, it is assigned according to the system default.
    tagSpecifications List<Property Map>
    Tag description list.
    tags Map<String>
    Tag description list.
    userData String
    The data of users.
    virtualPrivateCloud Property Map
    The configuration information of VPC. If this parameter is not specified, the basic network is used by default.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the CvmLaunchTemplate resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing CvmLaunchTemplate Resource

    Get an existing CvmLaunchTemplate resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: CvmLaunchTemplateState, opts?: CustomResourceOptions): CvmLaunchTemplate
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            action_timer: Optional[CvmLaunchTemplateActionTimerArgs] = None,
            cam_role_name: Optional[str] = None,
            client_token: Optional[str] = None,
            cvm_launch_template_id: Optional[str] = None,
            data_disks: Optional[Sequence[CvmLaunchTemplateDataDiskArgs]] = None,
            disable_api_termination: Optional[bool] = None,
            disaster_recover_group_ids: Optional[Sequence[str]] = None,
            dry_run: Optional[bool] = None,
            enhanced_service: Optional[CvmLaunchTemplateEnhancedServiceArgs] = None,
            host_name: Optional[str] = None,
            hpc_cluster_id: Optional[str] = None,
            image_id: Optional[str] = None,
            instance_charge_prepaid: Optional[CvmLaunchTemplateInstanceChargePrepaidArgs] = None,
            instance_charge_type: Optional[str] = None,
            instance_count: Optional[float] = None,
            instance_market_options: Optional[CvmLaunchTemplateInstanceMarketOptionsArgs] = None,
            instance_name: Optional[str] = None,
            instance_type: Optional[str] = None,
            internet_accessible: Optional[CvmLaunchTemplateInternetAccessibleArgs] = None,
            launch_template_name: Optional[str] = None,
            launch_template_version_description: Optional[str] = None,
            login_settings: Optional[CvmLaunchTemplateLoginSettingsArgs] = None,
            placement: Optional[CvmLaunchTemplatePlacementArgs] = None,
            security_group_ids: Optional[Sequence[str]] = None,
            system_disk: Optional[CvmLaunchTemplateSystemDiskArgs] = None,
            tag_specifications: Optional[Sequence[CvmLaunchTemplateTagSpecificationArgs]] = None,
            tags: Optional[Mapping[str, str]] = None,
            user_data: Optional[str] = None,
            virtual_private_cloud: Optional[CvmLaunchTemplateVirtualPrivateCloudArgs] = None) -> CvmLaunchTemplate
    func GetCvmLaunchTemplate(ctx *Context, name string, id IDInput, state *CvmLaunchTemplateState, opts ...ResourceOption) (*CvmLaunchTemplate, error)
    public static CvmLaunchTemplate Get(string name, Input<string> id, CvmLaunchTemplateState? state, CustomResourceOptions? opts = null)
    public static CvmLaunchTemplate get(String name, Output<String> id, CvmLaunchTemplateState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:CvmLaunchTemplate    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    ActionTimer CvmLaunchTemplateActionTimer
    Timed task.
    CamRoleName string
    The role name of CAM.
    ClientToken string
    A string to used guarantee request idempotency.
    CvmLaunchTemplateId string
    ID of the resource.
    DataDisks List<CvmLaunchTemplateDataDisk>
    Data disk configuration information of the instance.
    DisableApiTermination bool
    Instance destruction protection flag.
    DisasterRecoverGroupIds List<string>
    The ID of disaster recover group.
    DryRun bool
    Whether to preflight only this request, true or false.
    EnhancedService CvmLaunchTemplateEnhancedService
    Enhanced service. If this parameter is not specified, cloud monitoring and cloud security services will be enabled by default in public images.
    HostName string
    The host name of CVM.
    HpcClusterId string
    The ID of HPC cluster.
    ImageId string
    Image ID.
    InstanceChargePrepaid CvmLaunchTemplateInstanceChargePrepaid
    The configuration of charge prepaid.
    InstanceChargeType string
    The charge type of instance. Default value: POSTPAID_BY_HOUR.
    InstanceCount double
    The number of instances purchased.
    InstanceMarketOptions CvmLaunchTemplateInstanceMarketOptions
    The marketplace options of instance.
    InstanceName string
    The name of instance. If you do not specify an instance display name, 'Unnamed' is displayed by default.
    InstanceType string
    The type of the instance. If this parameter is not specified, the system will dynamically specify the default model according to the resource sales in the current region.
    InternetAccessible CvmLaunchTemplateInternetAccessible
    The information settings of public network bandwidth. If you do not specify this parameter, the default Internet bandwidth is 0 Mbps.
    LaunchTemplateName string
    The name of launch template.
    LaunchTemplateVersionDescription string
    Instance launch template version description.
    LoginSettings CvmLaunchTemplateLoginSettings
    The login settings of instance. By default, passwords are randomly generated and notified to users via internal messages.
    Placement CvmLaunchTemplatePlacement
    The location of instance.
    SecurityGroupIds List<string>
    The security group ID of instance. If this parameter is not specified, the default security group is bound.
    SystemDisk CvmLaunchTemplateSystemDisk
    System disk configuration information of the instance. If this parameter is not specified, it is assigned according to the system default.
    TagSpecifications List<CvmLaunchTemplateTagSpecification>
    Tag description list.
    Tags Dictionary<string, string>
    Tag description list.
    UserData string
    The data of users.
    VirtualPrivateCloud CvmLaunchTemplateVirtualPrivateCloud
    The configuration information of VPC. If this parameter is not specified, the basic network is used by default.
    ActionTimer CvmLaunchTemplateActionTimerArgs
    Timed task.
    CamRoleName string
    The role name of CAM.
    ClientToken string
    A string to used guarantee request idempotency.
    CvmLaunchTemplateId string
    ID of the resource.
    DataDisks []CvmLaunchTemplateDataDiskArgs
    Data disk configuration information of the instance.
    DisableApiTermination bool
    Instance destruction protection flag.
    DisasterRecoverGroupIds []string
    The ID of disaster recover group.
    DryRun bool
    Whether to preflight only this request, true or false.
    EnhancedService CvmLaunchTemplateEnhancedServiceArgs
    Enhanced service. If this parameter is not specified, cloud monitoring and cloud security services will be enabled by default in public images.
    HostName string
    The host name of CVM.
    HpcClusterId string
    The ID of HPC cluster.
    ImageId string
    Image ID.
    InstanceChargePrepaid CvmLaunchTemplateInstanceChargePrepaidArgs
    The configuration of charge prepaid.
    InstanceChargeType string
    The charge type of instance. Default value: POSTPAID_BY_HOUR.
    InstanceCount float64
    The number of instances purchased.
    InstanceMarketOptions CvmLaunchTemplateInstanceMarketOptionsArgs
    The marketplace options of instance.
    InstanceName string
    The name of instance. If you do not specify an instance display name, 'Unnamed' is displayed by default.
    InstanceType string
    The type of the instance. If this parameter is not specified, the system will dynamically specify the default model according to the resource sales in the current region.
    InternetAccessible CvmLaunchTemplateInternetAccessibleArgs
    The information settings of public network bandwidth. If you do not specify this parameter, the default Internet bandwidth is 0 Mbps.
    LaunchTemplateName string
    The name of launch template.
    LaunchTemplateVersionDescription string
    Instance launch template version description.
    LoginSettings CvmLaunchTemplateLoginSettingsArgs
    The login settings of instance. By default, passwords are randomly generated and notified to users via internal messages.
    Placement CvmLaunchTemplatePlacementArgs
    The location of instance.
    SecurityGroupIds []string
    The security group ID of instance. If this parameter is not specified, the default security group is bound.
    SystemDisk CvmLaunchTemplateSystemDiskArgs
    System disk configuration information of the instance. If this parameter is not specified, it is assigned according to the system default.
    TagSpecifications []CvmLaunchTemplateTagSpecificationArgs
    Tag description list.
    Tags map[string]string
    Tag description list.
    UserData string
    The data of users.
    VirtualPrivateCloud CvmLaunchTemplateVirtualPrivateCloudArgs
    The configuration information of VPC. If this parameter is not specified, the basic network is used by default.
    actionTimer CvmLaunchTemplateActionTimer
    Timed task.
    camRoleName String
    The role name of CAM.
    clientToken String
    A string to used guarantee request idempotency.
    cvmLaunchTemplateId String
    ID of the resource.
    dataDisks List<CvmLaunchTemplateDataDisk>
    Data disk configuration information of the instance.
    disableApiTermination Boolean
    Instance destruction protection flag.
    disasterRecoverGroupIds List<String>
    The ID of disaster recover group.
    dryRun Boolean
    Whether to preflight only this request, true or false.
    enhancedService CvmLaunchTemplateEnhancedService
    Enhanced service. If this parameter is not specified, cloud monitoring and cloud security services will be enabled by default in public images.
    hostName String
    The host name of CVM.
    hpcClusterId String
    The ID of HPC cluster.
    imageId String
    Image ID.
    instanceChargePrepaid CvmLaunchTemplateInstanceChargePrepaid
    The configuration of charge prepaid.
    instanceChargeType String
    The charge type of instance. Default value: POSTPAID_BY_HOUR.
    instanceCount Double
    The number of instances purchased.
    instanceMarketOptions CvmLaunchTemplateInstanceMarketOptions
    The marketplace options of instance.
    instanceName String
    The name of instance. If you do not specify an instance display name, 'Unnamed' is displayed by default.
    instanceType String
    The type of the instance. If this parameter is not specified, the system will dynamically specify the default model according to the resource sales in the current region.
    internetAccessible CvmLaunchTemplateInternetAccessible
    The information settings of public network bandwidth. If you do not specify this parameter, the default Internet bandwidth is 0 Mbps.
    launchTemplateName String
    The name of launch template.
    launchTemplateVersionDescription String
    Instance launch template version description.
    loginSettings CvmLaunchTemplateLoginSettings
    The login settings of instance. By default, passwords are randomly generated and notified to users via internal messages.
    placement CvmLaunchTemplatePlacement
    The location of instance.
    securityGroupIds List<String>
    The security group ID of instance. If this parameter is not specified, the default security group is bound.
    systemDisk CvmLaunchTemplateSystemDisk
    System disk configuration information of the instance. If this parameter is not specified, it is assigned according to the system default.
    tagSpecifications List<CvmLaunchTemplateTagSpecification>
    Tag description list.
    tags Map<String,String>
    Tag description list.
    userData String
    The data of users.
    virtualPrivateCloud CvmLaunchTemplateVirtualPrivateCloud
    The configuration information of VPC. If this parameter is not specified, the basic network is used by default.
    actionTimer CvmLaunchTemplateActionTimer
    Timed task.
    camRoleName string
    The role name of CAM.
    clientToken string
    A string to used guarantee request idempotency.
    cvmLaunchTemplateId string
    ID of the resource.
    dataDisks CvmLaunchTemplateDataDisk[]
    Data disk configuration information of the instance.
    disableApiTermination boolean
    Instance destruction protection flag.
    disasterRecoverGroupIds string[]
    The ID of disaster recover group.
    dryRun boolean
    Whether to preflight only this request, true or false.
    enhancedService CvmLaunchTemplateEnhancedService
    Enhanced service. If this parameter is not specified, cloud monitoring and cloud security services will be enabled by default in public images.
    hostName string
    The host name of CVM.
    hpcClusterId string
    The ID of HPC cluster.
    imageId string
    Image ID.
    instanceChargePrepaid CvmLaunchTemplateInstanceChargePrepaid
    The configuration of charge prepaid.
    instanceChargeType string
    The charge type of instance. Default value: POSTPAID_BY_HOUR.
    instanceCount number
    The number of instances purchased.
    instanceMarketOptions CvmLaunchTemplateInstanceMarketOptions
    The marketplace options of instance.
    instanceName string
    The name of instance. If you do not specify an instance display name, 'Unnamed' is displayed by default.
    instanceType string
    The type of the instance. If this parameter is not specified, the system will dynamically specify the default model according to the resource sales in the current region.
    internetAccessible CvmLaunchTemplateInternetAccessible
    The information settings of public network bandwidth. If you do not specify this parameter, the default Internet bandwidth is 0 Mbps.
    launchTemplateName string
    The name of launch template.
    launchTemplateVersionDescription string
    Instance launch template version description.
    loginSettings CvmLaunchTemplateLoginSettings
    The login settings of instance. By default, passwords are randomly generated and notified to users via internal messages.
    placement CvmLaunchTemplatePlacement
    The location of instance.
    securityGroupIds string[]
    The security group ID of instance. If this parameter is not specified, the default security group is bound.
    systemDisk CvmLaunchTemplateSystemDisk
    System disk configuration information of the instance. If this parameter is not specified, it is assigned according to the system default.
    tagSpecifications CvmLaunchTemplateTagSpecification[]
    Tag description list.
    tags {[key: string]: string}
    Tag description list.
    userData string
    The data of users.
    virtualPrivateCloud CvmLaunchTemplateVirtualPrivateCloud
    The configuration information of VPC. If this parameter is not specified, the basic network is used by default.
    action_timer CvmLaunchTemplateActionTimerArgs
    Timed task.
    cam_role_name str
    The role name of CAM.
    client_token str
    A string to used guarantee request idempotency.
    cvm_launch_template_id str
    ID of the resource.
    data_disks Sequence[CvmLaunchTemplateDataDiskArgs]
    Data disk configuration information of the instance.
    disable_api_termination bool
    Instance destruction protection flag.
    disaster_recover_group_ids Sequence[str]
    The ID of disaster recover group.
    dry_run bool
    Whether to preflight only this request, true or false.
    enhanced_service CvmLaunchTemplateEnhancedServiceArgs
    Enhanced service. If this parameter is not specified, cloud monitoring and cloud security services will be enabled by default in public images.
    host_name str
    The host name of CVM.
    hpc_cluster_id str
    The ID of HPC cluster.
    image_id str
    Image ID.
    instance_charge_prepaid CvmLaunchTemplateInstanceChargePrepaidArgs
    The configuration of charge prepaid.
    instance_charge_type str
    The charge type of instance. Default value: POSTPAID_BY_HOUR.
    instance_count float
    The number of instances purchased.
    instance_market_options CvmLaunchTemplateInstanceMarketOptionsArgs
    The marketplace options of instance.
    instance_name str
    The name of instance. If you do not specify an instance display name, 'Unnamed' is displayed by default.
    instance_type str
    The type of the instance. If this parameter is not specified, the system will dynamically specify the default model according to the resource sales in the current region.
    internet_accessible CvmLaunchTemplateInternetAccessibleArgs
    The information settings of public network bandwidth. If you do not specify this parameter, the default Internet bandwidth is 0 Mbps.
    launch_template_name str
    The name of launch template.
    launch_template_version_description str
    Instance launch template version description.
    login_settings CvmLaunchTemplateLoginSettingsArgs
    The login settings of instance. By default, passwords are randomly generated and notified to users via internal messages.
    placement CvmLaunchTemplatePlacementArgs
    The location of instance.
    security_group_ids Sequence[str]
    The security group ID of instance. If this parameter is not specified, the default security group is bound.
    system_disk CvmLaunchTemplateSystemDiskArgs
    System disk configuration information of the instance. If this parameter is not specified, it is assigned according to the system default.
    tag_specifications Sequence[CvmLaunchTemplateTagSpecificationArgs]
    Tag description list.
    tags Mapping[str, str]
    Tag description list.
    user_data str
    The data of users.
    virtual_private_cloud CvmLaunchTemplateVirtualPrivateCloudArgs
    The configuration information of VPC. If this parameter is not specified, the basic network is used by default.
    actionTimer Property Map
    Timed task.
    camRoleName String
    The role name of CAM.
    clientToken String
    A string to used guarantee request idempotency.
    cvmLaunchTemplateId String
    ID of the resource.
    dataDisks List<Property Map>
    Data disk configuration information of the instance.
    disableApiTermination Boolean
    Instance destruction protection flag.
    disasterRecoverGroupIds List<String>
    The ID of disaster recover group.
    dryRun Boolean
    Whether to preflight only this request, true or false.
    enhancedService Property Map
    Enhanced service. If this parameter is not specified, cloud monitoring and cloud security services will be enabled by default in public images.
    hostName String
    The host name of CVM.
    hpcClusterId String
    The ID of HPC cluster.
    imageId String
    Image ID.
    instanceChargePrepaid Property Map
    The configuration of charge prepaid.
    instanceChargeType String
    The charge type of instance. Default value: POSTPAID_BY_HOUR.
    instanceCount Number
    The number of instances purchased.
    instanceMarketOptions Property Map
    The marketplace options of instance.
    instanceName String
    The name of instance. If you do not specify an instance display name, 'Unnamed' is displayed by default.
    instanceType String
    The type of the instance. If this parameter is not specified, the system will dynamically specify the default model according to the resource sales in the current region.
    internetAccessible Property Map
    The information settings of public network bandwidth. If you do not specify this parameter, the default Internet bandwidth is 0 Mbps.
    launchTemplateName String
    The name of launch template.
    launchTemplateVersionDescription String
    Instance launch template version description.
    loginSettings Property Map
    The login settings of instance. By default, passwords are randomly generated and notified to users via internal messages.
    placement Property Map
    The location of instance.
    securityGroupIds List<String>
    The security group ID of instance. If this parameter is not specified, the default security group is bound.
    systemDisk Property Map
    System disk configuration information of the instance. If this parameter is not specified, it is assigned according to the system default.
    tagSpecifications List<Property Map>
    Tag description list.
    tags Map<String>
    Tag description list.
    userData String
    The data of users.
    virtualPrivateCloud Property Map
    The configuration information of VPC. If this parameter is not specified, the basic network is used by default.

    Supporting Types

    CvmLaunchTemplateActionTimer, CvmLaunchTemplateActionTimerArgs

    ActionTime string
    Execution time.
    Externals CvmLaunchTemplateActionTimerExternals
    Extended data.
    TimerAction string
    Timer name.
    ActionTime string
    Execution time.
    Externals CvmLaunchTemplateActionTimerExternals
    Extended data.
    TimerAction string
    Timer name.
    actionTime String
    Execution time.
    externals CvmLaunchTemplateActionTimerExternals
    Extended data.
    timerAction String
    Timer name.
    actionTime string
    Execution time.
    externals CvmLaunchTemplateActionTimerExternals
    Extended data.
    timerAction string
    Timer name.
    action_time str
    Execution time.
    externals CvmLaunchTemplateActionTimerExternals
    Extended data.
    timer_action str
    Timer name.
    actionTime String
    Execution time.
    externals Property Map
    Extended data.
    timerAction String
    Timer name.

    CvmLaunchTemplateActionTimerExternals, CvmLaunchTemplateActionTimerExternalsArgs

    ReleaseAddress bool
    Release address.
    StorageBlockAttr CvmLaunchTemplateActionTimerExternalsStorageBlockAttr
    HDD local storage attributes.
    UnsupportNetworks List<string>
    Unsupported network type.
    ReleaseAddress bool
    Release address.
    StorageBlockAttr CvmLaunchTemplateActionTimerExternalsStorageBlockAttr
    HDD local storage attributes.
    UnsupportNetworks []string
    Unsupported network type.
    releaseAddress Boolean
    Release address.
    storageBlockAttr CvmLaunchTemplateActionTimerExternalsStorageBlockAttr
    HDD local storage attributes.
    unsupportNetworks List<String>
    Unsupported network type.
    releaseAddress boolean
    Release address.
    storageBlockAttr CvmLaunchTemplateActionTimerExternalsStorageBlockAttr
    HDD local storage attributes.
    unsupportNetworks string[]
    Unsupported network type.
    release_address bool
    Release address.
    storage_block_attr CvmLaunchTemplateActionTimerExternalsStorageBlockAttr
    HDD local storage attributes.
    unsupport_networks Sequence[str]
    Unsupported network type.
    releaseAddress Boolean
    Release address.
    storageBlockAttr Property Map
    HDD local storage attributes.
    unsupportNetworks List<String>
    Unsupported network type.

    CvmLaunchTemplateActionTimerExternalsStorageBlockAttr, CvmLaunchTemplateActionTimerExternalsStorageBlockAttrArgs

    MaxSize double
    The maximum capacity of HDD local storage.
    MinSize double
    The minimum capacity of HDD local storage.
    Type string
    The type of HDD local storage.
    MaxSize float64
    The maximum capacity of HDD local storage.
    MinSize float64
    The minimum capacity of HDD local storage.
    Type string
    The type of HDD local storage.
    maxSize Double
    The maximum capacity of HDD local storage.
    minSize Double
    The minimum capacity of HDD local storage.
    type String
    The type of HDD local storage.
    maxSize number
    The maximum capacity of HDD local storage.
    minSize number
    The minimum capacity of HDD local storage.
    type string
    The type of HDD local storage.
    max_size float
    The maximum capacity of HDD local storage.
    min_size float
    The minimum capacity of HDD local storage.
    type str
    The type of HDD local storage.
    maxSize Number
    The maximum capacity of HDD local storage.
    minSize Number
    The minimum capacity of HDD local storage.
    type String
    The type of HDD local storage.

    CvmLaunchTemplateDataDisk, CvmLaunchTemplateDataDiskArgs

    DiskSize double
    The size of the data disk.
    CdcId string
    Cloud Dedicated Cluster(CDC) ID.
    DeleteWithInstance bool
    Whether the data disk is destroyed along with the instance, true or false.
    DiskId string
    Data disk ID.
    DiskType string
    The type of data disk.
    Encrypt bool
    Whether the data disk is encrypted, TRUE or FALSE.
    KmsKeyId string
    The id of custom CMK.
    SnapshotId string
    Data disk snapshot ID.
    ThroughputPerformance double
    Cloud disk performance, MB/s.
    DiskSize float64
    The size of the data disk.
    CdcId string
    Cloud Dedicated Cluster(CDC) ID.
    DeleteWithInstance bool
    Whether the data disk is destroyed along with the instance, true or false.
    DiskId string
    Data disk ID.
    DiskType string
    The type of data disk.
    Encrypt bool
    Whether the data disk is encrypted, TRUE or FALSE.
    KmsKeyId string
    The id of custom CMK.
    SnapshotId string
    Data disk snapshot ID.
    ThroughputPerformance float64
    Cloud disk performance, MB/s.
    diskSize Double
    The size of the data disk.
    cdcId String
    Cloud Dedicated Cluster(CDC) ID.
    deleteWithInstance Boolean
    Whether the data disk is destroyed along with the instance, true or false.
    diskId String
    Data disk ID.
    diskType String
    The type of data disk.
    encrypt Boolean
    Whether the data disk is encrypted, TRUE or FALSE.
    kmsKeyId String
    The id of custom CMK.
    snapshotId String
    Data disk snapshot ID.
    throughputPerformance Double
    Cloud disk performance, MB/s.
    diskSize number
    The size of the data disk.
    cdcId string
    Cloud Dedicated Cluster(CDC) ID.
    deleteWithInstance boolean
    Whether the data disk is destroyed along with the instance, true or false.
    diskId string
    Data disk ID.
    diskType string
    The type of data disk.
    encrypt boolean
    Whether the data disk is encrypted, TRUE or FALSE.
    kmsKeyId string
    The id of custom CMK.
    snapshotId string
    Data disk snapshot ID.
    throughputPerformance number
    Cloud disk performance, MB/s.
    disk_size float
    The size of the data disk.
    cdc_id str
    Cloud Dedicated Cluster(CDC) ID.
    delete_with_instance bool
    Whether the data disk is destroyed along with the instance, true or false.
    disk_id str
    Data disk ID.
    disk_type str
    The type of data disk.
    encrypt bool
    Whether the data disk is encrypted, TRUE or FALSE.
    kms_key_id str
    The id of custom CMK.
    snapshot_id str
    Data disk snapshot ID.
    throughput_performance float
    Cloud disk performance, MB/s.
    diskSize Number
    The size of the data disk.
    cdcId String
    Cloud Dedicated Cluster(CDC) ID.
    deleteWithInstance Boolean
    Whether the data disk is destroyed along with the instance, true or false.
    diskId String
    Data disk ID.
    diskType String
    The type of data disk.
    encrypt Boolean
    Whether the data disk is encrypted, TRUE or FALSE.
    kmsKeyId String
    The id of custom CMK.
    snapshotId String
    Data disk snapshot ID.
    throughputPerformance Number
    Cloud disk performance, MB/s.

    CvmLaunchTemplateEnhancedService, CvmLaunchTemplateEnhancedServiceArgs

    automationService Property Map
    Enable TencentCloud Automation Tools(TAT).
    monitorService Property Map
    Enable cloud monitor service.
    securityService Property Map
    Enable cloud security service.

    CvmLaunchTemplateEnhancedServiceAutomationService, CvmLaunchTemplateEnhancedServiceAutomationServiceArgs

    Enabled bool
    Whether to enable TencentCloud Automation Tools(TAT), TRUE or FALSE.
    Enabled bool
    Whether to enable TencentCloud Automation Tools(TAT), TRUE or FALSE.
    enabled Boolean
    Whether to enable TencentCloud Automation Tools(TAT), TRUE or FALSE.
    enabled boolean
    Whether to enable TencentCloud Automation Tools(TAT), TRUE or FALSE.
    enabled bool
    Whether to enable TencentCloud Automation Tools(TAT), TRUE or FALSE.
    enabled Boolean
    Whether to enable TencentCloud Automation Tools(TAT), TRUE or FALSE.

    CvmLaunchTemplateEnhancedServiceMonitorService, CvmLaunchTemplateEnhancedServiceMonitorServiceArgs

    Enabled bool
    Whether to enable cloud monitor service, TRUE or FALSE.
    Enabled bool
    Whether to enable cloud monitor service, TRUE or FALSE.
    enabled Boolean
    Whether to enable cloud monitor service, TRUE or FALSE.
    enabled boolean
    Whether to enable cloud monitor service, TRUE or FALSE.
    enabled bool
    Whether to enable cloud monitor service, TRUE or FALSE.
    enabled Boolean
    Whether to enable cloud monitor service, TRUE or FALSE.

    CvmLaunchTemplateEnhancedServiceSecurityService, CvmLaunchTemplateEnhancedServiceSecurityServiceArgs

    Enabled bool
    Whether to enable cloud security service, TRUE or FALSE.
    Enabled bool
    Whether to enable cloud security service, TRUE or FALSE.
    enabled Boolean
    Whether to enable cloud security service, TRUE or FALSE.
    enabled boolean
    Whether to enable cloud security service, TRUE or FALSE.
    enabled bool
    Whether to enable cloud security service, TRUE or FALSE.
    enabled Boolean
    Whether to enable cloud security service, TRUE or FALSE.

    CvmLaunchTemplateInstanceChargePrepaid, CvmLaunchTemplateInstanceChargePrepaidArgs

    Period double
    The period of purchasing instances.
    RenewFlag string
    Automatic renew flag.
    Period float64
    The period of purchasing instances.
    RenewFlag string
    Automatic renew flag.
    period Double
    The period of purchasing instances.
    renewFlag String
    Automatic renew flag.
    period number
    The period of purchasing instances.
    renewFlag string
    Automatic renew flag.
    period float
    The period of purchasing instances.
    renew_flag str
    Automatic renew flag.
    period Number
    The period of purchasing instances.
    renewFlag String
    Automatic renew flag.

    CvmLaunchTemplateInstanceMarketOptions, CvmLaunchTemplateInstanceMarketOptionsArgs

    SpotOptions CvmLaunchTemplateInstanceMarketOptionsSpotOptions
    Bidding related options.
    MarketType string
    Market option type, currently only supports value: spot.
    SpotOptions CvmLaunchTemplateInstanceMarketOptionsSpotOptions
    Bidding related options.
    MarketType string
    Market option type, currently only supports value: spot.
    spotOptions CvmLaunchTemplateInstanceMarketOptionsSpotOptions
    Bidding related options.
    marketType String
    Market option type, currently only supports value: spot.
    spotOptions CvmLaunchTemplateInstanceMarketOptionsSpotOptions
    Bidding related options.
    marketType string
    Market option type, currently only supports value: spot.
    spot_options CvmLaunchTemplateInstanceMarketOptionsSpotOptions
    Bidding related options.
    market_type str
    Market option type, currently only supports value: spot.
    spotOptions Property Map
    Bidding related options.
    marketType String
    Market option type, currently only supports value: spot.

    CvmLaunchTemplateInstanceMarketOptionsSpotOptions, CvmLaunchTemplateInstanceMarketOptionsSpotOptionsArgs

    MaxPrice string
    Bidding.
    SpotInstanceType string
    Bidding request type, currently only supported type: one-time.
    MaxPrice string
    Bidding.
    SpotInstanceType string
    Bidding request type, currently only supported type: one-time.
    maxPrice String
    Bidding.
    spotInstanceType String
    Bidding request type, currently only supported type: one-time.
    maxPrice string
    Bidding.
    spotInstanceType string
    Bidding request type, currently only supported type: one-time.
    max_price str
    Bidding.
    spot_instance_type str
    Bidding request type, currently only supported type: one-time.
    maxPrice String
    Bidding.
    spotInstanceType String
    Bidding request type, currently only supported type: one-time.

    CvmLaunchTemplateInternetAccessible, CvmLaunchTemplateInternetAccessibleArgs

    BandwidthPackageId string
    The ID of bandwidth package.
    InternetChargeType string
    The type of internet charge.
    InternetMaxBandwidthOut double
    Internet outbound bandwidth upper limit, Mbps.
    PublicIpAssigned bool
    Whether to allocate public network IP, TRUE or FALSE.
    BandwidthPackageId string
    The ID of bandwidth package.
    InternetChargeType string
    The type of internet charge.
    InternetMaxBandwidthOut float64
    Internet outbound bandwidth upper limit, Mbps.
    PublicIpAssigned bool
    Whether to allocate public network IP, TRUE or FALSE.
    bandwidthPackageId String
    The ID of bandwidth package.
    internetChargeType String
    The type of internet charge.
    internetMaxBandwidthOut Double
    Internet outbound bandwidth upper limit, Mbps.
    publicIpAssigned Boolean
    Whether to allocate public network IP, TRUE or FALSE.
    bandwidthPackageId string
    The ID of bandwidth package.
    internetChargeType string
    The type of internet charge.
    internetMaxBandwidthOut number
    Internet outbound bandwidth upper limit, Mbps.
    publicIpAssigned boolean
    Whether to allocate public network IP, TRUE or FALSE.
    bandwidth_package_id str
    The ID of bandwidth package.
    internet_charge_type str
    The type of internet charge.
    internet_max_bandwidth_out float
    Internet outbound bandwidth upper limit, Mbps.
    public_ip_assigned bool
    Whether to allocate public network IP, TRUE or FALSE.
    bandwidthPackageId String
    The ID of bandwidth package.
    internetChargeType String
    The type of internet charge.
    internetMaxBandwidthOut Number
    Internet outbound bandwidth upper limit, Mbps.
    publicIpAssigned Boolean
    Whether to allocate public network IP, TRUE or FALSE.

    CvmLaunchTemplateLoginSettings, CvmLaunchTemplateLoginSettingsArgs

    KeepImageLogin string
    Keep the original settings of the mirror.
    KeyIds List<string>
    List of key ID.
    Password string
    The login password of instance.
    KeepImageLogin string
    Keep the original settings of the mirror.
    KeyIds []string
    List of key ID.
    Password string
    The login password of instance.
    keepImageLogin String
    Keep the original settings of the mirror.
    keyIds List<String>
    List of key ID.
    password String
    The login password of instance.
    keepImageLogin string
    Keep the original settings of the mirror.
    keyIds string[]
    List of key ID.
    password string
    The login password of instance.
    keep_image_login str
    Keep the original settings of the mirror.
    key_ids Sequence[str]
    List of key ID.
    password str
    The login password of instance.
    keepImageLogin String
    Keep the original settings of the mirror.
    keyIds List<String>
    List of key ID.
    password String
    The login password of instance.

    CvmLaunchTemplatePlacement, CvmLaunchTemplatePlacementArgs

    Zone string
    The available zone ID of the instance.
    HostIds List<string>
    The CDH ID list of the instance(input).
    HostIps List<string>
    It has been deprecated from version 1.81.108. Specify the host machine ip.

    Deprecated: Deprecated

    ProjectId double
    The project ID of the instance.
    Zone string
    The available zone ID of the instance.
    HostIds []string
    The CDH ID list of the instance(input).
    HostIps []string
    It has been deprecated from version 1.81.108. Specify the host machine ip.

    Deprecated: Deprecated

    ProjectId float64
    The project ID of the instance.
    zone String
    The available zone ID of the instance.
    hostIds List<String>
    The CDH ID list of the instance(input).
    hostIps List<String>
    It has been deprecated from version 1.81.108. Specify the host machine ip.

    Deprecated: Deprecated

    projectId Double
    The project ID of the instance.
    zone string
    The available zone ID of the instance.
    hostIds string[]
    The CDH ID list of the instance(input).
    hostIps string[]
    It has been deprecated from version 1.81.108. Specify the host machine ip.

    Deprecated: Deprecated

    projectId number
    The project ID of the instance.
    zone str
    The available zone ID of the instance.
    host_ids Sequence[str]
    The CDH ID list of the instance(input).
    host_ips Sequence[str]
    It has been deprecated from version 1.81.108. Specify the host machine ip.

    Deprecated: Deprecated

    project_id float
    The project ID of the instance.
    zone String
    The available zone ID of the instance.
    hostIds List<String>
    The CDH ID list of the instance(input).
    hostIps List<String>
    It has been deprecated from version 1.81.108. Specify the host machine ip.

    Deprecated: Deprecated

    projectId Number
    The project ID of the instance.

    CvmLaunchTemplateSystemDisk, CvmLaunchTemplateSystemDiskArgs

    CdcId string
    Cloud Dedicated Cluster(CDC) ID.
    DiskId string
    System disk ID.
    DiskSize double
    The size of system disk.
    DiskType string
    The type of system disk.
    CdcId string
    Cloud Dedicated Cluster(CDC) ID.
    DiskId string
    System disk ID.
    DiskSize float64
    The size of system disk.
    DiskType string
    The type of system disk.
    cdcId String
    Cloud Dedicated Cluster(CDC) ID.
    diskId String
    System disk ID.
    diskSize Double
    The size of system disk.
    diskType String
    The type of system disk.
    cdcId string
    Cloud Dedicated Cluster(CDC) ID.
    diskId string
    System disk ID.
    diskSize number
    The size of system disk.
    diskType string
    The type of system disk.
    cdc_id str
    Cloud Dedicated Cluster(CDC) ID.
    disk_id str
    System disk ID.
    disk_size float
    The size of system disk.
    disk_type str
    The type of system disk.
    cdcId String
    Cloud Dedicated Cluster(CDC) ID.
    diskId String
    System disk ID.
    diskSize Number
    The size of system disk.
    diskType String
    The type of system disk.

    CvmLaunchTemplateTagSpecification, CvmLaunchTemplateTagSpecificationArgs

    ResourceType string
    The type of resource.
    Tags []CvmLaunchTemplateTagSpecificationTag
    Tag list.
    resourceType string
    The type of resource.
    tags CvmLaunchTemplateTagSpecificationTag[]
    Tag list.
    resourceType String
    The type of resource.
    tags List<Property Map>
    Tag list.

    CvmLaunchTemplateTagSpecificationTag, CvmLaunchTemplateTagSpecificationTagArgs

    Key string
    The key of tag.
    Value string
    The value of tag.
    Key string
    The key of tag.
    Value string
    The value of tag.
    key String
    The key of tag.
    value String
    The value of tag.
    key string
    The key of tag.
    value string
    The value of tag.
    key str
    The key of tag.
    value str
    The value of tag.
    key String
    The key of tag.
    value String
    The value of tag.

    CvmLaunchTemplateVirtualPrivateCloud, CvmLaunchTemplateVirtualPrivateCloudArgs

    SubnetId string
    The id of subnet.
    VpcId string
    The id of VPC.
    AsVpcGateway bool
    Is it used as a Public network gateway, TRUE or FALSE.
    Ipv6AddressCount double
    The number of ipv6 addresses for Elastic Network Interface.
    PrivateIpAddresses List<string>
    The address of private ip.
    SubnetId string
    The id of subnet.
    VpcId string
    The id of VPC.
    AsVpcGateway bool
    Is it used as a Public network gateway, TRUE or FALSE.
    Ipv6AddressCount float64
    The number of ipv6 addresses for Elastic Network Interface.
    PrivateIpAddresses []string
    The address of private ip.
    subnetId String
    The id of subnet.
    vpcId String
    The id of VPC.
    asVpcGateway Boolean
    Is it used as a Public network gateway, TRUE or FALSE.
    ipv6AddressCount Double
    The number of ipv6 addresses for Elastic Network Interface.
    privateIpAddresses List<String>
    The address of private ip.
    subnetId string
    The id of subnet.
    vpcId string
    The id of VPC.
    asVpcGateway boolean
    Is it used as a Public network gateway, TRUE or FALSE.
    ipv6AddressCount number
    The number of ipv6 addresses for Elastic Network Interface.
    privateIpAddresses string[]
    The address of private ip.
    subnet_id str
    The id of subnet.
    vpc_id str
    The id of VPC.
    as_vpc_gateway bool
    Is it used as a Public network gateway, TRUE or FALSE.
    ipv6_address_count float
    The number of ipv6 addresses for Elastic Network Interface.
    private_ip_addresses Sequence[str]
    The address of private ip.
    subnetId String
    The id of subnet.
    vpcId String
    The id of VPC.
    asVpcGateway Boolean
    Is it used as a Public network gateway, TRUE or FALSE.
    ipv6AddressCount Number
    The number of ipv6 addresses for Elastic Network Interface.
    privateIpAddresses List<String>
    The address of private ip.

    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