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

flexibleengine.getVbsBackupV2

Explore with Pulumi AI

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

    The VBS Backup data source provides details about a specific VBS Backup.

    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 mybackup = flexibleengine.getVbsBackupV2({
        name: backupName,
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    config = pulumi.Config()
    backup_name = config.require_object("backupName")
    mybackup = flexibleengine.get_vbs_backup_v2(name=backup_name)
    
    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")
    		_, err := flexibleengine.LookupVbsBackupV2(ctx, &flexibleengine.LookupVbsBackupV2Args{
    			Name: pulumi.StringRef(backupName),
    		}, nil)
    		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 mybackup = Flexibleengine.GetVbsBackupV2.Invoke(new()
        {
            Name = backupName,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.FlexibleengineFunctions;
    import com.pulumi.flexibleengine.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 backupName = config.get("backupName");
            final var mybackup = FlexibleengineFunctions.getVbsBackupV2(GetVbsBackupV2Args.builder()
                .name(backupName)
                .build());
    
        }
    }
    
    configuration:
      backupName:
        type: dynamic
    variables:
      mybackup:
        fn::invoke:
          function: flexibleengine:getVbsBackupV2
          arguments:
            name: ${backupName}
    

    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>
    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]
    func LookupVbsBackupV2(ctx *Context, args *LookupVbsBackupV2Args, opts ...InvokeOption) (*LookupVbsBackupV2Result, error)
    func LookupVbsBackupV2Output(ctx *Context, args *LookupVbsBackupV2OutputArgs, opts ...InvokeOption) LookupVbsBackupV2ResultOutput

    > 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)
    }
    public static CompletableFuture<GetVbsBackupV2Result> getVbsBackupV2(GetVbsBackupV2Args args, InvokeOptions options)
    public static Output<GetVbsBackupV2Result> getVbsBackupV2(GetVbsBackupV2Args args, InvokeOptions options)
    
    fn::invoke:
      function: flexibleengine:index/getVbsBackupV2:getVbsBackupV2
      arguments:
        # arguments dictionary

    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.
    Size double
    The size of the vbs backup.
    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.
    Size float64
    The size of the vbs backup.
    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.
    size Double
    The size of the vbs backup.
    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.
    size number
    The size of the vbs backup.
    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.
    size float
    The size of the vbs backup.
    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.
    size Number
    The size of the vbs backup.
    id String
    name String
    snapshotId String
    status String
    volumeId String

    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