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

opentelekomcloud.getVbsBackupV2

Explore with Pulumi AI

opentelekomcloud 1.36.35 published on Monday, Apr 14, 2025 by opentelekomcloud

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

Use this data source to get details about a specific VBS Backup.

Example Usage

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

const config = new pulumi.Config();
const backupId = config.requireObject("backupId");
const mybackup = opentelekomcloud.getVbsBackupV2({
    id: backupId,
});
Copy
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud

config = pulumi.Config()
backup_id = config.require_object("backupId")
mybackup = opentelekomcloud.get_vbs_backup_v2(id=backup_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, "")
		backupId := cfg.RequireObject("backupId")
		_, err := opentelekomcloud.LookupVbsBackupV2(ctx, &opentelekomcloud.LookupVbsBackupV2Args{
			Id: pulumi.StringRef(backupId),
		}, nil)
		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 backupId = config.RequireObject<dynamic>("backupId");
    var mybackup = Opentelekomcloud.GetVbsBackupV2.Invoke(new()
    {
        Id = backupId,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.OpentelekomcloudFunctions;
import com.pulumi.opentelekomcloud.inputs.GetVbsBackupV2Args;
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 backupId = config.get("backupId");
        final var mybackup = OpentelekomcloudFunctions.getVbsBackupV2(GetVbsBackupV2Args.builder()
            .id(backupId)
            .build());

    }
}
Copy
configuration:
  backupId:
    type: dynamic
variables:
  mybackup:
    fn::invoke:
      function: opentelekomcloud:getVbsBackupV2
      arguments:
        id: ${backupId}
Copy

Using getVbsBackupV2

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getVbsBackupV2(args: GetVbsBackupV2Args, opts?: InvokeOptions): Promise<GetVbsBackupV2Result>
function getVbsBackupV2Output(args: GetVbsBackupV2OutputArgs, opts?: InvokeOptions): Output<GetVbsBackupV2Result>
Copy
def get_vbs_backup_v2(id: Optional[str] = None,
                      name: Optional[str] = None,
                      region: Optional[str] = None,
                      snapshot_id: Optional[str] = None,
                      status: Optional[str] = None,
                      volume_id: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetVbsBackupV2Result
def get_vbs_backup_v2_output(id: Optional[pulumi.Input[str]] = None,
                      name: Optional[pulumi.Input[str]] = None,
                      region: Optional[pulumi.Input[str]] = None,
                      snapshot_id: Optional[pulumi.Input[str]] = None,
                      status: Optional[pulumi.Input[str]] = None,
                      volume_id: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetVbsBackupV2Result]
Copy
func LookupVbsBackupV2(ctx *Context, args *LookupVbsBackupV2Args, opts ...InvokeOption) (*LookupVbsBackupV2Result, error)
func LookupVbsBackupV2Output(ctx *Context, args *LookupVbsBackupV2OutputArgs, opts ...InvokeOption) LookupVbsBackupV2ResultOutput
Copy

> Note: This function is named LookupVbsBackupV2 in the Go SDK.

public static class GetVbsBackupV2 
{
    public static Task<GetVbsBackupV2Result> InvokeAsync(GetVbsBackupV2Args args, InvokeOptions? opts = null)
    public static Output<GetVbsBackupV2Result> Invoke(GetVbsBackupV2InvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetVbsBackupV2Result> getVbsBackupV2(GetVbsBackupV2Args args, InvokeOptions options)
public static Output<GetVbsBackupV2Result> getVbsBackupV2(GetVbsBackupV2Args args, InvokeOptions options)
Copy
fn::invoke:
  function: opentelekomcloud:index/getVbsBackupV2:getVbsBackupV2
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Id string
The id of the vbs backup.
Name string
The name of the vbs backup.
Region string
SnapshotId string
ID of the snapshot associated with the backup.
Status string
The status of the VBS backup.
VolumeId string
The source volume ID of the backup.
Id string
The id of the vbs backup.
Name string
The name of the vbs backup.
Region string
SnapshotId string
ID of the snapshot associated with the backup.
Status string
The status of the VBS backup.
VolumeId string
The source volume ID of the backup.
id String
The id of the vbs backup.
name String
The name of the vbs backup.
region String
snapshotId String
ID of the snapshot associated with the backup.
status String
The status of the VBS backup.
volumeId String
The source volume ID of the backup.
id string
The id of the vbs backup.
name string
The name of the vbs backup.
region string
snapshotId string
ID of the snapshot associated with the backup.
status string
The status of the VBS backup.
volumeId string
The source volume ID of the backup.
id str
The id of the vbs backup.
name str
The name of the vbs backup.
region str
snapshot_id str
ID of the snapshot associated with the backup.
status str
The status of the VBS backup.
volume_id str
The source volume ID of the backup.
id String
The id of the vbs backup.
name String
The name of the vbs backup.
region String
snapshotId String
ID of the snapshot associated with the backup.
status String
The status of the VBS backup.
volumeId String
The source volume ID of the backup.

getVbsBackupV2 Result

The following output properties are available:

AvailabilityZone string
The AZ where the backup resides.
Container string
The container of the backup.
Description string
The description of the vbs backup.
Region string
ServiceMetadata string
The metadata of the vbs backup.
ShareIds List<string>
The backup share IDs.
Size double
The size of the vbs backup.
ToProjectIds List<string>
IDs of projects with which the backup is shared.
Id string
Name string
SnapshotId string
Status string
VolumeId string
AvailabilityZone string
The AZ where the backup resides.
Container string
The container of the backup.
Description string
The description of the vbs backup.
Region string
ServiceMetadata string
The metadata of the vbs backup.
ShareIds []string
The backup share IDs.
Size float64
The size of the vbs backup.
ToProjectIds []string
IDs of projects with which the backup is shared.
Id string
Name string
SnapshotId string
Status string
VolumeId string
availabilityZone String
The AZ where the backup resides.
container String
The container of the backup.
description String
The description of the vbs backup.
region String
serviceMetadata String
The metadata of the vbs backup.
shareIds List<String>
The backup share IDs.
size Double
The size of the vbs backup.
toProjectIds List<String>
IDs of projects with which the backup is shared.
id String
name String
snapshotId String
status String
volumeId String
availabilityZone string
The AZ where the backup resides.
container string
The container of the backup.
description string
The description of the vbs backup.
region string
serviceMetadata string
The metadata of the vbs backup.
shareIds string[]
The backup share IDs.
size number
The size of the vbs backup.
toProjectIds string[]
IDs of projects with which the backup is shared.
id string
name string
snapshotId string
status string
volumeId string
availability_zone str
The AZ where the backup resides.
container str
The container of the backup.
description str
The description of the vbs backup.
region str
service_metadata str
The metadata of the vbs backup.
share_ids Sequence[str]
The backup share IDs.
size float
The size of the vbs backup.
to_project_ids Sequence[str]
IDs of projects with which the backup is shared.
id str
name str
snapshot_id str
status str
volume_id str
availabilityZone String
The AZ where the backup resides.
container String
The container of the backup.
description String
The description of the vbs backup.
region String
serviceMetadata String
The metadata of the vbs backup.
shareIds List<String>
The backup share IDs.
size Number
The size of the vbs backup.
toProjectIds List<String>
IDs of projects with which the backup is shared.
id String
name String
snapshotId String
status String
volumeId String

Package Details

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