1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. VbsBackupV2
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.VbsBackupV2

Explore with Pulumi AI

flexibleengine logo
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

    Provides an VBS Backup resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const config = new pulumi.Config();
    const backupName = config.requireObject("backupName");
    const volumeId = config.requireObject("volumeId");
    const mybackup = new flexibleengine.VbsBackupV2("mybackup", {volumeId: volumeId});
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    config = pulumi.Config()
    backup_name = config.require_object("backupName")
    volume_id = config.require_object("volumeId")
    mybackup = flexibleengine.VbsBackupV2("mybackup", volume_id=volume_id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		backupName := cfg.RequireObject("backupName")
    		volumeId := cfg.RequireObject("volumeId")
    		_, err := flexibleengine.NewVbsBackupV2(ctx, "mybackup", &flexibleengine.VbsBackupV2Args{
    			VolumeId: pulumi.Any(volumeId),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Flexibleengine = Pulumi.Flexibleengine;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var backupName = config.RequireObject<dynamic>("backupName");
        var volumeId = config.RequireObject<dynamic>("volumeId");
        var mybackup = new Flexibleengine.VbsBackupV2("mybackup", new()
        {
            VolumeId = volumeId,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.VbsBackupV2;
    import com.pulumi.flexibleengine.VbsBackupV2Args;
    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 config = ctx.config();
            final var backupName = config.get("backupName");
            final var volumeId = config.get("volumeId");
            var mybackup = new VbsBackupV2("mybackup", VbsBackupV2Args.builder()
                .volumeId(volumeId)
                .build());
    
        }
    }
    
    configuration:
      backupName:
        type: dynamic
      volumeId:
        type: dynamic
    resources:
      mybackup:
        type: flexibleengine:VbsBackupV2
        properties:
          volumeId: ${volumeId}
    

    Create VbsBackupV2 Resource

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

    Constructor syntax

    new VbsBackupV2(name: string, args: VbsBackupV2Args, opts?: CustomResourceOptions);
    @overload
    def VbsBackupV2(resource_name: str,
                    args: VbsBackupV2Args,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def VbsBackupV2(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    volume_id: Optional[str] = None,
                    description: Optional[str] = None,
                    name: Optional[str] = None,
                    region: Optional[str] = None,
                    snapshot_id: Optional[str] = None,
                    timeouts: Optional[VbsBackupV2TimeoutsArgs] = None,
                    vbs_backup_v2_id: Optional[str] = None)
    func NewVbsBackupV2(ctx *Context, name string, args VbsBackupV2Args, opts ...ResourceOption) (*VbsBackupV2, error)
    public VbsBackupV2(string name, VbsBackupV2Args args, CustomResourceOptions? opts = null)
    public VbsBackupV2(String name, VbsBackupV2Args args)
    public VbsBackupV2(String name, VbsBackupV2Args args, CustomResourceOptions options)
    
    type: flexibleengine:VbsBackupV2
    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 VbsBackupV2Args
    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 VbsBackupV2Args
    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 VbsBackupV2Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VbsBackupV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VbsBackupV2Args
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var vbsBackupV2Resource = new Flexibleengine.VbsBackupV2("vbsBackupV2Resource", new()
    {
        VolumeId = "string",
        Description = "string",
        Name = "string",
        Region = "string",
        SnapshotId = "string",
        Timeouts = new Flexibleengine.Inputs.VbsBackupV2TimeoutsArgs
        {
            Create = "string",
            Delete = "string",
        },
        VbsBackupV2Id = "string",
    });
    
    example, err := flexibleengine.NewVbsBackupV2(ctx, "vbsBackupV2Resource", &flexibleengine.VbsBackupV2Args{
    	VolumeId:    pulumi.String("string"),
    	Description: pulumi.String("string"),
    	Name:        pulumi.String("string"),
    	Region:      pulumi.String("string"),
    	SnapshotId:  pulumi.String("string"),
    	Timeouts: &flexibleengine.VbsBackupV2TimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    	},
    	VbsBackupV2Id: pulumi.String("string"),
    })
    
    var vbsBackupV2Resource = new VbsBackupV2("vbsBackupV2Resource", VbsBackupV2Args.builder()
        .volumeId("string")
        .description("string")
        .name("string")
        .region("string")
        .snapshotId("string")
        .timeouts(VbsBackupV2TimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .build())
        .vbsBackupV2Id("string")
        .build());
    
    vbs_backup_v2_resource = flexibleengine.VbsBackupV2("vbsBackupV2Resource",
        volume_id="string",
        description="string",
        name="string",
        region="string",
        snapshot_id="string",
        timeouts={
            "create": "string",
            "delete": "string",
        },
        vbs_backup_v2_id="string")
    
    const vbsBackupV2Resource = new flexibleengine.VbsBackupV2("vbsBackupV2Resource", {
        volumeId: "string",
        description: "string",
        name: "string",
        region: "string",
        snapshotId: "string",
        timeouts: {
            create: "string",
            "delete": "string",
        },
        vbsBackupV2Id: "string",
    });
    
    type: flexibleengine:VbsBackupV2
    properties:
        description: string
        name: string
        region: string
        snapshotId: string
        timeouts:
            create: string
            delete: string
        vbsBackupV2Id: string
        volumeId: string
    

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

    VolumeId string
    The id of the disk to be backed up. Changing the parameter will create new resource.
    Description string
    The description of the vbs backup. Changing the parameter will create new resource.
    Name string
    The name of the vbs backup. Changing the parameter will create new resource.
    Region string
    SnapshotId string
    The snapshot id of the disk to be backed up. Changing the parameter will create new resource.
    Timeouts VbsBackupV2Timeouts
    VbsBackupV2Id string
    The id of the vbs backup.
    VolumeId string
    The id of the disk to be backed up. Changing the parameter will create new resource.
    Description string
    The description of the vbs backup. Changing the parameter will create new resource.
    Name string
    The name of the vbs backup. Changing the parameter will create new resource.
    Region string
    SnapshotId string
    The snapshot id of the disk to be backed up. Changing the parameter will create new resource.
    Timeouts VbsBackupV2TimeoutsArgs
    VbsBackupV2Id string
    The id of the vbs backup.
    volumeId String
    The id of the disk to be backed up. Changing the parameter will create new resource.
    description String
    The description of the vbs backup. Changing the parameter will create new resource.
    name String
    The name of the vbs backup. Changing the parameter will create new resource.
    region String
    snapshotId String
    The snapshot id of the disk to be backed up. Changing the parameter will create new resource.
    timeouts VbsBackupV2Timeouts
    vbsBackupV2Id String
    The id of the vbs backup.
    volumeId string
    The id of the disk to be backed up. Changing the parameter will create new resource.
    description string
    The description of the vbs backup. Changing the parameter will create new resource.
    name string
    The name of the vbs backup. Changing the parameter will create new resource.
    region string
    snapshotId string
    The snapshot id of the disk to be backed up. Changing the parameter will create new resource.
    timeouts VbsBackupV2Timeouts
    vbsBackupV2Id string
    The id of the vbs backup.
    volume_id str
    The id of the disk to be backed up. Changing the parameter will create new resource.
    description str
    The description of the vbs backup. Changing the parameter will create new resource.
    name str
    The name of the vbs backup. Changing the parameter will create new resource.
    region str
    snapshot_id str
    The snapshot id of the disk to be backed up. Changing the parameter will create new resource.
    timeouts VbsBackupV2TimeoutsArgs
    vbs_backup_v2_id str
    The id of the vbs backup.
    volumeId String
    The id of the disk to be backed up. Changing the parameter will create new resource.
    description String
    The description of the vbs backup. Changing the parameter will create new resource.
    name String
    The name of the vbs backup. Changing the parameter will create new resource.
    region String
    snapshotId String
    The snapshot id of the disk to be backed up. Changing the parameter will create new resource.
    timeouts Property Map
    vbsBackupV2Id String
    The id of the vbs backup.

    Outputs

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

    AvailabilityZone string
    The AZ where the backup resides.
    Container string
    The container of the backup.
    Id string
    The provider-assigned unique ID for this managed resource.
    ServiceMetadata string
    The metadata of the vbs backup.
    Size double
    The size of the vbs backup.
    Status string
    The status of the VBS backup.
    AvailabilityZone string
    The AZ where the backup resides.
    Container string
    The container of the backup.
    Id string
    The provider-assigned unique ID for this managed resource.
    ServiceMetadata string
    The metadata of the vbs backup.
    Size float64
    The size of the vbs backup.
    Status string
    The status of the VBS backup.
    availabilityZone String
    The AZ where the backup resides.
    container String
    The container of the backup.
    id String
    The provider-assigned unique ID for this managed resource.
    serviceMetadata String
    The metadata of the vbs backup.
    size Double
    The size of the vbs backup.
    status String
    The status of the VBS backup.
    availabilityZone string
    The AZ where the backup resides.
    container string
    The container of the backup.
    id string
    The provider-assigned unique ID for this managed resource.
    serviceMetadata string
    The metadata of the vbs backup.
    size number
    The size of the vbs backup.
    status string
    The status of the VBS backup.
    availability_zone str
    The AZ where the backup resides.
    container str
    The container of the backup.
    id str
    The provider-assigned unique ID for this managed resource.
    service_metadata str
    The metadata of the vbs backup.
    size float
    The size of the vbs backup.
    status str
    The status of the VBS backup.
    availabilityZone String
    The AZ where the backup resides.
    container String
    The container of the backup.
    id String
    The provider-assigned unique ID for this managed resource.
    serviceMetadata String
    The metadata of the vbs backup.
    size Number
    The size of the vbs backup.
    status String
    The status of the VBS backup.

    Look up Existing VbsBackupV2 Resource

    Get an existing VbsBackupV2 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?: VbsBackupV2State, opts?: CustomResourceOptions): VbsBackupV2
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            availability_zone: Optional[str] = None,
            container: Optional[str] = None,
            description: Optional[str] = None,
            name: Optional[str] = None,
            region: Optional[str] = None,
            service_metadata: Optional[str] = None,
            size: Optional[float] = None,
            snapshot_id: Optional[str] = None,
            status: Optional[str] = None,
            timeouts: Optional[VbsBackupV2TimeoutsArgs] = None,
            vbs_backup_v2_id: Optional[str] = None,
            volume_id: Optional[str] = None) -> VbsBackupV2
    func GetVbsBackupV2(ctx *Context, name string, id IDInput, state *VbsBackupV2State, opts ...ResourceOption) (*VbsBackupV2, error)
    public static VbsBackupV2 Get(string name, Input<string> id, VbsBackupV2State? state, CustomResourceOptions? opts = null)
    public static VbsBackupV2 get(String name, Output<String> id, VbsBackupV2State state, CustomResourceOptions options)
    resources:  _:    type: flexibleengine:VbsBackupV2    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:
    AvailabilityZone string
    The AZ where the backup resides.
    Container string
    The container of the backup.
    Description string
    The description of the vbs backup. Changing the parameter will create new resource.
    Name string
    The name of the vbs backup. Changing the parameter will create new resource.
    Region string
    ServiceMetadata string
    The metadata of the vbs backup.
    Size double
    The size of the vbs backup.
    SnapshotId string
    The snapshot id of the disk to be backed up. Changing the parameter will create new resource.
    Status string
    The status of the VBS backup.
    Timeouts VbsBackupV2Timeouts
    VbsBackupV2Id string
    The id of the vbs backup.
    VolumeId string
    The id of the disk to be backed up. Changing the parameter will create new resource.
    AvailabilityZone string
    The AZ where the backup resides.
    Container string
    The container of the backup.
    Description string
    The description of the vbs backup. Changing the parameter will create new resource.
    Name string
    The name of the vbs backup. Changing the parameter will create new resource.
    Region string
    ServiceMetadata string
    The metadata of the vbs backup.
    Size float64
    The size of the vbs backup.
    SnapshotId string
    The snapshot id of the disk to be backed up. Changing the parameter will create new resource.
    Status string
    The status of the VBS backup.
    Timeouts VbsBackupV2TimeoutsArgs
    VbsBackupV2Id string
    The id of the vbs backup.
    VolumeId string
    The id of the disk to be backed up. Changing the parameter will create new resource.
    availabilityZone String
    The AZ where the backup resides.
    container String
    The container of the backup.
    description String
    The description of the vbs backup. Changing the parameter will create new resource.
    name String
    The name of the vbs backup. Changing the parameter will create new resource.
    region String
    serviceMetadata String
    The metadata of the vbs backup.
    size Double
    The size of the vbs backup.
    snapshotId String
    The snapshot id of the disk to be backed up. Changing the parameter will create new resource.
    status String
    The status of the VBS backup.
    timeouts VbsBackupV2Timeouts
    vbsBackupV2Id String
    The id of the vbs backup.
    volumeId String
    The id of the disk to be backed up. Changing the parameter will create new resource.
    availabilityZone string
    The AZ where the backup resides.
    container string
    The container of the backup.
    description string
    The description of the vbs backup. Changing the parameter will create new resource.
    name string
    The name of the vbs backup. Changing the parameter will create new resource.
    region string
    serviceMetadata string
    The metadata of the vbs backup.
    size number
    The size of the vbs backup.
    snapshotId string
    The snapshot id of the disk to be backed up. Changing the parameter will create new resource.
    status string
    The status of the VBS backup.
    timeouts VbsBackupV2Timeouts
    vbsBackupV2Id string
    The id of the vbs backup.
    volumeId string
    The id of the disk to be backed up. Changing the parameter will create new resource.
    availability_zone str
    The AZ where the backup resides.
    container str
    The container of the backup.
    description str
    The description of the vbs backup. Changing the parameter will create new resource.
    name str
    The name of the vbs backup. Changing the parameter will create new resource.
    region str
    service_metadata str
    The metadata of the vbs backup.
    size float
    The size of the vbs backup.
    snapshot_id str
    The snapshot id of the disk to be backed up. Changing the parameter will create new resource.
    status str
    The status of the VBS backup.
    timeouts VbsBackupV2TimeoutsArgs
    vbs_backup_v2_id str
    The id of the vbs backup.
    volume_id str
    The id of the disk to be backed up. Changing the parameter will create new resource.
    availabilityZone String
    The AZ where the backup resides.
    container String
    The container of the backup.
    description String
    The description of the vbs backup. Changing the parameter will create new resource.
    name String
    The name of the vbs backup. Changing the parameter will create new resource.
    region String
    serviceMetadata String
    The metadata of the vbs backup.
    size Number
    The size of the vbs backup.
    snapshotId String
    The snapshot id of the disk to be backed up. Changing the parameter will create new resource.
    status String
    The status of the VBS backup.
    timeouts Property Map
    vbsBackupV2Id String
    The id of the vbs backup.
    volumeId String
    The id of the disk to be backed up. Changing the parameter will create new resource.

    Supporting Types

    VbsBackupV2Timeouts, VbsBackupV2TimeoutsArgs

    Create string
    Delete string
    Create string
    Delete string
    create String
    delete String
    create string
    delete string
    create str
    delete str
    create String
    delete String

    Import

    VBS Backup can be imported using the backup id, e.g.

    $ pulumi import flexibleengine:index/vbsBackupV2:VbsBackupV2 mybackup 4779ab1c-7c1a-44b1-a02e-93dfc361b32d
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
    License
    Notes
    This Pulumi package is based on the flexibleengine Terraform Provider.
    flexibleengine logo
    flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud