flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud
flexibleengine.getVbsBackupV2
Explore with Pulumi AI
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:
getVbsBackupV2 Result
The following output properties are available:
- Availability
Zone string - The AZ where the backup resides.
- Container string
- The container of the backup.
- Description string
- The description of the vbs backup.
- Region string
- Service
Metadata string - The metadata of the vbs backup.
- Size double
- The size of the vbs backup.
- Id string
- Name string
- Snapshot
Id string - Status string
- Volume
Id string
- Availability
Zone string - The AZ where the backup resides.
- Container string
- The container of the backup.
- Description string
- The description of the vbs backup.
- Region string
- Service
Metadata string - The metadata of the vbs backup.
- Size float64
- The size of the vbs backup.
- Id string
- Name string
- Snapshot
Id string - Status string
- Volume
Id string
- availability
Zone String - The AZ where the backup resides.
- container String
- The container of the backup.
- description String
- The description of the vbs backup.
- region String
- service
Metadata String - The metadata of the vbs backup.
- size Double
- The size of the vbs backup.
- id String
- name String
- snapshot
Id String - status String
- volume
Id String
- availability
Zone string - The AZ where the backup resides.
- container string
- The container of the backup.
- description string
- The description of the vbs backup.
- region string
- service
Metadata string - The metadata of the vbs backup.
- size number
- The size of the vbs backup.
- id string
- name string
- snapshot
Id string - status string
- volume
Id 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
- availability
Zone String - The AZ where the backup resides.
- container String
- The container of the backup.
- description String
- The description of the vbs backup.
- region String
- service
Metadata String - The metadata of the vbs backup.
- size Number
- The size of the vbs backup.
- id String
- name String
- snapshot
Id String - status String
- volume
Id String
Package Details
- Repository
- flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
- License
- Notes
- This Pulumi package is based on the
flexibleengine
Terraform Provider.
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud