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

tencentcloud.CvmRenewInstance

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 renew_instance

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    // create vpc
    const vpc = new tencentcloud.Vpc("vpc", {cidrBlock: "10.0.0.0/16"});
    // create vpc subnet
    const subnet = new tencentcloud.Subnet("subnet", {
        vpcId: vpc.vpcId,
        availabilityZone: "ap-guangzhou-6",
        cidrBlock: "10.0.20.0/28",
        isMulticast: false,
    });
    // create cvm
    const exampleInstance = new tencentcloud.Instance("exampleInstance", {
        instanceName: "tf_example",
        availabilityZone: "ap-guangzhou-6",
        imageId: "img-9qrfy1xt",
        instanceType: "SA3.MEDIUM4",
        systemDiskType: "CLOUD_HSSD",
        systemDiskSize: 100,
        hostname: "example",
        projectId: 0,
        vpcId: vpc.vpcId,
        subnetId: subnet.subnetId,
        forceDelete: true,
        instanceChargeType: "PREPAID",
        instanceChargeTypePrepaidPeriod: 1,
        instanceChargeTypePrepaidRenewFlag: "NOTIFY_AND_MANUAL_RENEW",
        dataDisks: [{
            dataDiskType: "CLOUD_HSSD",
            dataDiskSize: 50,
            encrypt: false,
        }],
        tags: {
            tagKey: "tagValue",
        },
    });
    // renew instance
    const exampleCvmRenewInstance = new tencentcloud.CvmRenewInstance("exampleCvmRenewInstance", {
        instanceId: exampleInstance.instanceId,
        renewPortableDataDisk: true,
        instanceChargePrepaid: {
            period: 1,
            renewFlag: "NOTIFY_AND_MANUAL_RENEW",
        },
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    # create vpc
    vpc = tencentcloud.Vpc("vpc", cidr_block="10.0.0.0/16")
    # create vpc subnet
    subnet = tencentcloud.Subnet("subnet",
        vpc_id=vpc.vpc_id,
        availability_zone="ap-guangzhou-6",
        cidr_block="10.0.20.0/28",
        is_multicast=False)
    # create cvm
    example_instance = tencentcloud.Instance("exampleInstance",
        instance_name="tf_example",
        availability_zone="ap-guangzhou-6",
        image_id="img-9qrfy1xt",
        instance_type="SA3.MEDIUM4",
        system_disk_type="CLOUD_HSSD",
        system_disk_size=100,
        hostname="example",
        project_id=0,
        vpc_id=vpc.vpc_id,
        subnet_id=subnet.subnet_id,
        force_delete=True,
        instance_charge_type="PREPAID",
        instance_charge_type_prepaid_period=1,
        instance_charge_type_prepaid_renew_flag="NOTIFY_AND_MANUAL_RENEW",
        data_disks=[{
            "data_disk_type": "CLOUD_HSSD",
            "data_disk_size": 50,
            "encrypt": False,
        }],
        tags={
            "tagKey": "tagValue",
        })
    # renew instance
    example_cvm_renew_instance = tencentcloud.CvmRenewInstance("exampleCvmRenewInstance",
        instance_id=example_instance.instance_id,
        renew_portable_data_disk=True,
        instance_charge_prepaid={
            "period": 1,
            "renew_flag": "NOTIFY_AND_MANUAL_RENEW",
        })
    
    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 {
    		// create vpc
    		vpc, err := tencentcloud.NewVpc(ctx, "vpc", &tencentcloud.VpcArgs{
    			CidrBlock: pulumi.String("10.0.0.0/16"),
    		})
    		if err != nil {
    			return err
    		}
    		// create vpc subnet
    		subnet, err := tencentcloud.NewSubnet(ctx, "subnet", &tencentcloud.SubnetArgs{
    			VpcId:            vpc.VpcId,
    			AvailabilityZone: pulumi.String("ap-guangzhou-6"),
    			CidrBlock:        pulumi.String("10.0.20.0/28"),
    			IsMulticast:      pulumi.Bool(false),
    		})
    		if err != nil {
    			return err
    		}
    		// create cvm
    		exampleInstance, err := tencentcloud.NewInstance(ctx, "exampleInstance", &tencentcloud.InstanceArgs{
    			InstanceName:                       pulumi.String("tf_example"),
    			AvailabilityZone:                   pulumi.String("ap-guangzhou-6"),
    			ImageId:                            pulumi.String("img-9qrfy1xt"),
    			InstanceType:                       pulumi.String("SA3.MEDIUM4"),
    			SystemDiskType:                     pulumi.String("CLOUD_HSSD"),
    			SystemDiskSize:                     pulumi.Float64(100),
    			Hostname:                           pulumi.String("example"),
    			ProjectId:                          pulumi.Float64(0),
    			VpcId:                              vpc.VpcId,
    			SubnetId:                           subnet.SubnetId,
    			ForceDelete:                        pulumi.Bool(true),
    			InstanceChargeType:                 pulumi.String("PREPAID"),
    			InstanceChargeTypePrepaidPeriod:    pulumi.Float64(1),
    			InstanceChargeTypePrepaidRenewFlag: pulumi.String("NOTIFY_AND_MANUAL_RENEW"),
    			DataDisks: tencentcloud.InstanceDataDiskArray{
    				&tencentcloud.InstanceDataDiskArgs{
    					DataDiskType: pulumi.String("CLOUD_HSSD"),
    					DataDiskSize: pulumi.Float64(50),
    					Encrypt:      pulumi.Bool(false),
    				},
    			},
    			Tags: pulumi.StringMap{
    				"tagKey": pulumi.String("tagValue"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		// renew instance
    		_, err = tencentcloud.NewCvmRenewInstance(ctx, "exampleCvmRenewInstance", &tencentcloud.CvmRenewInstanceArgs{
    			InstanceId:            exampleInstance.InstanceId,
    			RenewPortableDataDisk: pulumi.Bool(true),
    			InstanceChargePrepaid: &tencentcloud.CvmRenewInstanceInstanceChargePrepaidArgs{
    				Period:    pulumi.Float64(1),
    				RenewFlag: pulumi.String("NOTIFY_AND_MANUAL_RENEW"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        // create vpc
        var vpc = new Tencentcloud.Vpc("vpc", new()
        {
            CidrBlock = "10.0.0.0/16",
        });
    
        // create vpc subnet
        var subnet = new Tencentcloud.Subnet("subnet", new()
        {
            VpcId = vpc.VpcId,
            AvailabilityZone = "ap-guangzhou-6",
            CidrBlock = "10.0.20.0/28",
            IsMulticast = false,
        });
    
        // create cvm
        var exampleInstance = new Tencentcloud.Instance("exampleInstance", new()
        {
            InstanceName = "tf_example",
            AvailabilityZone = "ap-guangzhou-6",
            ImageId = "img-9qrfy1xt",
            InstanceType = "SA3.MEDIUM4",
            SystemDiskType = "CLOUD_HSSD",
            SystemDiskSize = 100,
            Hostname = "example",
            ProjectId = 0,
            VpcId = vpc.VpcId,
            SubnetId = subnet.SubnetId,
            ForceDelete = true,
            InstanceChargeType = "PREPAID",
            InstanceChargeTypePrepaidPeriod = 1,
            InstanceChargeTypePrepaidRenewFlag = "NOTIFY_AND_MANUAL_RENEW",
            DataDisks = new[]
            {
                new Tencentcloud.Inputs.InstanceDataDiskArgs
                {
                    DataDiskType = "CLOUD_HSSD",
                    DataDiskSize = 50,
                    Encrypt = false,
                },
            },
            Tags = 
            {
                { "tagKey", "tagValue" },
            },
        });
    
        // renew instance
        var exampleCvmRenewInstance = new Tencentcloud.CvmRenewInstance("exampleCvmRenewInstance", new()
        {
            InstanceId = exampleInstance.InstanceId,
            RenewPortableDataDisk = true,
            InstanceChargePrepaid = new Tencentcloud.Inputs.CvmRenewInstanceInstanceChargePrepaidArgs
            {
                Period = 1,
                RenewFlag = "NOTIFY_AND_MANUAL_RENEW",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.Vpc;
    import com.pulumi.tencentcloud.VpcArgs;
    import com.pulumi.tencentcloud.Subnet;
    import com.pulumi.tencentcloud.SubnetArgs;
    import com.pulumi.tencentcloud.Instance;
    import com.pulumi.tencentcloud.InstanceArgs;
    import com.pulumi.tencentcloud.inputs.InstanceDataDiskArgs;
    import com.pulumi.tencentcloud.CvmRenewInstance;
    import com.pulumi.tencentcloud.CvmRenewInstanceArgs;
    import com.pulumi.tencentcloud.inputs.CvmRenewInstanceInstanceChargePrepaidArgs;
    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) {
            // create vpc
            var vpc = new Vpc("vpc", VpcArgs.builder()
                .cidrBlock("10.0.0.0/16")
                .build());
    
            // create vpc subnet
            var subnet = new Subnet("subnet", SubnetArgs.builder()
                .vpcId(vpc.vpcId())
                .availabilityZone("ap-guangzhou-6")
                .cidrBlock("10.0.20.0/28")
                .isMulticast(false)
                .build());
    
            // create cvm
            var exampleInstance = new Instance("exampleInstance", InstanceArgs.builder()
                .instanceName("tf_example")
                .availabilityZone("ap-guangzhou-6")
                .imageId("img-9qrfy1xt")
                .instanceType("SA3.MEDIUM4")
                .systemDiskType("CLOUD_HSSD")
                .systemDiskSize(100)
                .hostname("example")
                .projectId(0)
                .vpcId(vpc.vpcId())
                .subnetId(subnet.subnetId())
                .forceDelete(true)
                .instanceChargeType("PREPAID")
                .instanceChargeTypePrepaidPeriod(1)
                .instanceChargeTypePrepaidRenewFlag("NOTIFY_AND_MANUAL_RENEW")
                .dataDisks(InstanceDataDiskArgs.builder()
                    .dataDiskType("CLOUD_HSSD")
                    .dataDiskSize(50)
                    .encrypt(false)
                    .build())
                .tags(Map.of("tagKey", "tagValue"))
                .build());
    
            // renew instance
            var exampleCvmRenewInstance = new CvmRenewInstance("exampleCvmRenewInstance", CvmRenewInstanceArgs.builder()
                .instanceId(exampleInstance.instanceId())
                .renewPortableDataDisk(true)
                .instanceChargePrepaid(CvmRenewInstanceInstanceChargePrepaidArgs.builder()
                    .period(1)
                    .renewFlag("NOTIFY_AND_MANUAL_RENEW")
                    .build())
                .build());
    
        }
    }
    
    resources:
      # create vpc
      vpc:
        type: tencentcloud:Vpc
        properties:
          cidrBlock: 10.0.0.0/16
      # create vpc subnet
      subnet:
        type: tencentcloud:Subnet
        properties:
          vpcId: ${vpc.vpcId}
          availabilityZone: ap-guangzhou-6
          cidrBlock: 10.0.20.0/28
          isMulticast: false
      # create cvm
      exampleInstance:
        type: tencentcloud:Instance
        properties:
          instanceName: tf_example
          availabilityZone: ap-guangzhou-6
          imageId: img-9qrfy1xt
          instanceType: SA3.MEDIUM4
          systemDiskType: CLOUD_HSSD
          systemDiskSize: 100
          hostname: example
          projectId: 0
          vpcId: ${vpc.vpcId}
          subnetId: ${subnet.subnetId}
          forceDelete: true
          instanceChargeType: PREPAID
          instanceChargeTypePrepaidPeriod: 1
          instanceChargeTypePrepaidRenewFlag: NOTIFY_AND_MANUAL_RENEW
          dataDisks:
            - dataDiskType: CLOUD_HSSD
              dataDiskSize: 50
              encrypt: false
          tags:
            tagKey: tagValue
      # renew instance
      exampleCvmRenewInstance:
        type: tencentcloud:CvmRenewInstance
        properties:
          instanceId: ${exampleInstance.instanceId}
          renewPortableDataDisk: true
          instanceChargePrepaid:
            period: 1
            renewFlag: NOTIFY_AND_MANUAL_RENEW
    

    Create CvmRenewInstance Resource

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

    Constructor syntax

    new CvmRenewInstance(name: string, args: CvmRenewInstanceArgs, opts?: CustomResourceOptions);
    @overload
    def CvmRenewInstance(resource_name: str,
                         args: CvmRenewInstanceArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def CvmRenewInstance(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         instance_id: Optional[str] = None,
                         cvm_renew_instance_id: Optional[str] = None,
                         instance_charge_prepaid: Optional[CvmRenewInstanceInstanceChargePrepaidArgs] = None,
                         renew_portable_data_disk: Optional[bool] = None)
    func NewCvmRenewInstance(ctx *Context, name string, args CvmRenewInstanceArgs, opts ...ResourceOption) (*CvmRenewInstance, error)
    public CvmRenewInstance(string name, CvmRenewInstanceArgs args, CustomResourceOptions? opts = null)
    public CvmRenewInstance(String name, CvmRenewInstanceArgs args)
    public CvmRenewInstance(String name, CvmRenewInstanceArgs args, CustomResourceOptions options)
    
    type: tencentcloud:CvmRenewInstance
    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 CvmRenewInstanceArgs
    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 CvmRenewInstanceArgs
    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 CvmRenewInstanceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CvmRenewInstanceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CvmRenewInstanceArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    CvmRenewInstance 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 CvmRenewInstance resource accepts the following input properties:

    InstanceId string
    Instance ID.
    CvmRenewInstanceId string
    ID of the resource.
    InstanceChargePrepaid CvmRenewInstanceInstanceChargePrepaid
    Prepaid mode, that is, yearly and monthly subscription related parameter settings. Through this parameter, you can specify the renewal duration of the Subscription instance, whether to set automatic renewal, and other attributes. For yearly and monthly subscription instances, this parameter is required.
    RenewPortableDataDisk bool
    Whether to renew the elastic data disk. Valid values:

    • TRUE: Indicates to renew the subscription instance and renew the attached elastic data disk at the same time
    • FALSE: Indicates that the subscription instance will be renewed and the elastic data disk attached to it will not be renewed Default value: TRUE.
    InstanceId string
    Instance ID.
    CvmRenewInstanceId string
    ID of the resource.
    InstanceChargePrepaid CvmRenewInstanceInstanceChargePrepaidArgs
    Prepaid mode, that is, yearly and monthly subscription related parameter settings. Through this parameter, you can specify the renewal duration of the Subscription instance, whether to set automatic renewal, and other attributes. For yearly and monthly subscription instances, this parameter is required.
    RenewPortableDataDisk bool
    Whether to renew the elastic data disk. Valid values:

    • TRUE: Indicates to renew the subscription instance and renew the attached elastic data disk at the same time
    • FALSE: Indicates that the subscription instance will be renewed and the elastic data disk attached to it will not be renewed Default value: TRUE.
    instanceId String
    Instance ID.
    cvmRenewInstanceId String
    ID of the resource.
    instanceChargePrepaid CvmRenewInstanceInstanceChargePrepaid
    Prepaid mode, that is, yearly and monthly subscription related parameter settings. Through this parameter, you can specify the renewal duration of the Subscription instance, whether to set automatic renewal, and other attributes. For yearly and monthly subscription instances, this parameter is required.
    renewPortableDataDisk Boolean
    Whether to renew the elastic data disk. Valid values:

    • TRUE: Indicates to renew the subscription instance and renew the attached elastic data disk at the same time
    • FALSE: Indicates that the subscription instance will be renewed and the elastic data disk attached to it will not be renewed Default value: TRUE.
    instanceId string
    Instance ID.
    cvmRenewInstanceId string
    ID of the resource.
    instanceChargePrepaid CvmRenewInstanceInstanceChargePrepaid
    Prepaid mode, that is, yearly and monthly subscription related parameter settings. Through this parameter, you can specify the renewal duration of the Subscription instance, whether to set automatic renewal, and other attributes. For yearly and monthly subscription instances, this parameter is required.
    renewPortableDataDisk boolean
    Whether to renew the elastic data disk. Valid values:

    • TRUE: Indicates to renew the subscription instance and renew the attached elastic data disk at the same time
    • FALSE: Indicates that the subscription instance will be renewed and the elastic data disk attached to it will not be renewed Default value: TRUE.
    instance_id str
    Instance ID.
    cvm_renew_instance_id str
    ID of the resource.
    instance_charge_prepaid CvmRenewInstanceInstanceChargePrepaidArgs
    Prepaid mode, that is, yearly and monthly subscription related parameter settings. Through this parameter, you can specify the renewal duration of the Subscription instance, whether to set automatic renewal, and other attributes. For yearly and monthly subscription instances, this parameter is required.
    renew_portable_data_disk bool
    Whether to renew the elastic data disk. Valid values:

    • TRUE: Indicates to renew the subscription instance and renew the attached elastic data disk at the same time
    • FALSE: Indicates that the subscription instance will be renewed and the elastic data disk attached to it will not be renewed Default value: TRUE.
    instanceId String
    Instance ID.
    cvmRenewInstanceId String
    ID of the resource.
    instanceChargePrepaid Property Map
    Prepaid mode, that is, yearly and monthly subscription related parameter settings. Through this parameter, you can specify the renewal duration of the Subscription instance, whether to set automatic renewal, and other attributes. For yearly and monthly subscription instances, this parameter is required.
    renewPortableDataDisk Boolean
    Whether to renew the elastic data disk. Valid values:

    • TRUE: Indicates to renew the subscription instance and renew the attached elastic data disk at the same time
    • FALSE: Indicates that the subscription instance will be renewed and the elastic data disk attached to it will not be renewed Default value: TRUE.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the CvmRenewInstance 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 CvmRenewInstance Resource

    Get an existing CvmRenewInstance 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?: CvmRenewInstanceState, opts?: CustomResourceOptions): CvmRenewInstance
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cvm_renew_instance_id: Optional[str] = None,
            instance_charge_prepaid: Optional[CvmRenewInstanceInstanceChargePrepaidArgs] = None,
            instance_id: Optional[str] = None,
            renew_portable_data_disk: Optional[bool] = None) -> CvmRenewInstance
    func GetCvmRenewInstance(ctx *Context, name string, id IDInput, state *CvmRenewInstanceState, opts ...ResourceOption) (*CvmRenewInstance, error)
    public static CvmRenewInstance Get(string name, Input<string> id, CvmRenewInstanceState? state, CustomResourceOptions? opts = null)
    public static CvmRenewInstance get(String name, Output<String> id, CvmRenewInstanceState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:CvmRenewInstance    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:
    CvmRenewInstanceId string
    ID of the resource.
    InstanceChargePrepaid CvmRenewInstanceInstanceChargePrepaid
    Prepaid mode, that is, yearly and monthly subscription related parameter settings. Through this parameter, you can specify the renewal duration of the Subscription instance, whether to set automatic renewal, and other attributes. For yearly and monthly subscription instances, this parameter is required.
    InstanceId string
    Instance ID.
    RenewPortableDataDisk bool
    Whether to renew the elastic data disk. Valid values:

    • TRUE: Indicates to renew the subscription instance and renew the attached elastic data disk at the same time
    • FALSE: Indicates that the subscription instance will be renewed and the elastic data disk attached to it will not be renewed Default value: TRUE.
    CvmRenewInstanceId string
    ID of the resource.
    InstanceChargePrepaid CvmRenewInstanceInstanceChargePrepaidArgs
    Prepaid mode, that is, yearly and monthly subscription related parameter settings. Through this parameter, you can specify the renewal duration of the Subscription instance, whether to set automatic renewal, and other attributes. For yearly and monthly subscription instances, this parameter is required.
    InstanceId string
    Instance ID.
    RenewPortableDataDisk bool
    Whether to renew the elastic data disk. Valid values:

    • TRUE: Indicates to renew the subscription instance and renew the attached elastic data disk at the same time
    • FALSE: Indicates that the subscription instance will be renewed and the elastic data disk attached to it will not be renewed Default value: TRUE.
    cvmRenewInstanceId String
    ID of the resource.
    instanceChargePrepaid CvmRenewInstanceInstanceChargePrepaid
    Prepaid mode, that is, yearly and monthly subscription related parameter settings. Through this parameter, you can specify the renewal duration of the Subscription instance, whether to set automatic renewal, and other attributes. For yearly and monthly subscription instances, this parameter is required.
    instanceId String
    Instance ID.
    renewPortableDataDisk Boolean
    Whether to renew the elastic data disk. Valid values:

    • TRUE: Indicates to renew the subscription instance and renew the attached elastic data disk at the same time
    • FALSE: Indicates that the subscription instance will be renewed and the elastic data disk attached to it will not be renewed Default value: TRUE.
    cvmRenewInstanceId string
    ID of the resource.
    instanceChargePrepaid CvmRenewInstanceInstanceChargePrepaid
    Prepaid mode, that is, yearly and monthly subscription related parameter settings. Through this parameter, you can specify the renewal duration of the Subscription instance, whether to set automatic renewal, and other attributes. For yearly and monthly subscription instances, this parameter is required.
    instanceId string
    Instance ID.
    renewPortableDataDisk boolean
    Whether to renew the elastic data disk. Valid values:

    • TRUE: Indicates to renew the subscription instance and renew the attached elastic data disk at the same time
    • FALSE: Indicates that the subscription instance will be renewed and the elastic data disk attached to it will not be renewed Default value: TRUE.
    cvm_renew_instance_id str
    ID of the resource.
    instance_charge_prepaid CvmRenewInstanceInstanceChargePrepaidArgs
    Prepaid mode, that is, yearly and monthly subscription related parameter settings. Through this parameter, you can specify the renewal duration of the Subscription instance, whether to set automatic renewal, and other attributes. For yearly and monthly subscription instances, this parameter is required.
    instance_id str
    Instance ID.
    renew_portable_data_disk bool
    Whether to renew the elastic data disk. Valid values:

    • TRUE: Indicates to renew the subscription instance and renew the attached elastic data disk at the same time
    • FALSE: Indicates that the subscription instance will be renewed and the elastic data disk attached to it will not be renewed Default value: TRUE.
    cvmRenewInstanceId String
    ID of the resource.
    instanceChargePrepaid Property Map
    Prepaid mode, that is, yearly and monthly subscription related parameter settings. Through this parameter, you can specify the renewal duration of the Subscription instance, whether to set automatic renewal, and other attributes. For yearly and monthly subscription instances, this parameter is required.
    instanceId String
    Instance ID.
    renewPortableDataDisk Boolean
    Whether to renew the elastic data disk. Valid values:

    • TRUE: Indicates to renew the subscription instance and renew the attached elastic data disk at the same time
    • FALSE: Indicates that the subscription instance will be renewed and the elastic data disk attached to it will not be renewed Default value: TRUE.

    Supporting Types

    CvmRenewInstanceInstanceChargePrepaid, CvmRenewInstanceInstanceChargePrepaidArgs

    Period double
    Subscription period; unit: month; valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36, 48, 60. Note: This field may return null, indicating that no valid value is found.
    RenewFlag string
    Auto renewal flag. Valid values:

    • NOTIFY_AND_AUTO_RENEW: notify upon expiration and renew automatically;
    • NOTIFY_AND_MANUAL_RENEW: notify upon expiration but do not renew automatically;
    • DISABLE_NOTIFY_AND_MANUAL_RENEW: neither notify upon expiration nor renew automatically; Default value: NOTIFY_AND_MANUAL_RENEW. If this parameter is specified as NOTIFY_AND_AUTO_RENEW, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. Note: This field may return null, indicating that no valid value is found.
    Period float64
    Subscription period; unit: month; valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36, 48, 60. Note: This field may return null, indicating that no valid value is found.
    RenewFlag string
    Auto renewal flag. Valid values:

    • NOTIFY_AND_AUTO_RENEW: notify upon expiration and renew automatically;
    • NOTIFY_AND_MANUAL_RENEW: notify upon expiration but do not renew automatically;
    • DISABLE_NOTIFY_AND_MANUAL_RENEW: neither notify upon expiration nor renew automatically; Default value: NOTIFY_AND_MANUAL_RENEW. If this parameter is specified as NOTIFY_AND_AUTO_RENEW, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. Note: This field may return null, indicating that no valid value is found.
    period Double
    Subscription period; unit: month; valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36, 48, 60. Note: This field may return null, indicating that no valid value is found.
    renewFlag String
    Auto renewal flag. Valid values:

    • NOTIFY_AND_AUTO_RENEW: notify upon expiration and renew automatically;
    • NOTIFY_AND_MANUAL_RENEW: notify upon expiration but do not renew automatically;
    • DISABLE_NOTIFY_AND_MANUAL_RENEW: neither notify upon expiration nor renew automatically; Default value: NOTIFY_AND_MANUAL_RENEW. If this parameter is specified as NOTIFY_AND_AUTO_RENEW, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. Note: This field may return null, indicating that no valid value is found.
    period number
    Subscription period; unit: month; valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36, 48, 60. Note: This field may return null, indicating that no valid value is found.
    renewFlag string
    Auto renewal flag. Valid values:

    • NOTIFY_AND_AUTO_RENEW: notify upon expiration and renew automatically;
    • NOTIFY_AND_MANUAL_RENEW: notify upon expiration but do not renew automatically;
    • DISABLE_NOTIFY_AND_MANUAL_RENEW: neither notify upon expiration nor renew automatically; Default value: NOTIFY_AND_MANUAL_RENEW. If this parameter is specified as NOTIFY_AND_AUTO_RENEW, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. Note: This field may return null, indicating that no valid value is found.
    period float
    Subscription period; unit: month; valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36, 48, 60. Note: This field may return null, indicating that no valid value is found.
    renew_flag str
    Auto renewal flag. Valid values:

    • NOTIFY_AND_AUTO_RENEW: notify upon expiration and renew automatically;
    • NOTIFY_AND_MANUAL_RENEW: notify upon expiration but do not renew automatically;
    • DISABLE_NOTIFY_AND_MANUAL_RENEW: neither notify upon expiration nor renew automatically; Default value: NOTIFY_AND_MANUAL_RENEW. If this parameter is specified as NOTIFY_AND_AUTO_RENEW, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. Note: This field may return null, indicating that no valid value is found.
    period Number
    Subscription period; unit: month; valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36, 48, 60. Note: This field may return null, indicating that no valid value is found.
    renewFlag String
    Auto renewal flag. Valid values:

    • NOTIFY_AND_AUTO_RENEW: notify upon expiration and renew automatically;
    • NOTIFY_AND_MANUAL_RENEW: notify upon expiration but do not renew automatically;
    • DISABLE_NOTIFY_AND_MANUAL_RENEW: neither notify upon expiration nor renew automatically; Default value: NOTIFY_AND_MANUAL_RENEW. If this parameter is specified as NOTIFY_AND_AUTO_RENEW, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. Note: This field may return null, indicating that no valid value is found.

    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