1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. LighthouseRenewDisk
tencentcloud 1.81.184 published on Tuesday, Apr 22, 2025 by tencentcloudstack

tencentcloud.LighthouseRenewDisk

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.184 published on Tuesday, Apr 22, 2025 by tencentcloudstack

    Provides a resource to create a lighthouse renew_disk

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const renewDisk = new tencentcloud.LighthouseRenewDisk("renewDisk", {
        autoVoucher: true,
        diskId: "lhdisk-xxxxxx",
        renewDiskChargePrepaid: {
            period: 1,
            renewFlag: "NOTIFY_AND_AUTO_RENEW",
            timeUnit: "m",
        },
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    renew_disk = tencentcloud.LighthouseRenewDisk("renewDisk",
        auto_voucher=True,
        disk_id="lhdisk-xxxxxx",
        renew_disk_charge_prepaid={
            "period": 1,
            "renew_flag": "NOTIFY_AND_AUTO_RENEW",
            "time_unit": "m",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.NewLighthouseRenewDisk(ctx, "renewDisk", &tencentcloud.LighthouseRenewDiskArgs{
    			AutoVoucher: pulumi.Bool(true),
    			DiskId:      pulumi.String("lhdisk-xxxxxx"),
    			RenewDiskChargePrepaid: &tencentcloud.LighthouseRenewDiskRenewDiskChargePrepaidArgs{
    				Period:    pulumi.Float64(1),
    				RenewFlag: pulumi.String("NOTIFY_AND_AUTO_RENEW"),
    				TimeUnit:  pulumi.String("m"),
    			},
    		})
    		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 renewDisk = new Tencentcloud.LighthouseRenewDisk("renewDisk", new()
        {
            AutoVoucher = true,
            DiskId = "lhdisk-xxxxxx",
            RenewDiskChargePrepaid = new Tencentcloud.Inputs.LighthouseRenewDiskRenewDiskChargePrepaidArgs
            {
                Period = 1,
                RenewFlag = "NOTIFY_AND_AUTO_RENEW",
                TimeUnit = "m",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.LighthouseRenewDisk;
    import com.pulumi.tencentcloud.LighthouseRenewDiskArgs;
    import com.pulumi.tencentcloud.inputs.LighthouseRenewDiskRenewDiskChargePrepaidArgs;
    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) {
            var renewDisk = new LighthouseRenewDisk("renewDisk", LighthouseRenewDiskArgs.builder()
                .autoVoucher(true)
                .diskId("lhdisk-xxxxxx")
                .renewDiskChargePrepaid(LighthouseRenewDiskRenewDiskChargePrepaidArgs.builder()
                    .period(1)
                    .renewFlag("NOTIFY_AND_AUTO_RENEW")
                    .timeUnit("m")
                    .build())
                .build());
    
        }
    }
    
    resources:
      renewDisk:
        type: tencentcloud:LighthouseRenewDisk
        properties:
          autoVoucher: true
          diskId: lhdisk-xxxxxx
          renewDiskChargePrepaid:
            period: 1
            renewFlag: NOTIFY_AND_AUTO_RENEW
            timeUnit: m
    

    Create LighthouseRenewDisk Resource

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

    Constructor syntax

    new LighthouseRenewDisk(name: string, args: LighthouseRenewDiskArgs, opts?: CustomResourceOptions);
    @overload
    def LighthouseRenewDisk(resource_name: str,
                            args: LighthouseRenewDiskArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def LighthouseRenewDisk(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            disk_id: Optional[str] = None,
                            renew_disk_charge_prepaid: Optional[LighthouseRenewDiskRenewDiskChargePrepaidArgs] = None,
                            auto_voucher: Optional[bool] = None,
                            lighthouse_renew_disk_id: Optional[str] = None)
    func NewLighthouseRenewDisk(ctx *Context, name string, args LighthouseRenewDiskArgs, opts ...ResourceOption) (*LighthouseRenewDisk, error)
    public LighthouseRenewDisk(string name, LighthouseRenewDiskArgs args, CustomResourceOptions? opts = null)
    public LighthouseRenewDisk(String name, LighthouseRenewDiskArgs args)
    public LighthouseRenewDisk(String name, LighthouseRenewDiskArgs args, CustomResourceOptions options)
    
    type: tencentcloud:LighthouseRenewDisk
    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 LighthouseRenewDiskArgs
    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 LighthouseRenewDiskArgs
    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 LighthouseRenewDiskArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LighthouseRenewDiskArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LighthouseRenewDiskArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    DiskId string
    List of disk ID.
    RenewDiskChargePrepaid LighthouseRenewDiskRenewDiskChargePrepaid
    Renew cloud hard disk subscription related parameter settings.
    AutoVoucher bool
    Whether to automatically use the voucher. Not used by default.
    LighthouseRenewDiskId string
    ID of the resource.
    DiskId string
    List of disk ID.
    RenewDiskChargePrepaid LighthouseRenewDiskRenewDiskChargePrepaidArgs
    Renew cloud hard disk subscription related parameter settings.
    AutoVoucher bool
    Whether to automatically use the voucher. Not used by default.
    LighthouseRenewDiskId string
    ID of the resource.
    diskId String
    List of disk ID.
    renewDiskChargePrepaid LighthouseRenewDiskRenewDiskChargePrepaid
    Renew cloud hard disk subscription related parameter settings.
    autoVoucher Boolean
    Whether to automatically use the voucher. Not used by default.
    lighthouseRenewDiskId String
    ID of the resource.
    diskId string
    List of disk ID.
    renewDiskChargePrepaid LighthouseRenewDiskRenewDiskChargePrepaid
    Renew cloud hard disk subscription related parameter settings.
    autoVoucher boolean
    Whether to automatically use the voucher. Not used by default.
    lighthouseRenewDiskId string
    ID of the resource.
    disk_id str
    List of disk ID.
    renew_disk_charge_prepaid LighthouseRenewDiskRenewDiskChargePrepaidArgs
    Renew cloud hard disk subscription related parameter settings.
    auto_voucher bool
    Whether to automatically use the voucher. Not used by default.
    lighthouse_renew_disk_id str
    ID of the resource.
    diskId String
    List of disk ID.
    renewDiskChargePrepaid Property Map
    Renew cloud hard disk subscription related parameter settings.
    autoVoucher Boolean
    Whether to automatically use the voucher. Not used by default.
    lighthouseRenewDiskId String
    ID of the resource.

    Outputs

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

    Get an existing LighthouseRenewDisk 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?: LighthouseRenewDiskState, opts?: CustomResourceOptions): LighthouseRenewDisk
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            auto_voucher: Optional[bool] = None,
            disk_id: Optional[str] = None,
            lighthouse_renew_disk_id: Optional[str] = None,
            renew_disk_charge_prepaid: Optional[LighthouseRenewDiskRenewDiskChargePrepaidArgs] = None) -> LighthouseRenewDisk
    func GetLighthouseRenewDisk(ctx *Context, name string, id IDInput, state *LighthouseRenewDiskState, opts ...ResourceOption) (*LighthouseRenewDisk, error)
    public static LighthouseRenewDisk Get(string name, Input<string> id, LighthouseRenewDiskState? state, CustomResourceOptions? opts = null)
    public static LighthouseRenewDisk get(String name, Output<String> id, LighthouseRenewDiskState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:LighthouseRenewDisk    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:
    AutoVoucher bool
    Whether to automatically use the voucher. Not used by default.
    DiskId string
    List of disk ID.
    LighthouseRenewDiskId string
    ID of the resource.
    RenewDiskChargePrepaid LighthouseRenewDiskRenewDiskChargePrepaid
    Renew cloud hard disk subscription related parameter settings.
    AutoVoucher bool
    Whether to automatically use the voucher. Not used by default.
    DiskId string
    List of disk ID.
    LighthouseRenewDiskId string
    ID of the resource.
    RenewDiskChargePrepaid LighthouseRenewDiskRenewDiskChargePrepaidArgs
    Renew cloud hard disk subscription related parameter settings.
    autoVoucher Boolean
    Whether to automatically use the voucher. Not used by default.
    diskId String
    List of disk ID.
    lighthouseRenewDiskId String
    ID of the resource.
    renewDiskChargePrepaid LighthouseRenewDiskRenewDiskChargePrepaid
    Renew cloud hard disk subscription related parameter settings.
    autoVoucher boolean
    Whether to automatically use the voucher. Not used by default.
    diskId string
    List of disk ID.
    lighthouseRenewDiskId string
    ID of the resource.
    renewDiskChargePrepaid LighthouseRenewDiskRenewDiskChargePrepaid
    Renew cloud hard disk subscription related parameter settings.
    auto_voucher bool
    Whether to automatically use the voucher. Not used by default.
    disk_id str
    List of disk ID.
    lighthouse_renew_disk_id str
    ID of the resource.
    renew_disk_charge_prepaid LighthouseRenewDiskRenewDiskChargePrepaidArgs
    Renew cloud hard disk subscription related parameter settings.
    autoVoucher Boolean
    Whether to automatically use the voucher. Not used by default.
    diskId String
    List of disk ID.
    lighthouseRenewDiskId String
    ID of the resource.
    renewDiskChargePrepaid Property Map
    Renew cloud hard disk subscription related parameter settings.

    Supporting Types

    LighthouseRenewDiskRenewDiskChargePrepaid, LighthouseRenewDiskRenewDiskChargePrepaidArgs

    CurInstanceDeadline string
    Current instance expiration time. Such as 2018-01-01 00:00:00. Specifying this parameter can align the expiration time of the instance attached to the disk. One of this parameter and Period must be specified, and cannot be specified at the same time.
    Period double
    Renewal period.
    RenewFlag string
    Automatic renewal falg. Value:NOTIFY_AND_AUTO_RENEW: Notice expires and auto-renews.NOTIFY_AND_MANUAL_RENEW: Notification expires without automatic renewal, users need to manually renew.DISABLE_NOTIFY_AND_AUTO_RENEW: No automatic renewal and no notification.Default: NOTIFY_AND_MANUAL_RENEW. If this parameter is specified as NOTIFY_AND_AUTO_RENEW, the disk will be automatically renewed monthly when the account balance is sufficient.
    TimeUnit string
    newly purchased unit. Default: m.
    CurInstanceDeadline string
    Current instance expiration time. Such as 2018-01-01 00:00:00. Specifying this parameter can align the expiration time of the instance attached to the disk. One of this parameter and Period must be specified, and cannot be specified at the same time.
    Period float64
    Renewal period.
    RenewFlag string
    Automatic renewal falg. Value:NOTIFY_AND_AUTO_RENEW: Notice expires and auto-renews.NOTIFY_AND_MANUAL_RENEW: Notification expires without automatic renewal, users need to manually renew.DISABLE_NOTIFY_AND_AUTO_RENEW: No automatic renewal and no notification.Default: NOTIFY_AND_MANUAL_RENEW. If this parameter is specified as NOTIFY_AND_AUTO_RENEW, the disk will be automatically renewed monthly when the account balance is sufficient.
    TimeUnit string
    newly purchased unit. Default: m.
    curInstanceDeadline String
    Current instance expiration time. Such as 2018-01-01 00:00:00. Specifying this parameter can align the expiration time of the instance attached to the disk. One of this parameter and Period must be specified, and cannot be specified at the same time.
    period Double
    Renewal period.
    renewFlag String
    Automatic renewal falg. Value:NOTIFY_AND_AUTO_RENEW: Notice expires and auto-renews.NOTIFY_AND_MANUAL_RENEW: Notification expires without automatic renewal, users need to manually renew.DISABLE_NOTIFY_AND_AUTO_RENEW: No automatic renewal and no notification.Default: NOTIFY_AND_MANUAL_RENEW. If this parameter is specified as NOTIFY_AND_AUTO_RENEW, the disk will be automatically renewed monthly when the account balance is sufficient.
    timeUnit String
    newly purchased unit. Default: m.
    curInstanceDeadline string
    Current instance expiration time. Such as 2018-01-01 00:00:00. Specifying this parameter can align the expiration time of the instance attached to the disk. One of this parameter and Period must be specified, and cannot be specified at the same time.
    period number
    Renewal period.
    renewFlag string
    Automatic renewal falg. Value:NOTIFY_AND_AUTO_RENEW: Notice expires and auto-renews.NOTIFY_AND_MANUAL_RENEW: Notification expires without automatic renewal, users need to manually renew.DISABLE_NOTIFY_AND_AUTO_RENEW: No automatic renewal and no notification.Default: NOTIFY_AND_MANUAL_RENEW. If this parameter is specified as NOTIFY_AND_AUTO_RENEW, the disk will be automatically renewed monthly when the account balance is sufficient.
    timeUnit string
    newly purchased unit. Default: m.
    cur_instance_deadline str
    Current instance expiration time. Such as 2018-01-01 00:00:00. Specifying this parameter can align the expiration time of the instance attached to the disk. One of this parameter and Period must be specified, and cannot be specified at the same time.
    period float
    Renewal period.
    renew_flag str
    Automatic renewal falg. Value:NOTIFY_AND_AUTO_RENEW: Notice expires and auto-renews.NOTIFY_AND_MANUAL_RENEW: Notification expires without automatic renewal, users need to manually renew.DISABLE_NOTIFY_AND_AUTO_RENEW: No automatic renewal and no notification.Default: NOTIFY_AND_MANUAL_RENEW. If this parameter is specified as NOTIFY_AND_AUTO_RENEW, the disk will be automatically renewed monthly when the account balance is sufficient.
    time_unit str
    newly purchased unit. Default: m.
    curInstanceDeadline String
    Current instance expiration time. Such as 2018-01-01 00:00:00. Specifying this parameter can align the expiration time of the instance attached to the disk. One of this parameter and Period must be specified, and cannot be specified at the same time.
    period Number
    Renewal period.
    renewFlag String
    Automatic renewal falg. Value:NOTIFY_AND_AUTO_RENEW: Notice expires and auto-renews.NOTIFY_AND_MANUAL_RENEW: Notification expires without automatic renewal, users need to manually renew.DISABLE_NOTIFY_AND_AUTO_RENEW: No automatic renewal and no notification.Default: NOTIFY_AND_MANUAL_RENEW. If this parameter is specified as NOTIFY_AND_AUTO_RENEW, the disk will be automatically renewed monthly when the account balance is sufficient.
    timeUnit String
    newly purchased unit. Default: m.

    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.184 published on Tuesday, Apr 22, 2025 by tencentcloudstack