1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. getVbsBackupPolicyV2
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

opentelekomcloud.getVbsBackupPolicyV2

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

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

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

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const config = new pulumi.Config();
    const policyName = config.requireObject("policyName");
    const policyId = config.requireObject("policyId");
    const policies = opentelekomcloud.getVbsBackupPolicyV2({
        name: policyName,
        id: policyId,
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    config = pulumi.Config()
    policy_name = config.require_object("policyName")
    policy_id = config.require_object("policyId")
    policies = opentelekomcloud.get_vbs_backup_policy_v2(name=policy_name,
        id=policy_id)
    
    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, "")
    		policyName := cfg.RequireObject("policyName")
    		policyId := cfg.RequireObject("policyId")
    		_, err := opentelekomcloud.LookupVbsBackupPolicyV2(ctx, &opentelekomcloud.LookupVbsBackupPolicyV2Args{
    			Name: pulumi.StringRef(policyName),
    			Id:   pulumi.StringRef(policyId),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var policyName = config.RequireObject<dynamic>("policyName");
        var policyId = config.RequireObject<dynamic>("policyId");
        var policies = Opentelekomcloud.GetVbsBackupPolicyV2.Invoke(new()
        {
            Name = policyName,
            Id = policyId,
        });
    
    });
    
    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.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 policyId = config.get("policyId");
            final var policies = OpentelekomcloudFunctions.getVbsBackupPolicyV2(GetVbsBackupPolicyV2Args.builder()
                .name(policyName)
                .id(policyId)
                .build());
    
        }
    }
    
    configuration:
      policyName:
        type: dynamic
      policyId:
        type: dynamic
    variables:
      policies:
        fn::invoke:
          function: opentelekomcloud:getVbsBackupPolicyV2
          arguments:
            name: ${policyName}
            id: ${policyId}
    

    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(filter_tags: Optional[Sequence[GetVbsBackupPolicyV2FilterTag]] = None,
                                 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(filter_tags: Optional[pulumi.Input[Sequence[pulumi.Input[GetVbsBackupPolicyV2FilterTagArgs]]]] = None,
                                 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: opentelekomcloud:index/getVbsBackupPolicyV2:getVbsBackupPolicyV2
      arguments:
        # arguments dictionary

    The following arguments are supported:

    FilterTags List<GetVbsBackupPolicyV2FilterTag>
    Represents the list of tags. Backup policy with these tags will be filtered.
    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.
    FilterTags []GetVbsBackupPolicyV2FilterTag
    Represents the list of tags. Backup policy with these tags will be filtered.
    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.
    filterTags List<GetVbsBackupPolicyV2FilterTag>
    Represents the list of tags. Backup policy with these tags will be filtered.
    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.
    filterTags GetVbsBackupPolicyV2FilterTag[]
    Represents the list of tags. Backup policy with these tags will be filtered.
    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.
    filter_tags Sequence[GetVbsBackupPolicyV2FilterTag]
    Represents the list of tags. Backup policy with these tags will be filtered.
    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.
    filterTags List<Property Map>
    Represents the list of tags. Backup policy with these tags will be filtered.
    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.
    Tags List<GetVbsBackupPolicyV2Tag>
    FilterTags List<GetVbsBackupPolicyV2FilterTag>
    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.
    Tags []GetVbsBackupPolicyV2Tag
    FilterTags []GetVbsBackupPolicyV2FilterTag
    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.
    tags List<GetVbsBackupPolicyV2Tag>
    filterTags List<GetVbsBackupPolicyV2FilterTag>
    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.
    tags GetVbsBackupPolicyV2Tag[]
    filterTags GetVbsBackupPolicyV2FilterTag[]
    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.
    tags Sequence[GetVbsBackupPolicyV2Tag]
    filter_tags Sequence[GetVbsBackupPolicyV2FilterTag]
    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.
    tags List<Property Map>
    filterTags List<Property Map>
    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.

    Supporting Types

    GetVbsBackupPolicyV2FilterTag

    Key string
    Specifies the tag key. Tag keys must be unique.
    Values List<string>
    Specifies the List of tag values. This list can have a maximum of 10 values and all be unique.
    Key string
    Specifies the tag key. Tag keys must be unique.
    Values []string
    Specifies the List of tag values. This list can have a maximum of 10 values and all be unique.
    key String
    Specifies the tag key. Tag keys must be unique.
    values List<String>
    Specifies the List of tag values. This list can have a maximum of 10 values and all be unique.
    key string
    Specifies the tag key. Tag keys must be unique.
    values string[]
    Specifies the List of tag values. This list can have a maximum of 10 values and all be unique.
    key str
    Specifies the tag key. Tag keys must be unique.
    values Sequence[str]
    Specifies the List of tag values. This list can have a maximum of 10 values and all be unique.
    key String
    Specifies the tag key. Tag keys must be unique.
    values List<String>
    Specifies the List of tag values. This list can have a maximum of 10 values and all be unique.

    GetVbsBackupPolicyV2Tag

    Key string
    Specifies the tag key. Tag keys must be unique.
    Value string
    Specifies the tag value.
    Key string
    Specifies the tag key. Tag keys must be unique.
    Value string
    Specifies the tag value.
    key String
    Specifies the tag key. Tag keys must be unique.
    value String
    Specifies the tag value.
    key string
    Specifies the tag key. Tag keys must be unique.
    value string
    Specifies the tag value.
    key str
    Specifies the tag key. Tag keys must be unique.
    value str
    Specifies the tag value.
    key String
    Specifies the tag key. Tag keys must be unique.
    value String
    Specifies the tag value.

    Package Details

    Repository
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    opentelekomcloud logo
    opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud