tencentcloud.LighthouseDiskBackup
Explore with Pulumi AI
Provides a resource to create a lighthouse disk_backup
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const diskBackup = new tencentcloud.LighthouseDiskBackup("diskBackup", {
diskBackupName: "disk-backup",
diskId: "lhdisk-xxxxx",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
disk_backup = tencentcloud.LighthouseDiskBackup("diskBackup",
disk_backup_name="disk-backup",
disk_id="lhdisk-xxxxx")
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.NewLighthouseDiskBackup(ctx, "diskBackup", &tencentcloud.LighthouseDiskBackupArgs{
DiskBackupName: pulumi.String("disk-backup"),
DiskId: pulumi.String("lhdisk-xxxxx"),
})
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 diskBackup = new Tencentcloud.LighthouseDiskBackup("diskBackup", new()
{
DiskBackupName = "disk-backup",
DiskId = "lhdisk-xxxxx",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.LighthouseDiskBackup;
import com.pulumi.tencentcloud.LighthouseDiskBackupArgs;
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 diskBackup = new LighthouseDiskBackup("diskBackup", LighthouseDiskBackupArgs.builder()
.diskBackupName("disk-backup")
.diskId("lhdisk-xxxxx")
.build());
}
}
resources:
diskBackup:
type: tencentcloud:LighthouseDiskBackup
properties:
diskBackupName: disk-backup
diskId: lhdisk-xxxxx
Create LighthouseDiskBackup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LighthouseDiskBackup(name: string, args: LighthouseDiskBackupArgs, opts?: CustomResourceOptions);
@overload
def LighthouseDiskBackup(resource_name: str,
args: LighthouseDiskBackupArgs,
opts: Optional[ResourceOptions] = None)
@overload
def LighthouseDiskBackup(resource_name: str,
opts: Optional[ResourceOptions] = None,
disk_id: Optional[str] = None,
disk_backup_name: Optional[str] = None,
lighthouse_disk_backup_id: Optional[str] = None)
func NewLighthouseDiskBackup(ctx *Context, name string, args LighthouseDiskBackupArgs, opts ...ResourceOption) (*LighthouseDiskBackup, error)
public LighthouseDiskBackup(string name, LighthouseDiskBackupArgs args, CustomResourceOptions? opts = null)
public LighthouseDiskBackup(String name, LighthouseDiskBackupArgs args)
public LighthouseDiskBackup(String name, LighthouseDiskBackupArgs args, CustomResourceOptions options)
type: tencentcloud:LighthouseDiskBackup
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 LighthouseDiskBackupArgs
- 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 LighthouseDiskBackupArgs
- 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 LighthouseDiskBackupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LighthouseDiskBackupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LighthouseDiskBackupArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
LighthouseDiskBackup 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 LighthouseDiskBackup resource accepts the following input properties:
- Disk
Id string - Disk ID. Only data disks are supported to create disk backup.
- Disk
Backup stringName - Disk backup name. The maximum length is 90 characters.
- Lighthouse
Disk stringBackup Id - ID of the resource.
- Disk
Id string - Disk ID. Only data disks are supported to create disk backup.
- Disk
Backup stringName - Disk backup name. The maximum length is 90 characters.
- Lighthouse
Disk stringBackup Id - ID of the resource.
- disk
Id String - Disk ID. Only data disks are supported to create disk backup.
- disk
Backup StringName - Disk backup name. The maximum length is 90 characters.
- lighthouse
Disk StringBackup Id - ID of the resource.
- disk
Id string - Disk ID. Only data disks are supported to create disk backup.
- disk
Backup stringName - Disk backup name. The maximum length is 90 characters.
- lighthouse
Disk stringBackup Id - ID of the resource.
- disk_
id str - Disk ID. Only data disks are supported to create disk backup.
- disk_
backup_ strname - Disk backup name. The maximum length is 90 characters.
- lighthouse_
disk_ strbackup_ id - ID of the resource.
- disk
Id String - Disk ID. Only data disks are supported to create disk backup.
- disk
Backup StringName - Disk backup name. The maximum length is 90 characters.
- lighthouse
Disk StringBackup Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the LighthouseDiskBackup 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 LighthouseDiskBackup Resource
Get an existing LighthouseDiskBackup 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?: LighthouseDiskBackupState, opts?: CustomResourceOptions): LighthouseDiskBackup
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
disk_backup_name: Optional[str] = None,
disk_id: Optional[str] = None,
lighthouse_disk_backup_id: Optional[str] = None) -> LighthouseDiskBackup
func GetLighthouseDiskBackup(ctx *Context, name string, id IDInput, state *LighthouseDiskBackupState, opts ...ResourceOption) (*LighthouseDiskBackup, error)
public static LighthouseDiskBackup Get(string name, Input<string> id, LighthouseDiskBackupState? state, CustomResourceOptions? opts = null)
public static LighthouseDiskBackup get(String name, Output<String> id, LighthouseDiskBackupState state, CustomResourceOptions options)
resources: _: type: tencentcloud:LighthouseDiskBackup 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.
- Disk
Backup stringName - Disk backup name. The maximum length is 90 characters.
- Disk
Id string - Disk ID. Only data disks are supported to create disk backup.
- Lighthouse
Disk stringBackup Id - ID of the resource.
- Disk
Backup stringName - Disk backup name. The maximum length is 90 characters.
- Disk
Id string - Disk ID. Only data disks are supported to create disk backup.
- Lighthouse
Disk stringBackup Id - ID of the resource.
- disk
Backup StringName - Disk backup name. The maximum length is 90 characters.
- disk
Id String - Disk ID. Only data disks are supported to create disk backup.
- lighthouse
Disk StringBackup Id - ID of the resource.
- disk
Backup stringName - Disk backup name. The maximum length is 90 characters.
- disk
Id string - Disk ID. Only data disks are supported to create disk backup.
- lighthouse
Disk stringBackup Id - ID of the resource.
- disk_
backup_ strname - Disk backup name. The maximum length is 90 characters.
- disk_
id str - Disk ID. Only data disks are supported to create disk backup.
- lighthouse_
disk_ strbackup_ id - ID of the resource.
- disk
Backup StringName - Disk backup name. The maximum length is 90 characters.
- disk
Id String - Disk ID. Only data disks are supported to create disk backup.
- lighthouse
Disk StringBackup Id - ID of the resource.
Import
lighthouse disk_backup can be imported using the id, e.g.
$ pulumi import tencentcloud:index/lighthouseDiskBackup:LighthouseDiskBackup disk_backup disk_backup_id
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.