opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud
opentelekomcloud.getVbsBackupPolicyV2
Explore with Pulumi AI
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:
- List<Get
Vbs Backup Policy V2Filter Tag> - 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.
- Policy
Resource doubleCount - 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.
- []Get
Vbs Backup Policy V2Filter Tag - 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.
- Policy
Resource float64Count - 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.
- List<Get
Vbs Backup Policy V2Filter Tag> - 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.
- policy
Resource DoubleCount - 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.
- Get
Vbs Backup Policy V2Filter Tag[] - 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.
- policy
Resource numberCount - 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.
- Sequence[Get
Vbs Backup Policy V2Filter Tag] - 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_ floatcount - 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.
- 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.
- policy
Resource NumberCount - 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
- Remain
First stringBackup - Rentention
Num double - Specifies number of retained backups.
- Start
Time string - Specifies the start time of the backup job.The value is in the HH:mm format.
- List<Get
Vbs Backup Policy V2Tag> - List<Get
Vbs Backup Policy V2Filter Tag> - Id string
- See Argument Reference above.
- Name string
- See Argument Reference above.
- Policy
Resource doubleCount - 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
- Remain
First stringBackup - Rentention
Num float64 - Specifies number of retained backups.
- Start
Time string - Specifies the start time of the backup job.The value is in the HH:mm format.
- []Get
Vbs Backup Policy V2Tag - []Get
Vbs Backup Policy V2Filter Tag - Id string
- See Argument Reference above.
- Name string
- See Argument Reference above.
- Policy
Resource float64Count - 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
- remain
First StringBackup - rentention
Num Double - Specifies number of retained backups.
- start
Time String - Specifies the start time of the backup job.The value is in the HH:mm format.
- List<Get
Vbs Backup Policy V2Tag> - List<Get
Vbs Backup Policy V2Filter Tag> - id String
- See Argument Reference above.
- name String
- See Argument Reference above.
- policy
Resource DoubleCount - 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
- remain
First stringBackup - rentention
Num number - Specifies number of retained backups.
- start
Time string - Specifies the start time of the backup job.The value is in the HH:mm format.
- Get
Vbs Backup Policy V2Tag[] - Get
Vbs Backup Policy V2Filter Tag[] - id string
- See Argument Reference above.
- name string
- See Argument Reference above.
- policy
Resource numberCount - 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_ strbackup - 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.
- Sequence[Get
Vbs Backup Policy V2Tag] - Sequence[Get
Vbs Backup Policy V2Filter Tag] - id str
- See Argument Reference above.
- name str
- See Argument Reference above.
- policy_
resource_ floatcount - 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
- remain
First StringBackup - rentention
Num Number - Specifies number of retained backups.
- start
Time String - Specifies the start time of the backup job.The value is in the HH:mm format.
- List<Property Map>
- List<Property Map>
- id String
- See Argument Reference above.
- name String
- See Argument Reference above.
- policy
Resource NumberCount - Specifies the number of volumes associated with the backup policy.
- status String
- See Argument Reference above.
Supporting Types
GetVbsBackupPolicyV2FilterTag
GetVbsBackupPolicyV2Tag
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloud
Terraform Provider.
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud