opentelekomcloud.VbsBackupPolicyV2
Explore with Pulumi AI
Up-to-date reference of API arguments for VBS backup policy you can get at documentation portal
Provides an VBS Backup Policy resource within OpenTelekomCloud.
~>
Deprecated, use opentelekomcloud.CbrPolicyV3
resource instead.
Example Usage
Basic Backup Policy
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const vbsPolicy1 = new opentelekomcloud.VbsBackupPolicyV2("vbsPolicy1", {
frequency: 1,
rententionNum: 7,
retainFirstBackup: "N",
startTime: "12:00",
status: "ON",
tags: [{
key: "k1",
value: "v1",
}],
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
vbs_policy1 = opentelekomcloud.VbsBackupPolicyV2("vbsPolicy1",
frequency=1,
rentention_num=7,
retain_first_backup="N",
start_time="12:00",
status="ON",
tags=[{
"key": "k1",
"value": "v1",
}])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := opentelekomcloud.NewVbsBackupPolicyV2(ctx, "vbsPolicy1", &opentelekomcloud.VbsBackupPolicyV2Args{
Frequency: pulumi.Float64(1),
RententionNum: pulumi.Float64(7),
RetainFirstBackup: pulumi.String("N"),
StartTime: pulumi.String("12:00"),
Status: pulumi.String("ON"),
Tags: opentelekomcloud.VbsBackupPolicyV2TagArray{
&opentelekomcloud.VbsBackupPolicyV2TagArgs{
Key: pulumi.String("k1"),
Value: pulumi.String("v1"),
},
},
})
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 vbsPolicy1 = new Opentelekomcloud.VbsBackupPolicyV2("vbsPolicy1", new()
{
Frequency = 1,
RententionNum = 7,
RetainFirstBackup = "N",
StartTime = "12:00",
Status = "ON",
Tags = new[]
{
new Opentelekomcloud.Inputs.VbsBackupPolicyV2TagArgs
{
Key = "k1",
Value = "v1",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.VbsBackupPolicyV2;
import com.pulumi.opentelekomcloud.VbsBackupPolicyV2Args;
import com.pulumi.opentelekomcloud.inputs.VbsBackupPolicyV2TagArgs;
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) {
var vbsPolicy1 = new VbsBackupPolicyV2("vbsPolicy1", VbsBackupPolicyV2Args.builder()
.frequency(1)
.rententionNum(7)
.retainFirstBackup("N")
.startTime("12:00")
.status("ON")
.tags(VbsBackupPolicyV2TagArgs.builder()
.key("k1")
.value("v1")
.build())
.build());
}
}
resources:
vbsPolicy1:
type: opentelekomcloud:VbsBackupPolicyV2
properties:
frequency: 1
rententionNum: 7
retainFirstBackup: N
startTime: 12:00
status: ON
tags:
- key: k1
value: v1
Backup Policy with EVS Disks
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const config = new pulumi.Config();
const volumeId = config.requireObject("volumeId");
const vbsPolicy2 = new opentelekomcloud.VbsBackupPolicyV2("vbsPolicy2", {
status: "ON",
startTime: "12:00",
retainFirstBackup: "N",
rententionNum: 5,
frequency: 3,
resources: [volumeId],
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
config = pulumi.Config()
volume_id = config.require_object("volumeId")
vbs_policy2 = opentelekomcloud.VbsBackupPolicyV2("vbsPolicy2",
status="ON",
start_time="12:00",
retain_first_backup="N",
rentention_num=5,
frequency=3,
resources=[volume_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, "")
volumeId := cfg.RequireObject("volumeId")
_, err := opentelekomcloud.NewVbsBackupPolicyV2(ctx, "vbsPolicy2", &opentelekomcloud.VbsBackupPolicyV2Args{
Status: pulumi.String("ON"),
StartTime: pulumi.String("12:00"),
RetainFirstBackup: pulumi.String("N"),
RententionNum: pulumi.Float64(5),
Frequency: pulumi.Float64(3),
Resources: pulumi.StringArray{
volumeId,
},
})
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 volumeId = config.RequireObject<dynamic>("volumeId");
var vbsPolicy2 = new Opentelekomcloud.VbsBackupPolicyV2("vbsPolicy2", new()
{
Status = "ON",
StartTime = "12:00",
RetainFirstBackup = "N",
RententionNum = 5,
Frequency = 3,
Resources = new[]
{
volumeId,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.VbsBackupPolicyV2;
import com.pulumi.opentelekomcloud.VbsBackupPolicyV2Args;
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 volumeId = config.get("volumeId");
var vbsPolicy2 = new VbsBackupPolicyV2("vbsPolicy2", VbsBackupPolicyV2Args.builder()
.status("ON")
.startTime("12:00")
.retainFirstBackup("N")
.rententionNum(5)
.frequency(3)
.resources(volumeId)
.build());
}
}
configuration:
volumeId:
type: dynamic
resources:
vbsPolicy2:
type: opentelekomcloud:VbsBackupPolicyV2
properties:
status: ON
startTime: 12:00
retainFirstBackup: N
rententionNum: 5
frequency: 3
resources:
- ${volumeId}
Create VbsBackupPolicyV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VbsBackupPolicyV2(name: string, args: VbsBackupPolicyV2Args, opts?: CustomResourceOptions);
@overload
def VbsBackupPolicyV2(resource_name: str,
args: VbsBackupPolicyV2Args,
opts: Optional[ResourceOptions] = None)
@overload
def VbsBackupPolicyV2(resource_name: str,
opts: Optional[ResourceOptions] = None,
retain_first_backup: Optional[str] = None,
start_time: Optional[str] = None,
rentention_day: Optional[float] = None,
frequency: Optional[float] = None,
rentention_num: Optional[float] = None,
resources: Optional[Sequence[str]] = None,
region: Optional[str] = None,
name: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Sequence[VbsBackupPolicyV2TagArgs]] = None,
timeouts: Optional[VbsBackupPolicyV2TimeoutsArgs] = None,
vbs_backup_policy_v2_id: Optional[str] = None,
week_frequencies: Optional[Sequence[str]] = None)
func NewVbsBackupPolicyV2(ctx *Context, name string, args VbsBackupPolicyV2Args, opts ...ResourceOption) (*VbsBackupPolicyV2, error)
public VbsBackupPolicyV2(string name, VbsBackupPolicyV2Args args, CustomResourceOptions? opts = null)
public VbsBackupPolicyV2(String name, VbsBackupPolicyV2Args args)
public VbsBackupPolicyV2(String name, VbsBackupPolicyV2Args args, CustomResourceOptions options)
type: opentelekomcloud:VbsBackupPolicyV2
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args VbsBackupPolicyV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args VbsBackupPolicyV2Args
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args VbsBackupPolicyV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VbsBackupPolicyV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VbsBackupPolicyV2Args
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var vbsBackupPolicyV2Resource = new Opentelekomcloud.VbsBackupPolicyV2("vbsBackupPolicyV2Resource", new()
{
RetainFirstBackup = "string",
StartTime = "string",
RententionDay = 0,
Frequency = 0,
RententionNum = 0,
Resources = new[]
{
"string",
},
Region = "string",
Name = "string",
Status = "string",
Tags = new[]
{
new Opentelekomcloud.Inputs.VbsBackupPolicyV2TagArgs
{
Key = "string",
Value = "string",
},
},
Timeouts = new Opentelekomcloud.Inputs.VbsBackupPolicyV2TimeoutsArgs
{
Create = "string",
Delete = "string",
},
VbsBackupPolicyV2Id = "string",
WeekFrequencies = new[]
{
"string",
},
});
example, err := opentelekomcloud.NewVbsBackupPolicyV2(ctx, "vbsBackupPolicyV2Resource", &opentelekomcloud.VbsBackupPolicyV2Args{
RetainFirstBackup: pulumi.String("string"),
StartTime: pulumi.String("string"),
RententionDay: pulumi.Float64(0),
Frequency: pulumi.Float64(0),
RententionNum: pulumi.Float64(0),
Resources: pulumi.StringArray{
pulumi.String("string"),
},
Region: pulumi.String("string"),
Name: pulumi.String("string"),
Status: pulumi.String("string"),
Tags: opentelekomcloud.VbsBackupPolicyV2TagArray{
&opentelekomcloud.VbsBackupPolicyV2TagArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
Timeouts: &opentelekomcloud.VbsBackupPolicyV2TimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
VbsBackupPolicyV2Id: pulumi.String("string"),
WeekFrequencies: pulumi.StringArray{
pulumi.String("string"),
},
})
var vbsBackupPolicyV2Resource = new VbsBackupPolicyV2("vbsBackupPolicyV2Resource", VbsBackupPolicyV2Args.builder()
.retainFirstBackup("string")
.startTime("string")
.rententionDay(0)
.frequency(0)
.rententionNum(0)
.resources("string")
.region("string")
.name("string")
.status("string")
.tags(VbsBackupPolicyV2TagArgs.builder()
.key("string")
.value("string")
.build())
.timeouts(VbsBackupPolicyV2TimeoutsArgs.builder()
.create("string")
.delete("string")
.build())
.vbsBackupPolicyV2Id("string")
.weekFrequencies("string")
.build());
vbs_backup_policy_v2_resource = opentelekomcloud.VbsBackupPolicyV2("vbsBackupPolicyV2Resource",
retain_first_backup="string",
start_time="string",
rentention_day=0,
frequency=0,
rentention_num=0,
resources=["string"],
region="string",
name="string",
status="string",
tags=[{
"key": "string",
"value": "string",
}],
timeouts={
"create": "string",
"delete": "string",
},
vbs_backup_policy_v2_id="string",
week_frequencies=["string"])
const vbsBackupPolicyV2Resource = new opentelekomcloud.VbsBackupPolicyV2("vbsBackupPolicyV2Resource", {
retainFirstBackup: "string",
startTime: "string",
rententionDay: 0,
frequency: 0,
rententionNum: 0,
resources: ["string"],
region: "string",
name: "string",
status: "string",
tags: [{
key: "string",
value: "string",
}],
timeouts: {
create: "string",
"delete": "string",
},
vbsBackupPolicyV2Id: "string",
weekFrequencies: ["string"],
});
type: opentelekomcloud:VbsBackupPolicyV2
properties:
frequency: 0
name: string
region: string
rententionDay: 0
rententionNum: 0
resources:
- string
retainFirstBackup: string
startTime: string
status: string
tags:
- key: string
value: string
timeouts:
create: string
delete: string
vbsBackupPolicyV2Id: string
weekFrequencies:
- string
VbsBackupPolicyV2 Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The VbsBackupPolicyV2 resource accepts the following input properties:
- Retain
First stringBackup - Specifies whether to retain the first backup in the current month. Possible values are Y or N.
- Start
Time string - Specifies the start time(UTC) of the backup job. The value is in the HH:mm format. You need to set the execution time on a full hour. You can set multiple execution times, and use commas (,) to separate one time from another.
- Frequency double
- Specifies the backup interval. The value is in the range of 1 to 14 days.
Either this field or
week_frequency
must be specified. - Name string
- Specifies the policy name. The value is a string of 1 to 64 characters that
can contain letters, digits, underscores (_), and hyphens (-). It cannot start with
default
. - Region string
- Rentention
Day double - Specifies days of retained backups. Minimum value is 2.
Either this field or
rentention_num
must be specified. - Rentention
Num double - Specifies number of retained backups. Minimum value is 2.
Either this field or
rentention_day
must be specified. - Resources List<string>
- Specifies one or more volumes associated with the backup policy. Any previously associated backup policy will no longer apply.
- Status string
- Specifies the backup policy status. Possible values are ON or OFF. Defaults to ON.
- List<Vbs
Backup Policy V2Tag> - Represents the list of tags to be configured for the backup policy.
- Timeouts
Vbs
Backup Policy V2Timeouts - Vbs
Backup stringPolicy V2Id - Specifies a backup policy ID.
- Week
Frequencies List<string> - Specifies on which days of each week backup jobs are executed.
The value can be one or more of the following: "SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT".
Either this field or
frequency
must be specified.
- Retain
First stringBackup - Specifies whether to retain the first backup in the current month. Possible values are Y or N.
- Start
Time string - Specifies the start time(UTC) of the backup job. The value is in the HH:mm format. You need to set the execution time on a full hour. You can set multiple execution times, and use commas (,) to separate one time from another.
- Frequency float64
- Specifies the backup interval. The value is in the range of 1 to 14 days.
Either this field or
week_frequency
must be specified. - Name string
- Specifies the policy name. The value is a string of 1 to 64 characters that
can contain letters, digits, underscores (_), and hyphens (-). It cannot start with
default
. - Region string
- Rentention
Day float64 - Specifies days of retained backups. Minimum value is 2.
Either this field or
rentention_num
must be specified. - Rentention
Num float64 - Specifies number of retained backups. Minimum value is 2.
Either this field or
rentention_day
must be specified. - Resources []string
- Specifies one or more volumes associated with the backup policy. Any previously associated backup policy will no longer apply.
- Status string
- Specifies the backup policy status. Possible values are ON or OFF. Defaults to ON.
- []Vbs
Backup Policy V2Tag Args - Represents the list of tags to be configured for the backup policy.
- Timeouts
Vbs
Backup Policy V2Timeouts Args - Vbs
Backup stringPolicy V2Id - Specifies a backup policy ID.
- Week
Frequencies []string - Specifies on which days of each week backup jobs are executed.
The value can be one or more of the following: "SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT".
Either this field or
frequency
must be specified.
- retain
First StringBackup - Specifies whether to retain the first backup in the current month. Possible values are Y or N.
- start
Time String - Specifies the start time(UTC) of the backup job. The value is in the HH:mm format. You need to set the execution time on a full hour. You can set multiple execution times, and use commas (,) to separate one time from another.
- frequency Double
- Specifies the backup interval. The value is in the range of 1 to 14 days.
Either this field or
week_frequency
must be specified. - name String
- Specifies the policy name. The value is a string of 1 to 64 characters that
can contain letters, digits, underscores (_), and hyphens (-). It cannot start with
default
. - region String
- rentention
Day Double - Specifies days of retained backups. Minimum value is 2.
Either this field or
rentention_num
must be specified. - rentention
Num Double - Specifies number of retained backups. Minimum value is 2.
Either this field or
rentention_day
must be specified. - resources List<String>
- Specifies one or more volumes associated with the backup policy. Any previously associated backup policy will no longer apply.
- status String
- Specifies the backup policy status. Possible values are ON or OFF. Defaults to ON.
- List<Vbs
Backup Policy V2Tag> - Represents the list of tags to be configured for the backup policy.
- timeouts
Vbs
Backup Policy V2Timeouts - vbs
Backup StringPolicy V2Id - Specifies a backup policy ID.
- week
Frequencies List<String> - Specifies on which days of each week backup jobs are executed.
The value can be one or more of the following: "SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT".
Either this field or
frequency
must be specified.
- retain
First stringBackup - Specifies whether to retain the first backup in the current month. Possible values are Y or N.
- start
Time string - Specifies the start time(UTC) of the backup job. The value is in the HH:mm format. You need to set the execution time on a full hour. You can set multiple execution times, and use commas (,) to separate one time from another.
- frequency number
- Specifies the backup interval. The value is in the range of 1 to 14 days.
Either this field or
week_frequency
must be specified. - name string
- Specifies the policy name. The value is a string of 1 to 64 characters that
can contain letters, digits, underscores (_), and hyphens (-). It cannot start with
default
. - region string
- rentention
Day number - Specifies days of retained backups. Minimum value is 2.
Either this field or
rentention_num
must be specified. - rentention
Num number - Specifies number of retained backups. Minimum value is 2.
Either this field or
rentention_day
must be specified. - resources string[]
- Specifies one or more volumes associated with the backup policy. Any previously associated backup policy will no longer apply.
- status string
- Specifies the backup policy status. Possible values are ON or OFF. Defaults to ON.
- Vbs
Backup Policy V2Tag[] - Represents the list of tags to be configured for the backup policy.
- timeouts
Vbs
Backup Policy V2Timeouts - vbs
Backup stringPolicy V2Id - Specifies a backup policy ID.
- week
Frequencies string[] - Specifies on which days of each week backup jobs are executed.
The value can be one or more of the following: "SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT".
Either this field or
frequency
must be specified.
- retain_
first_ strbackup - Specifies whether to retain the first backup in the current month. Possible values are Y or N.
- start_
time str - Specifies the start time(UTC) of the backup job. The value is in the HH:mm format. You need to set the execution time on a full hour. You can set multiple execution times, and use commas (,) to separate one time from another.
- frequency float
- Specifies the backup interval. The value is in the range of 1 to 14 days.
Either this field or
week_frequency
must be specified. - name str
- Specifies the policy name. The value is a string of 1 to 64 characters that
can contain letters, digits, underscores (_), and hyphens (-). It cannot start with
default
. - region str
- rentention_
day float - Specifies days of retained backups. Minimum value is 2.
Either this field or
rentention_num
must be specified. - rentention_
num float - Specifies number of retained backups. Minimum value is 2.
Either this field or
rentention_day
must be specified. - resources Sequence[str]
- Specifies one or more volumes associated with the backup policy. Any previously associated backup policy will no longer apply.
- status str
- Specifies the backup policy status. Possible values are ON or OFF. Defaults to ON.
- Sequence[Vbs
Backup Policy V2Tag Args] - Represents the list of tags to be configured for the backup policy.
- timeouts
Vbs
Backup Policy V2Timeouts Args - vbs_
backup_ strpolicy_ v2_ id - Specifies a backup policy ID.
- week_
frequencies Sequence[str] - Specifies on which days of each week backup jobs are executed.
The value can be one or more of the following: "SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT".
Either this field or
frequency
must be specified.
- retain
First StringBackup - Specifies whether to retain the first backup in the current month. Possible values are Y or N.
- start
Time String - Specifies the start time(UTC) of the backup job. The value is in the HH:mm format. You need to set the execution time on a full hour. You can set multiple execution times, and use commas (,) to separate one time from another.
- frequency Number
- Specifies the backup interval. The value is in the range of 1 to 14 days.
Either this field or
week_frequency
must be specified. - name String
- Specifies the policy name. The value is a string of 1 to 64 characters that
can contain letters, digits, underscores (_), and hyphens (-). It cannot start with
default
. - region String
- rentention
Day Number - Specifies days of retained backups. Minimum value is 2.
Either this field or
rentention_num
must be specified. - rentention
Num Number - Specifies number of retained backups. Minimum value is 2.
Either this field or
rentention_day
must be specified. - resources List<String>
- Specifies one or more volumes associated with the backup policy. Any previously associated backup policy will no longer apply.
- status String
- Specifies the backup policy status. Possible values are ON or OFF. Defaults to ON.
- List<Property Map>
- Represents the list of tags to be configured for the backup policy.
- timeouts Property Map
- vbs
Backup StringPolicy V2Id - Specifies a backup policy ID.
- week
Frequencies List<String> - Specifies on which days of each week backup jobs are executed.
The value can be one or more of the following: "SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT".
Either this field or
frequency
must be specified.
Outputs
All input properties are implicitly available as output properties. Additionally, the VbsBackupPolicyV2 resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Policy
Resource doubleCount - Specifies the number of volumes associated with the backup policy.
- Id string
- The provider-assigned unique ID for this managed resource.
- Policy
Resource float64Count - Specifies the number of volumes associated with the backup policy.
- id String
- The provider-assigned unique ID for this managed resource.
- policy
Resource DoubleCount - Specifies the number of volumes associated with the backup policy.
- id string
- The provider-assigned unique ID for this managed resource.
- policy
Resource numberCount - Specifies the number of volumes associated with the backup policy.
- id str
- The provider-assigned unique ID for this managed resource.
- policy_
resource_ floatcount - Specifies the number of volumes associated with the backup policy.
- id String
- The provider-assigned unique ID for this managed resource.
- policy
Resource NumberCount - Specifies the number of volumes associated with the backup policy.
Look up Existing VbsBackupPolicyV2 Resource
Get an existing VbsBackupPolicyV2 resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: VbsBackupPolicyV2State, opts?: CustomResourceOptions): VbsBackupPolicyV2
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
frequency: Optional[float] = None,
name: Optional[str] = None,
policy_resource_count: Optional[float] = None,
region: Optional[str] = None,
rentention_day: Optional[float] = None,
rentention_num: Optional[float] = None,
resources: Optional[Sequence[str]] = None,
retain_first_backup: Optional[str] = None,
start_time: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Sequence[VbsBackupPolicyV2TagArgs]] = None,
timeouts: Optional[VbsBackupPolicyV2TimeoutsArgs] = None,
vbs_backup_policy_v2_id: Optional[str] = None,
week_frequencies: Optional[Sequence[str]] = None) -> VbsBackupPolicyV2
func GetVbsBackupPolicyV2(ctx *Context, name string, id IDInput, state *VbsBackupPolicyV2State, opts ...ResourceOption) (*VbsBackupPolicyV2, error)
public static VbsBackupPolicyV2 Get(string name, Input<string> id, VbsBackupPolicyV2State? state, CustomResourceOptions? opts = null)
public static VbsBackupPolicyV2 get(String name, Output<String> id, VbsBackupPolicyV2State state, CustomResourceOptions options)
resources: _: type: opentelekomcloud:VbsBackupPolicyV2 get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Frequency double
- Specifies the backup interval. The value is in the range of 1 to 14 days.
Either this field or
week_frequency
must be specified. - Name string
- Specifies the policy name. The value is a string of 1 to 64 characters that
can contain letters, digits, underscores (_), and hyphens (-). It cannot start with
default
. - Policy
Resource doubleCount - Specifies the number of volumes associated with the backup policy.
- Region string
- Rentention
Day double - Specifies days of retained backups. Minimum value is 2.
Either this field or
rentention_num
must be specified. - Rentention
Num double - Specifies number of retained backups. Minimum value is 2.
Either this field or
rentention_day
must be specified. - Resources List<string>
- Specifies one or more volumes associated with the backup policy. Any previously associated backup policy will no longer apply.
- Retain
First stringBackup - Specifies whether to retain the first backup in the current month. Possible values are Y or N.
- Start
Time string - Specifies the start time(UTC) of the backup job. The value is in the HH:mm format. You need to set the execution time on a full hour. You can set multiple execution times, and use commas (,) to separate one time from another.
- Status string
- Specifies the backup policy status. Possible values are ON or OFF. Defaults to ON.
- List<Vbs
Backup Policy V2Tag> - Represents the list of tags to be configured for the backup policy.
- Timeouts
Vbs
Backup Policy V2Timeouts - Vbs
Backup stringPolicy V2Id - Specifies a backup policy ID.
- Week
Frequencies List<string> - Specifies on which days of each week backup jobs are executed.
The value can be one or more of the following: "SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT".
Either this field or
frequency
must be specified.
- Frequency float64
- Specifies the backup interval. The value is in the range of 1 to 14 days.
Either this field or
week_frequency
must be specified. - Name string
- Specifies the policy name. The value is a string of 1 to 64 characters that
can contain letters, digits, underscores (_), and hyphens (-). It cannot start with
default
. - Policy
Resource float64Count - Specifies the number of volumes associated with the backup policy.
- Region string
- Rentention
Day float64 - Specifies days of retained backups. Minimum value is 2.
Either this field or
rentention_num
must be specified. - Rentention
Num float64 - Specifies number of retained backups. Minimum value is 2.
Either this field or
rentention_day
must be specified. - Resources []string
- Specifies one or more volumes associated with the backup policy. Any previously associated backup policy will no longer apply.
- Retain
First stringBackup - Specifies whether to retain the first backup in the current month. Possible values are Y or N.
- Start
Time string - Specifies the start time(UTC) of the backup job. The value is in the HH:mm format. You need to set the execution time on a full hour. You can set multiple execution times, and use commas (,) to separate one time from another.
- Status string
- Specifies the backup policy status. Possible values are ON or OFF. Defaults to ON.
- []Vbs
Backup Policy V2Tag Args - Represents the list of tags to be configured for the backup policy.
- Timeouts
Vbs
Backup Policy V2Timeouts Args - Vbs
Backup stringPolicy V2Id - Specifies a backup policy ID.
- Week
Frequencies []string - Specifies on which days of each week backup jobs are executed.
The value can be one or more of the following: "SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT".
Either this field or
frequency
must be specified.
- frequency Double
- Specifies the backup interval. The value is in the range of 1 to 14 days.
Either this field or
week_frequency
must be specified. - name String
- Specifies the policy name. The value is a string of 1 to 64 characters that
can contain letters, digits, underscores (_), and hyphens (-). It cannot start with
default
. - policy
Resource DoubleCount - Specifies the number of volumes associated with the backup policy.
- region String
- rentention
Day Double - Specifies days of retained backups. Minimum value is 2.
Either this field or
rentention_num
must be specified. - rentention
Num Double - Specifies number of retained backups. Minimum value is 2.
Either this field or
rentention_day
must be specified. - resources List<String>
- Specifies one or more volumes associated with the backup policy. Any previously associated backup policy will no longer apply.
- retain
First StringBackup - Specifies whether to retain the first backup in the current month. Possible values are Y or N.
- start
Time String - Specifies the start time(UTC) of the backup job. The value is in the HH:mm format. You need to set the execution time on a full hour. You can set multiple execution times, and use commas (,) to separate one time from another.
- status String
- Specifies the backup policy status. Possible values are ON or OFF. Defaults to ON.
- List<Vbs
Backup Policy V2Tag> - Represents the list of tags to be configured for the backup policy.
- timeouts
Vbs
Backup Policy V2Timeouts - vbs
Backup StringPolicy V2Id - Specifies a backup policy ID.
- week
Frequencies List<String> - Specifies on which days of each week backup jobs are executed.
The value can be one or more of the following: "SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT".
Either this field or
frequency
must be specified.
- frequency number
- Specifies the backup interval. The value is in the range of 1 to 14 days.
Either this field or
week_frequency
must be specified. - name string
- Specifies the policy name. The value is a string of 1 to 64 characters that
can contain letters, digits, underscores (_), and hyphens (-). It cannot start with
default
. - policy
Resource numberCount - Specifies the number of volumes associated with the backup policy.
- region string
- rentention
Day number - Specifies days of retained backups. Minimum value is 2.
Either this field or
rentention_num
must be specified. - rentention
Num number - Specifies number of retained backups. Minimum value is 2.
Either this field or
rentention_day
must be specified. - resources string[]
- Specifies one or more volumes associated with the backup policy. Any previously associated backup policy will no longer apply.
- retain
First stringBackup - Specifies whether to retain the first backup in the current month. Possible values are Y or N.
- start
Time string - Specifies the start time(UTC) of the backup job. The value is in the HH:mm format. You need to set the execution time on a full hour. You can set multiple execution times, and use commas (,) to separate one time from another.
- status string
- Specifies the backup policy status. Possible values are ON or OFF. Defaults to ON.
- Vbs
Backup Policy V2Tag[] - Represents the list of tags to be configured for the backup policy.
- timeouts
Vbs
Backup Policy V2Timeouts - vbs
Backup stringPolicy V2Id - Specifies a backup policy ID.
- week
Frequencies string[] - Specifies on which days of each week backup jobs are executed.
The value can be one or more of the following: "SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT".
Either this field or
frequency
must be specified.
- frequency float
- Specifies the backup interval. The value is in the range of 1 to 14 days.
Either this field or
week_frequency
must be specified. - name str
- Specifies the policy name. The value is a string of 1 to 64 characters that
can contain letters, digits, underscores (_), and hyphens (-). It cannot start with
default
. - policy_
resource_ floatcount - Specifies the number of volumes associated with the backup policy.
- region str
- rentention_
day float - Specifies days of retained backups. Minimum value is 2.
Either this field or
rentention_num
must be specified. - rentention_
num float - Specifies number of retained backups. Minimum value is 2.
Either this field or
rentention_day
must be specified. - resources Sequence[str]
- Specifies one or more volumes associated with the backup policy. Any previously associated backup policy will no longer apply.
- retain_
first_ strbackup - Specifies whether to retain the first backup in the current month. Possible values are Y or N.
- start_
time str - Specifies the start time(UTC) of the backup job. The value is in the HH:mm format. You need to set the execution time on a full hour. You can set multiple execution times, and use commas (,) to separate one time from another.
- status str
- Specifies the backup policy status. Possible values are ON or OFF. Defaults to ON.
- Sequence[Vbs
Backup Policy V2Tag Args] - Represents the list of tags to be configured for the backup policy.
- timeouts
Vbs
Backup Policy V2Timeouts Args - vbs_
backup_ strpolicy_ v2_ id - Specifies a backup policy ID.
- week_
frequencies Sequence[str] - Specifies on which days of each week backup jobs are executed.
The value can be one or more of the following: "SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT".
Either this field or
frequency
must be specified.
- frequency Number
- Specifies the backup interval. The value is in the range of 1 to 14 days.
Either this field or
week_frequency
must be specified. - name String
- Specifies the policy name. The value is a string of 1 to 64 characters that
can contain letters, digits, underscores (_), and hyphens (-). It cannot start with
default
. - policy
Resource NumberCount - Specifies the number of volumes associated with the backup policy.
- region String
- rentention
Day Number - Specifies days of retained backups. Minimum value is 2.
Either this field or
rentention_num
must be specified. - rentention
Num Number - Specifies number of retained backups. Minimum value is 2.
Either this field or
rentention_day
must be specified. - resources List<String>
- Specifies one or more volumes associated with the backup policy. Any previously associated backup policy will no longer apply.
- retain
First StringBackup - Specifies whether to retain the first backup in the current month. Possible values are Y or N.
- start
Time String - Specifies the start time(UTC) of the backup job. The value is in the HH:mm format. You need to set the execution time on a full hour. You can set multiple execution times, and use commas (,) to separate one time from another.
- status String
- Specifies the backup policy status. Possible values are ON or OFF. Defaults to ON.
- List<Property Map>
- Represents the list of tags to be configured for the backup policy.
- timeouts Property Map
- vbs
Backup StringPolicy V2Id - Specifies a backup policy ID.
- week
Frequencies List<String> - Specifies on which days of each week backup jobs are executed.
The value can be one or more of the following: "SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT".
Either this field or
frequency
must be specified.
Supporting Types
VbsBackupPolicyV2Tag, VbsBackupPolicyV2TagArgs
VbsBackupPolicyV2Timeouts, VbsBackupPolicyV2TimeoutsArgs
Import
Backup Policy can be imported using the id
, e.g.
$ pulumi import opentelekomcloud:index/vbsBackupPolicyV2:VbsBackupPolicyV2 vbs 4779ab1c-7c1a-44b1-a02e-93dfc361b32d
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloud
Terraform Provider.