tencentcloud.LighthouseRenewDisk
Explore with Pulumi AI
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:
- Disk
Id string - List of disk ID.
- Renew
Disk LighthouseCharge Prepaid Renew Disk Renew Disk Charge Prepaid - Renew cloud hard disk subscription related parameter settings.
- Auto
Voucher bool - Whether to automatically use the voucher. Not used by default.
- Lighthouse
Renew stringDisk Id - ID of the resource.
- Disk
Id string - List of disk ID.
- Renew
Disk LighthouseCharge Prepaid Renew Disk Renew Disk Charge Prepaid Args - Renew cloud hard disk subscription related parameter settings.
- Auto
Voucher bool - Whether to automatically use the voucher. Not used by default.
- Lighthouse
Renew stringDisk Id - ID of the resource.
- disk
Id String - List of disk ID.
- renew
Disk LighthouseCharge Prepaid Renew Disk Renew Disk Charge Prepaid - Renew cloud hard disk subscription related parameter settings.
- auto
Voucher Boolean - Whether to automatically use the voucher. Not used by default.
- lighthouse
Renew StringDisk Id - ID of the resource.
- disk
Id string - List of disk ID.
- renew
Disk LighthouseCharge Prepaid Renew Disk Renew Disk Charge Prepaid - Renew cloud hard disk subscription related parameter settings.
- auto
Voucher boolean - Whether to automatically use the voucher. Not used by default.
- lighthouse
Renew stringDisk Id - ID of the resource.
- disk_
id str - List of disk ID.
- renew_
disk_ Lighthousecharge_ prepaid Renew Disk Renew Disk Charge Prepaid Args - Renew cloud hard disk subscription related parameter settings.
- auto_
voucher bool - Whether to automatically use the voucher. Not used by default.
- lighthouse_
renew_ strdisk_ id - ID of the resource.
- disk
Id String - List of disk ID.
- renew
Disk Property MapCharge Prepaid - Renew cloud hard disk subscription related parameter settings.
- auto
Voucher Boolean - Whether to automatically use the voucher. Not used by default.
- lighthouse
Renew StringDisk Id - 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.
- Auto
Voucher bool - Whether to automatically use the voucher. Not used by default.
- Disk
Id string - List of disk ID.
- Lighthouse
Renew stringDisk Id - ID of the resource.
- Renew
Disk LighthouseCharge Prepaid Renew Disk Renew Disk Charge Prepaid - Renew cloud hard disk subscription related parameter settings.
- Auto
Voucher bool - Whether to automatically use the voucher. Not used by default.
- Disk
Id string - List of disk ID.
- Lighthouse
Renew stringDisk Id - ID of the resource.
- Renew
Disk LighthouseCharge Prepaid Renew Disk Renew Disk Charge Prepaid Args - Renew cloud hard disk subscription related parameter settings.
- auto
Voucher Boolean - Whether to automatically use the voucher. Not used by default.
- disk
Id String - List of disk ID.
- lighthouse
Renew StringDisk Id - ID of the resource.
- renew
Disk LighthouseCharge Prepaid Renew Disk Renew Disk Charge Prepaid - Renew cloud hard disk subscription related parameter settings.
- auto
Voucher boolean - Whether to automatically use the voucher. Not used by default.
- disk
Id string - List of disk ID.
- lighthouse
Renew stringDisk Id - ID of the resource.
- renew
Disk LighthouseCharge Prepaid Renew Disk Renew Disk Charge Prepaid - 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_ strdisk_ id - ID of the resource.
- renew_
disk_ Lighthousecharge_ prepaid Renew Disk Renew Disk Charge Prepaid Args - Renew cloud hard disk subscription related parameter settings.
- auto
Voucher Boolean - Whether to automatically use the voucher. Not used by default.
- disk
Id String - List of disk ID.
- lighthouse
Renew StringDisk Id - ID of the resource.
- renew
Disk Property MapCharge Prepaid - Renew cloud hard disk subscription related parameter settings.
Supporting Types
LighthouseRenewDiskRenewDiskChargePrepaid, LighthouseRenewDiskRenewDiskChargePrepaidArgs
- Cur
Instance stringDeadline - 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.
- Renew
Flag 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.
- Time
Unit string - newly purchased unit. Default: m.
- Cur
Instance stringDeadline - 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.
- Renew
Flag 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.
- Time
Unit string - newly purchased unit. Default: m.
- cur
Instance StringDeadline - 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.
- renew
Flag 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.
- time
Unit String - newly purchased unit. Default: m.
- cur
Instance stringDeadline - 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.
- renew
Flag 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.
- time
Unit string - newly purchased unit. Default: m.
- cur_
instance_ strdeadline - 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.
- cur
Instance StringDeadline - 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.
- renew
Flag 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.
- time
Unit 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.