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

flexibleengine.getVbsBackupPolicyV2

Explore with Pulumi AI

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

    The VBS Backup Policy data source provides details about a specific VBS backup policy.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const config = new pulumi.Config();
    const policyName = config.requireObject("policyName");
    const policies = flexibleengine.getVbsBackupPolicyV2({
        name: policyName,
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    config = pulumi.Config()
    policy_name = config.require_object("policyName")
    policies = flexibleengine.get_vbs_backup_policy_v2(name=policy_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, "")
    		policyName := cfg.RequireObject("policyName")
    		_, err := flexibleengine.LookupVbsBackupPolicyV2(ctx, &flexibleengine.LookupVbsBackupPolicyV2Args{
    			Name: pulumi.StringRef(policyName),
    		}, 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 policyName = config.RequireObject<dynamic>("policyName");
        var policies = Flexibleengine.GetVbsBackupPolicyV2.Invoke(new()
        {
            Name = policyName,
        });
    
    });
    
    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.GetVbsBackupPolicyV2Args;
    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 policyName = config.get("policyName");
            final var policies = FlexibleengineFunctions.getVbsBackupPolicyV2(GetVbsBackupPolicyV2Args.builder()
                .name(policyName)
                .build());
    
        }
    }
    
    configuration:
      policyName:
        type: dynamic
    variables:
      policies:
        fn::invoke:
          function: flexibleengine:getVbsBackupPolicyV2
          arguments:
            name: ${policyName}
    

    Using getVbsBackupPolicyV2

    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 getVbsBackupPolicyV2(args: GetVbsBackupPolicyV2Args, opts?: InvokeOptions): Promise<GetVbsBackupPolicyV2Result>
    function getVbsBackupPolicyV2Output(args: GetVbsBackupPolicyV2OutputArgs, opts?: InvokeOptions): Output<GetVbsBackupPolicyV2Result>
    def get_vbs_backup_policy_v2(id: Optional[str] = None,
                                 name: Optional[str] = None,
                                 policy_resource_count: Optional[float] = None,
                                 region: Optional[str] = None,
                                 status: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetVbsBackupPolicyV2Result
    def get_vbs_backup_policy_v2_output(id: Optional[pulumi.Input[str]] = None,
                                 name: Optional[pulumi.Input[str]] = None,
                                 policy_resource_count: Optional[pulumi.Input[float]] = None,
                                 region: Optional[pulumi.Input[str]] = None,
                                 status: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetVbsBackupPolicyV2Result]
    func LookupVbsBackupPolicyV2(ctx *Context, args *LookupVbsBackupPolicyV2Args, opts ...InvokeOption) (*LookupVbsBackupPolicyV2Result, error)
    func LookupVbsBackupPolicyV2Output(ctx *Context, args *LookupVbsBackupPolicyV2OutputArgs, opts ...InvokeOption) LookupVbsBackupPolicyV2ResultOutput

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

    public static class GetVbsBackupPolicyV2 
    {
        public static Task<GetVbsBackupPolicyV2Result> InvokeAsync(GetVbsBackupPolicyV2Args args, InvokeOptions? opts = null)
        public static Output<GetVbsBackupPolicyV2Result> Invoke(GetVbsBackupPolicyV2InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetVbsBackupPolicyV2Result> getVbsBackupPolicyV2(GetVbsBackupPolicyV2Args args, InvokeOptions options)
    public static Output<GetVbsBackupPolicyV2Result> getVbsBackupPolicyV2(GetVbsBackupPolicyV2Args args, InvokeOptions options)
    
    fn::invoke:
      function: flexibleengine:index/getVbsBackupPolicyV2:getVbsBackupPolicyV2
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    The ID of the specific VBS backup policy to retrieve.
    Name string
    The name of the specific VBS backup policy to retrieve.
    PolicyResourceCount double
    Specifies the number of volumes associated with the backup policy.
    Region string
    Status string
    The status of the specific VBS backup policy to retrieve. The values can be ON or OFF
    Id string
    The ID of the specific VBS backup policy to retrieve.
    Name string
    The name of the specific VBS backup policy to retrieve.
    PolicyResourceCount float64
    Specifies the number of volumes associated with the backup policy.
    Region string
    Status string
    The status of the specific VBS backup policy to retrieve. The values can be ON or OFF
    id String
    The ID of the specific VBS backup policy to retrieve.
    name String
    The name of the specific VBS backup policy to retrieve.
    policyResourceCount Double
    Specifies the number of volumes associated with the backup policy.
    region String
    status String
    The status of the specific VBS backup policy to retrieve. The values can be ON or OFF
    id string
    The ID of the specific VBS backup policy to retrieve.
    name string
    The name of the specific VBS backup policy to retrieve.
    policyResourceCount number
    Specifies the number of volumes associated with the backup policy.
    region string
    status string
    The status of the specific VBS backup policy to retrieve. The values can be ON or OFF
    id str
    The ID of the specific VBS backup policy to retrieve.
    name str
    The name of the specific VBS backup policy to retrieve.
    policy_resource_count float
    Specifies the number of volumes associated with the backup policy.
    region str
    status str
    The status of the specific VBS backup policy to retrieve. The values can be ON or OFF
    id String
    The ID of the specific VBS backup policy to retrieve.
    name String
    The name of the specific VBS backup policy to retrieve.
    policyResourceCount Number
    Specifies the number of volumes associated with the backup policy.
    region String
    status String
    The status of the specific VBS backup policy to retrieve. The values can be ON or OFF

    getVbsBackupPolicyV2 Result

    The following output properties are available:

    Frequency double
    Specifies the backup interval. The value is in the range of 1 to 14 days.
    Region string
    RemainFirstBackup string
    RententionNum double
    Specifies number of retained backups.
    StartTime string
    Specifies the start time of the backup job.The value is in the HH:mm format.
    Id string
    See Argument Reference above.
    Name string
    See Argument Reference above.
    PolicyResourceCount double
    Specifies the number of volumes associated with the backup policy.
    Status string
    See Argument Reference above.
    Frequency float64
    Specifies the backup interval. The value is in the range of 1 to 14 days.
    Region string
    RemainFirstBackup string
    RententionNum float64
    Specifies number of retained backups.
    StartTime string
    Specifies the start time of the backup job.The value is in the HH:mm format.
    Id string
    See Argument Reference above.
    Name string
    See Argument Reference above.
    PolicyResourceCount float64
    Specifies the number of volumes associated with the backup policy.
    Status string
    See Argument Reference above.
    frequency Double
    Specifies the backup interval. The value is in the range of 1 to 14 days.
    region String
    remainFirstBackup String
    rententionNum Double
    Specifies number of retained backups.
    startTime String
    Specifies the start time of the backup job.The value is in the HH:mm format.
    id String
    See Argument Reference above.
    name String
    See Argument Reference above.
    policyResourceCount Double
    Specifies the number of volumes associated with the backup policy.
    status String
    See Argument Reference above.
    frequency number
    Specifies the backup interval. The value is in the range of 1 to 14 days.
    region string
    remainFirstBackup string
    rententionNum number
    Specifies number of retained backups.
    startTime string
    Specifies the start time of the backup job.The value is in the HH:mm format.
    id string
    See Argument Reference above.
    name string
    See Argument Reference above.
    policyResourceCount number
    Specifies the number of volumes associated with the backup policy.
    status string
    See Argument Reference above.
    frequency float
    Specifies the backup interval. The value is in the range of 1 to 14 days.
    region str
    remain_first_backup str
    rentention_num float
    Specifies number of retained backups.
    start_time str
    Specifies the start time of the backup job.The value is in the HH:mm format.
    id str
    See Argument Reference above.
    name str
    See Argument Reference above.
    policy_resource_count float
    Specifies the number of volumes associated with the backup policy.
    status str
    See Argument Reference above.
    frequency Number
    Specifies the backup interval. The value is in the range of 1 to 14 days.
    region String
    remainFirstBackup String
    rententionNum Number
    Specifies number of retained backups.
    startTime String
    Specifies the start time of the backup job.The value is in the HH:mm format.
    id String
    See Argument Reference above.
    name String
    See Argument Reference above.
    policyResourceCount Number
    Specifies the number of volumes associated with the backup policy.
    status String
    See Argument Reference above.

    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