1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. VbsBackupV2
opentelekomcloud 1.36.35 published on Monday, Apr 14, 2025 by opentelekomcloud

opentelekomcloud.VbsBackupV2

Explore with Pulumi AI

Up-to-date reference of API arguments for VBS backup you can get at documentation portal

Provides an VBS Backup resource within OpenTelekomCloud.

~> Deprecated, use opentelekomcloud.CbrVaultV3 resource instead.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";

const config = new pulumi.Config();
const backupName = config.requireObject("backupName");
const volumeId = config.requireObject("volumeId");
const mybackup = new opentelekomcloud.VbsBackupV2("mybackup", {volumeId: volumeId});
Copy
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud

config = pulumi.Config()
backup_name = config.require_object("backupName")
volume_id = config.require_object("volumeId")
mybackup = opentelekomcloud.VbsBackupV2("mybackup", volume_id=volume_id)
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
	"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 := opentelekomcloud.NewVbsBackupV2(ctx, "mybackup", &opentelekomcloud.VbsBackupV2Args{
			VolumeId: pulumi.Any(volumeId),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;

return await Deployment.RunAsync(() => 
{
    var config = new Config();
    var backupName = config.RequireObject<dynamic>("backupName");
    var volumeId = config.RequireObject<dynamic>("volumeId");
    var mybackup = new Opentelekomcloud.VbsBackupV2("mybackup", new()
    {
        VolumeId = volumeId,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.VbsBackupV2;
import com.pulumi.opentelekomcloud.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());

    }
}
Copy
configuration:
  backupName:
    type: dynamic
  volumeId:
    type: dynamic
resources:
  mybackup:
    type: opentelekomcloud:VbsBackupV2
    properties:
      volumeId: ${volumeId}
Copy

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,
                tags: Optional[Sequence[VbsBackupV2TagArgs]] = 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: opentelekomcloud:VbsBackupV2
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. VbsBackupV2Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. VbsBackupV2Args
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. VbsBackupV2Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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 Opentelekomcloud.VbsBackupV2("vbsBackupV2Resource", new()
{
    VolumeId = "string",
    Description = "string",
    Name = "string",
    Region = "string",
    SnapshotId = "string",
    Tags = new[]
    {
        new Opentelekomcloud.Inputs.VbsBackupV2TagArgs
        {
            Key = "string",
            Value = "string",
        },
    },
    Timeouts = new Opentelekomcloud.Inputs.VbsBackupV2TimeoutsArgs
    {
        Create = "string",
        Delete = "string",
    },
    VbsBackupV2Id = "string",
});
Copy
example, err := opentelekomcloud.NewVbsBackupV2(ctx, "vbsBackupV2Resource", &opentelekomcloud.VbsBackupV2Args{
VolumeId: pulumi.String("string"),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
Region: pulumi.String("string"),
SnapshotId: pulumi.String("string"),
Tags: .VbsBackupV2TagArray{
&.VbsBackupV2TagArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
Timeouts: &.VbsBackupV2TimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
VbsBackupV2Id: pulumi.String("string"),
})
Copy
var vbsBackupV2Resource = new VbsBackupV2("vbsBackupV2Resource", VbsBackupV2Args.builder()
    .volumeId("string")
    .description("string")
    .name("string")
    .region("string")
    .snapshotId("string")
    .tags(VbsBackupV2TagArgs.builder()
        .key("string")
        .value("string")
        .build())
    .timeouts(VbsBackupV2TimeoutsArgs.builder()
        .create("string")
        .delete("string")
        .build())
    .vbsBackupV2Id("string")
    .build());
Copy
vbs_backup_v2_resource = opentelekomcloud.VbsBackupV2("vbsBackupV2Resource",
    volume_id="string",
    description="string",
    name="string",
    region="string",
    snapshot_id="string",
    tags=[{
        "key": "string",
        "value": "string",
    }],
    timeouts={
        "create": "string",
        "delete": "string",
    },
    vbs_backup_v2_id="string")
Copy
const vbsBackupV2Resource = new opentelekomcloud.VbsBackupV2("vbsBackupV2Resource", {
    volumeId: "string",
    description: "string",
    name: "string",
    region: "string",
    snapshotId: "string",
    tags: [{
        key: "string",
        value: "string",
    }],
    timeouts: {
        create: "string",
        "delete": "string",
    },
    vbsBackupV2Id: "string",
});
Copy
type: opentelekomcloud:VbsBackupV2
properties:
    description: string
    name: string
    region: string
    snapshotId: string
    tags:
        - key: string
          value: string
    timeouts:
        create: string
        delete: string
    vbsBackupV2Id: string
    volumeId: string
Copy

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 This property is required. 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.
Tags List<VbsBackupV2Tag>
List of tags to be configured for the backup resources. Changing the parameter will create new resource.
Timeouts VbsBackupV2Timeouts
VbsBackupV2Id string
The id of the vbs backup.
VolumeId This property is required. 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.
Tags []VbsBackupV2TagArgs
List of tags to be configured for the backup resources. Changing the parameter will create new resource.
Timeouts VbsBackupV2TimeoutsArgs
VbsBackupV2Id string
The id of the vbs backup.
volumeId This property is required. 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.
tags List<VbsBackupV2Tag>
List of tags to be configured for the backup resources. Changing the parameter will create new resource.
timeouts VbsBackupV2Timeouts
vbsBackupV2Id String
The id of the vbs backup.
volumeId This property is required. 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.
tags VbsBackupV2Tag[]
List of tags to be configured for the backup resources. Changing the parameter will create new resource.
timeouts VbsBackupV2Timeouts
vbsBackupV2Id string
The id of the vbs backup.
volume_id This property is required. 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.
tags Sequence[VbsBackupV2TagArgs]
List of tags to be configured for the backup resources. Changing the parameter will create new resource.
timeouts VbsBackupV2TimeoutsArgs
vbs_backup_v2_id str
The id of the vbs backup.
volumeId This property is required. 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.
tags List<Property Map>
List of tags to be configured for the backup resources. 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,
        tags: Optional[Sequence[VbsBackupV2TagArgs]] = 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: opentelekomcloud:VbsBackupV2    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
Tags List<VbsBackupV2Tag>
List of tags to be configured for the backup resources. 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.
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.
Tags []VbsBackupV2TagArgs
List of tags to be configured for the backup resources. 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.
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.
tags List<VbsBackupV2Tag>
List of tags to be configured for the backup resources. 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.
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.
tags VbsBackupV2Tag[]
List of tags to be configured for the backup resources. 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.
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.
tags Sequence[VbsBackupV2TagArgs]
List of tags to be configured for the backup resources. Changing the parameter will create new resource.
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.
tags List<Property Map>
List of tags to be configured for the backup resources. Changing the parameter will create new resource.
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

VbsBackupV2Tag
, VbsBackupV2TagArgs

Key This property is required. string
Specifies the tag key.
Value This property is required. string
Specifies the tag value.
Key This property is required. string
Specifies the tag key.
Value This property is required. string
Specifies the tag value.
key This property is required. String
Specifies the tag key.
value This property is required. String
Specifies the tag value.
key This property is required. string
Specifies the tag key.
value This property is required. string
Specifies the tag value.
key This property is required. str
Specifies the tag key.
value This property is required. str
Specifies the tag value.
key This property is required. String
Specifies the tag key.
value This property is required. String
Specifies the tag value.

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 opentelekomcloud:index/vbsBackupV2:VbsBackupV2 mybackup 4779ab1c-7c1a-44b1-a02e-93dfc361b32d
Copy

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

Package Details

Repository
opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
License
Notes
This Pulumi package is based on the opentelekomcloud Terraform Provider.