opentelekomcloud.CsbsBackupPolicyV1
Explore with Pulumi AI
Up-to-date reference of API arguments for CSBS backup policy you can get at documentation portal
Provides an OpenTelekomCloud Backup Policy of Resources.
~>
Deprecated, use opentelekomcloud.CbrPolicyV3
resource instead.
Example Usage
Basic example
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const config = new pulumi.Config();
const name = config.requireObject("name");
const id = config.requireObject("id");
const resourceName = config.requireObject("resourceName");
const backupPolicyV1 = new opentelekomcloud.CsbsBackupPolicyV1("backupPolicyV1", {
resources: [{
id: id,
type: "OS::Nova::Server",
name: resourceName,
}],
scheduledOperation: {
enabled: true,
operationType: "backup",
triggerPattern: `BEGIN:VCALENDAR\x0d
BEGIN:VEVENT\x0d
RRULE:FREQ=WEEKLY;BYDAY=TH;BYHOUR=12;BYMINUTE=27\x0d
END:VEVENT\x0d
END:VCALENDAR\x0d
`,
},
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
config = pulumi.Config()
name = config.require_object("name")
id = config.require_object("id")
resource_name = config.require_object("resourceName")
backup_policy_v1 = opentelekomcloud.CsbsBackupPolicyV1("backupPolicyV1",
resources=[{
"id": id,
"type": "OS::Nova::Server",
"name": resource_name,
}],
scheduled_operation={
"enabled": True,
"operation_type": "backup",
"trigger_pattern": """BEGIN:VCALENDAR\x0d
BEGIN:VEVENT\x0d
RRULE:FREQ=WEEKLY;BYDAY=TH;BYHOUR=12;BYMINUTE=27\x0d
END:VEVENT\x0d
END:VCALENDAR\x0d
""",
})
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, "")
name := cfg.RequireObject("name")
id := cfg.RequireObject("id")
resourceName := cfg.RequireObject("resourceName")
_, err := opentelekomcloud.NewCsbsBackupPolicyV1(ctx, "backupPolicyV1", &opentelekomcloud.CsbsBackupPolicyV1Args{
Resources: opentelekomcloud.CsbsBackupPolicyV1ResourceArray{
&opentelekomcloud.CsbsBackupPolicyV1ResourceArgs{
Id: pulumi.Any(id),
Type: pulumi.String("OS::Nova::Server"),
Name: pulumi.Any(resourceName),
},
},
ScheduledOperation: &opentelekomcloud.CsbsBackupPolicyV1ScheduledOperationArgs{
Enabled: pulumi.Bool(true),
OperationType: pulumi.String("backup"),
TriggerPattern: pulumi.String(`BEGIN:VCALENDAR
BEGIN:VEVENT
RRULE:FREQ=WEEKLY;BYDAY=TH;BYHOUR=12;BYMINUTE=27
END:VEVENT
END:VCALENDAR
`),
},
})
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 name = config.RequireObject<dynamic>("name");
var id = config.RequireObject<dynamic>("id");
var resourceName = config.RequireObject<dynamic>("resourceName");
var backupPolicyV1 = new Opentelekomcloud.CsbsBackupPolicyV1("backupPolicyV1", new()
{
Resources = new[]
{
new Opentelekomcloud.Inputs.CsbsBackupPolicyV1ResourceArgs
{
Id = id,
Type = "OS::Nova::Server",
Name = resourceName,
},
},
ScheduledOperation = new Opentelekomcloud.Inputs.CsbsBackupPolicyV1ScheduledOperationArgs
{
Enabled = true,
OperationType = "backup",
TriggerPattern = @"BEGIN:VCALENDAR
BEGIN:VEVENT
RRULE:FREQ=WEEKLY;BYDAY=TH;BYHOUR=12;BYMINUTE=27
END:VEVENT
END:VCALENDAR
",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.CsbsBackupPolicyV1;
import com.pulumi.opentelekomcloud.CsbsBackupPolicyV1Args;
import com.pulumi.opentelekomcloud.inputs.CsbsBackupPolicyV1ResourceArgs;
import com.pulumi.opentelekomcloud.inputs.CsbsBackupPolicyV1ScheduledOperationArgs;
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 name = config.get("name");
final var id = config.get("id");
final var resourceName = config.get("resourceName");
var backupPolicyV1 = new CsbsBackupPolicyV1("backupPolicyV1", CsbsBackupPolicyV1Args.builder()
.resources(CsbsBackupPolicyV1ResourceArgs.builder()
.id(id)
.type("OS::Nova::Server")
.name(resourceName)
.build())
.scheduledOperation(CsbsBackupPolicyV1ScheduledOperationArgs.builder()
.enabled(true)
.operationType("backup")
.triggerPattern("""
BEGIN:VCALENDAR
BEGIN:VEVENT
RRULE:FREQ=WEEKLY;BYDAY=TH;BYHOUR=12;BYMINUTE=27
END:VEVENT
END:VCALENDAR
""")
.build())
.build());
}
}
configuration:
name:
type: dynamic
id:
type: dynamic
resourceName:
type: dynamic
resources:
backupPolicyV1:
type: opentelekomcloud:CsbsBackupPolicyV1
properties:
resources:
- id: ${id}
type: OS::Nova::Server
name: ${resourceName}
scheduledOperation:
enabled: true
operationType: backup
triggerPattern: "BEGIN:VCALENDAR\r\nBEGIN:VEVENT\r\nRRULE:FREQ=WEEKLY;BYDAY=TH;BYHOUR=12;BYMINUTE=27\r\nEND:VEVENT\r\nEND:VCALENDAR\r\n"
Basic example with configured the week and month backups
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const config = new pulumi.Config();
const name = config.requireObject("name");
const id = config.requireObject("id");
const resourceName = config.requireObject("resourceName");
const backupPolicyV1 = new opentelekomcloud.CsbsBackupPolicyV1("backupPolicyV1", {
resources: [{
id: id,
type: "OS::Nova::Server",
name: resourceName,
}],
scheduledOperation: {
name: _var.scheduled_operation_name,
enabled: true,
operationType: "backup",
maxBackups: 6,
triggerPattern: `BEGIN:VCALENDAR\x0d
BEGIN:VEVENT\x0d
RRULE:FREQ=WEEKLY;BYDAY=TH;BYHOUR=12;BYMINUTE=27\x0d
END:VEVENT\x0d
END:VCALENDAR\x0d
`,
weekBackups: 4,
monthBackups: 2,
timezone: "UTC+03:00",
},
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
config = pulumi.Config()
name = config.require_object("name")
id = config.require_object("id")
resource_name = config.require_object("resourceName")
backup_policy_v1 = opentelekomcloud.CsbsBackupPolicyV1("backupPolicyV1",
resources=[{
"id": id,
"type": "OS::Nova::Server",
"name": resource_name,
}],
scheduled_operation={
"name": var["scheduled_operation_name"],
"enabled": True,
"operation_type": "backup",
"max_backups": 6,
"trigger_pattern": """BEGIN:VCALENDAR\x0d
BEGIN:VEVENT\x0d
RRULE:FREQ=WEEKLY;BYDAY=TH;BYHOUR=12;BYMINUTE=27\x0d
END:VEVENT\x0d
END:VCALENDAR\x0d
""",
"week_backups": 4,
"month_backups": 2,
"timezone": "UTC+03:00",
})
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, "")
name := cfg.RequireObject("name")
id := cfg.RequireObject("id")
resourceName := cfg.RequireObject("resourceName")
_, err := opentelekomcloud.NewCsbsBackupPolicyV1(ctx, "backupPolicyV1", &opentelekomcloud.CsbsBackupPolicyV1Args{
Resources: opentelekomcloud.CsbsBackupPolicyV1ResourceArray{
&opentelekomcloud.CsbsBackupPolicyV1ResourceArgs{
Id: pulumi.Any(id),
Type: pulumi.String("OS::Nova::Server"),
Name: pulumi.Any(resourceName),
},
},
ScheduledOperation: &opentelekomcloud.CsbsBackupPolicyV1ScheduledOperationArgs{
Name: pulumi.Any(_var.Scheduled_operation_name),
Enabled: pulumi.Bool(true),
OperationType: pulumi.String("backup"),
MaxBackups: pulumi.Float64(6),
TriggerPattern: pulumi.String(`BEGIN:VCALENDAR
BEGIN:VEVENT
RRULE:FREQ=WEEKLY;BYDAY=TH;BYHOUR=12;BYMINUTE=27
END:VEVENT
END:VCALENDAR
`),
WeekBackups: pulumi.Float64(4),
MonthBackups: pulumi.Float64(2),
Timezone: pulumi.String("UTC+03:00"),
},
})
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 name = config.RequireObject<dynamic>("name");
var id = config.RequireObject<dynamic>("id");
var resourceName = config.RequireObject<dynamic>("resourceName");
var backupPolicyV1 = new Opentelekomcloud.CsbsBackupPolicyV1("backupPolicyV1", new()
{
Resources = new[]
{
new Opentelekomcloud.Inputs.CsbsBackupPolicyV1ResourceArgs
{
Id = id,
Type = "OS::Nova::Server",
Name = resourceName,
},
},
ScheduledOperation = new Opentelekomcloud.Inputs.CsbsBackupPolicyV1ScheduledOperationArgs
{
Name = @var.Scheduled_operation_name,
Enabled = true,
OperationType = "backup",
MaxBackups = 6,
TriggerPattern = @"BEGIN:VCALENDAR
BEGIN:VEVENT
RRULE:FREQ=WEEKLY;BYDAY=TH;BYHOUR=12;BYMINUTE=27
END:VEVENT
END:VCALENDAR
",
WeekBackups = 4,
MonthBackups = 2,
Timezone = "UTC+03:00",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.CsbsBackupPolicyV1;
import com.pulumi.opentelekomcloud.CsbsBackupPolicyV1Args;
import com.pulumi.opentelekomcloud.inputs.CsbsBackupPolicyV1ResourceArgs;
import com.pulumi.opentelekomcloud.inputs.CsbsBackupPolicyV1ScheduledOperationArgs;
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 name = config.get("name");
final var id = config.get("id");
final var resourceName = config.get("resourceName");
var backupPolicyV1 = new CsbsBackupPolicyV1("backupPolicyV1", CsbsBackupPolicyV1Args.builder()
.resources(CsbsBackupPolicyV1ResourceArgs.builder()
.id(id)
.type("OS::Nova::Server")
.name(resourceName)
.build())
.scheduledOperation(CsbsBackupPolicyV1ScheduledOperationArgs.builder()
.name(var_.scheduled_operation_name())
.enabled(true)
.operationType("backup")
.maxBackups("6")
.triggerPattern("""
BEGIN:VCALENDAR
BEGIN:VEVENT
RRULE:FREQ=WEEKLY;BYDAY=TH;BYHOUR=12;BYMINUTE=27
END:VEVENT
END:VCALENDAR
""")
.weekBackups("4")
.monthBackups("2")
.timezone("UTC+03:00")
.build())
.build());
}
}
configuration:
name:
type: dynamic
id:
type: dynamic
resourceName:
type: dynamic
resources:
backupPolicyV1:
type: opentelekomcloud:CsbsBackupPolicyV1
properties:
resources:
- id: ${id}
type: OS::Nova::Server
name: ${resourceName}
scheduledOperation:
name: ${var.scheduled_operation_name}
enabled: true
operationType: backup
maxBackups: '6'
triggerPattern: "BEGIN:VCALENDAR\r\nBEGIN:VEVENT\r\nRRULE:FREQ=WEEKLY;BYDAY=TH;BYHOUR=12;BYMINUTE=27\r\nEND:VEVENT\r\nEND:VCALENDAR\r\n"
weekBackups: '4'
monthBackups: '2'
timezone: UTC+03:00
Create CsbsBackupPolicyV1 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CsbsBackupPolicyV1(name: string, args: CsbsBackupPolicyV1Args, opts?: CustomResourceOptions);
@overload
def CsbsBackupPolicyV1(resource_name: str,
args: CsbsBackupPolicyV1Args,
opts: Optional[ResourceOptions] = None)
@overload
def CsbsBackupPolicyV1(resource_name: str,
opts: Optional[ResourceOptions] = None,
resources: Optional[Sequence[CsbsBackupPolicyV1ResourceArgs]] = None,
scheduled_operation: Optional[CsbsBackupPolicyV1ScheduledOperationArgs] = None,
common: Optional[Mapping[str, str]] = None,
csbs_backup_policy_v1_id: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
provider_id: Optional[str] = None,
region: Optional[str] = None,
tags: Optional[Sequence[CsbsBackupPolicyV1TagArgs]] = None,
timeouts: Optional[CsbsBackupPolicyV1TimeoutsArgs] = None)
func NewCsbsBackupPolicyV1(ctx *Context, name string, args CsbsBackupPolicyV1Args, opts ...ResourceOption) (*CsbsBackupPolicyV1, error)
public CsbsBackupPolicyV1(string name, CsbsBackupPolicyV1Args args, CustomResourceOptions? opts = null)
public CsbsBackupPolicyV1(String name, CsbsBackupPolicyV1Args args)
public CsbsBackupPolicyV1(String name, CsbsBackupPolicyV1Args args, CustomResourceOptions options)
type: opentelekomcloud:CsbsBackupPolicyV1
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 CsbsBackupPolicyV1Args
- 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 CsbsBackupPolicyV1Args
- 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 CsbsBackupPolicyV1Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CsbsBackupPolicyV1Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CsbsBackupPolicyV1Args
- 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 csbsBackupPolicyV1Resource = new Opentelekomcloud.CsbsBackupPolicyV1("csbsBackupPolicyV1Resource", new()
{
Resources = new[]
{
new Opentelekomcloud.Inputs.CsbsBackupPolicyV1ResourceArgs
{
Id = "string",
Name = "string",
Type = "string",
},
},
ScheduledOperation = new Opentelekomcloud.Inputs.CsbsBackupPolicyV1ScheduledOperationArgs
{
OperationType = "string",
TriggerPattern = "string",
Permanent = false,
RetentionDurationDays = 0,
MaxBackups = 0,
MonthBackups = 0,
Name = "string",
Enabled = false,
DayBackups = 0,
Id = "string",
Timezone = "string",
TriggerId = "string",
TriggerName = "string",
Description = "string",
TriggerType = "string",
WeekBackups = 0,
YearBackups = 0,
},
Common =
{
{ "string", "string" },
},
CsbsBackupPolicyV1Id = "string",
Description = "string",
Name = "string",
ProviderId = "string",
Region = "string",
Tags = new[]
{
new Opentelekomcloud.Inputs.CsbsBackupPolicyV1TagArgs
{
Key = "string",
Value = "string",
},
},
Timeouts = new Opentelekomcloud.Inputs.CsbsBackupPolicyV1TimeoutsArgs
{
Create = "string",
Delete = "string",
},
});
example, err := opentelekomcloud.NewCsbsBackupPolicyV1(ctx, "csbsBackupPolicyV1Resource", &opentelekomcloud.CsbsBackupPolicyV1Args{
Resources: opentelekomcloud.CsbsBackupPolicyV1ResourceArray{
&opentelekomcloud.CsbsBackupPolicyV1ResourceArgs{
Id: pulumi.String("string"),
Name: pulumi.String("string"),
Type: pulumi.String("string"),
},
},
ScheduledOperation: &opentelekomcloud.CsbsBackupPolicyV1ScheduledOperationArgs{
OperationType: pulumi.String("string"),
TriggerPattern: pulumi.String("string"),
Permanent: pulumi.Bool(false),
RetentionDurationDays: pulumi.Float64(0),
MaxBackups: pulumi.Float64(0),
MonthBackups: pulumi.Float64(0),
Name: pulumi.String("string"),
Enabled: pulumi.Bool(false),
DayBackups: pulumi.Float64(0),
Id: pulumi.String("string"),
Timezone: pulumi.String("string"),
TriggerId: pulumi.String("string"),
TriggerName: pulumi.String("string"),
Description: pulumi.String("string"),
TriggerType: pulumi.String("string"),
WeekBackups: pulumi.Float64(0),
YearBackups: pulumi.Float64(0),
},
Common: pulumi.StringMap{
"string": pulumi.String("string"),
},
CsbsBackupPolicyV1Id: pulumi.String("string"),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
ProviderId: pulumi.String("string"),
Region: pulumi.String("string"),
Tags: opentelekomcloud.CsbsBackupPolicyV1TagArray{
&opentelekomcloud.CsbsBackupPolicyV1TagArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
Timeouts: &opentelekomcloud.CsbsBackupPolicyV1TimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
})
var csbsBackupPolicyV1Resource = new CsbsBackupPolicyV1("csbsBackupPolicyV1Resource", CsbsBackupPolicyV1Args.builder()
.resources(CsbsBackupPolicyV1ResourceArgs.builder()
.id("string")
.name("string")
.type("string")
.build())
.scheduledOperation(CsbsBackupPolicyV1ScheduledOperationArgs.builder()
.operationType("string")
.triggerPattern("string")
.permanent(false)
.retentionDurationDays(0)
.maxBackups(0)
.monthBackups(0)
.name("string")
.enabled(false)
.dayBackups(0)
.id("string")
.timezone("string")
.triggerId("string")
.triggerName("string")
.description("string")
.triggerType("string")
.weekBackups(0)
.yearBackups(0)
.build())
.common(Map.of("string", "string"))
.csbsBackupPolicyV1Id("string")
.description("string")
.name("string")
.providerId("string")
.region("string")
.tags(CsbsBackupPolicyV1TagArgs.builder()
.key("string")
.value("string")
.build())
.timeouts(CsbsBackupPolicyV1TimeoutsArgs.builder()
.create("string")
.delete("string")
.build())
.build());
csbs_backup_policy_v1_resource = opentelekomcloud.CsbsBackupPolicyV1("csbsBackupPolicyV1Resource",
resources=[{
"id": "string",
"name": "string",
"type": "string",
}],
scheduled_operation={
"operation_type": "string",
"trigger_pattern": "string",
"permanent": False,
"retention_duration_days": 0,
"max_backups": 0,
"month_backups": 0,
"name": "string",
"enabled": False,
"day_backups": 0,
"id": "string",
"timezone": "string",
"trigger_id": "string",
"trigger_name": "string",
"description": "string",
"trigger_type": "string",
"week_backups": 0,
"year_backups": 0,
},
common={
"string": "string",
},
csbs_backup_policy_v1_id="string",
description="string",
name="string",
provider_id="string",
region="string",
tags=[{
"key": "string",
"value": "string",
}],
timeouts={
"create": "string",
"delete": "string",
})
const csbsBackupPolicyV1Resource = new opentelekomcloud.CsbsBackupPolicyV1("csbsBackupPolicyV1Resource", {
resources: [{
id: "string",
name: "string",
type: "string",
}],
scheduledOperation: {
operationType: "string",
triggerPattern: "string",
permanent: false,
retentionDurationDays: 0,
maxBackups: 0,
monthBackups: 0,
name: "string",
enabled: false,
dayBackups: 0,
id: "string",
timezone: "string",
triggerId: "string",
triggerName: "string",
description: "string",
triggerType: "string",
weekBackups: 0,
yearBackups: 0,
},
common: {
string: "string",
},
csbsBackupPolicyV1Id: "string",
description: "string",
name: "string",
providerId: "string",
region: "string",
tags: [{
key: "string",
value: "string",
}],
timeouts: {
create: "string",
"delete": "string",
},
});
type: opentelekomcloud:CsbsBackupPolicyV1
properties:
common:
string: string
csbsBackupPolicyV1Id: string
description: string
name: string
providerId: string
region: string
resources:
- id: string
name: string
type: string
scheduledOperation:
dayBackups: 0
description: string
enabled: false
id: string
maxBackups: 0
monthBackups: 0
name: string
operationType: string
permanent: false
retentionDurationDays: 0
timezone: string
triggerId: string
triggerName: string
triggerPattern: string
triggerType: string
weekBackups: 0
yearBackups: 0
tags:
- key: string
value: string
timeouts:
create: string
delete: string
CsbsBackupPolicyV1 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 CsbsBackupPolicyV1 resource accepts the following input properties:
- Resources
List<Csbs
Backup Policy V1Resource> - Scheduled
Operation CsbsBackup Policy V1Scheduled Operation - Backup plan information
- Common Dictionary<string, string>
- General backup policy parameters, which are blank by default.
- Csbs
Backup stringPolicy V1Id - Specifies Scheduling period ID.
- Description string
- Backup policy description. The value consists of 0 to 255 characters and must not contain a greater-than sign (>) or less-than sign (<).
- Name string
- Specifies the name of backup policy. The value consists of 1 to 255 characters and can contain only letters, digits, underscores (_), and hyphens (-).
- Provider
Id string - Specifies backup provider ID. Default value is fc4d5750-22e7-4798-8a46-f48f62c4c1da
- Region string
- List<Csbs
Backup Policy V1Tag> - Timeouts
Csbs
Backup Policy V1Timeouts
- Resources
[]Csbs
Backup Policy V1Resource Args - Scheduled
Operation CsbsBackup Policy V1Scheduled Operation Args - Backup plan information
- Common map[string]string
- General backup policy parameters, which are blank by default.
- Csbs
Backup stringPolicy V1Id - Specifies Scheduling period ID.
- Description string
- Backup policy description. The value consists of 0 to 255 characters and must not contain a greater-than sign (>) or less-than sign (<).
- Name string
- Specifies the name of backup policy. The value consists of 1 to 255 characters and can contain only letters, digits, underscores (_), and hyphens (-).
- Provider
Id string - Specifies backup provider ID. Default value is fc4d5750-22e7-4798-8a46-f48f62c4c1da
- Region string
- []Csbs
Backup Policy V1Tag Args - Timeouts
Csbs
Backup Policy V1Timeouts Args
- resources
List<Csbs
Backup Policy V1Resource> - scheduled
Operation CsbsBackup Policy V1Scheduled Operation - Backup plan information
- common Map<String,String>
- General backup policy parameters, which are blank by default.
- csbs
Backup StringPolicy V1Id - Specifies Scheduling period ID.
- description String
- Backup policy description. The value consists of 0 to 255 characters and must not contain a greater-than sign (>) or less-than sign (<).
- name String
- Specifies the name of backup policy. The value consists of 1 to 255 characters and can contain only letters, digits, underscores (_), and hyphens (-).
- provider
Id String - Specifies backup provider ID. Default value is fc4d5750-22e7-4798-8a46-f48f62c4c1da
- region String
- List<Csbs
Backup Policy V1Tag> - timeouts
Csbs
Backup Policy V1Timeouts
- resources
Csbs
Backup Policy V1Resource[] - scheduled
Operation CsbsBackup Policy V1Scheduled Operation - Backup plan information
- common {[key: string]: string}
- General backup policy parameters, which are blank by default.
- csbs
Backup stringPolicy V1Id - Specifies Scheduling period ID.
- description string
- Backup policy description. The value consists of 0 to 255 characters and must not contain a greater-than sign (>) or less-than sign (<).
- name string
- Specifies the name of backup policy. The value consists of 1 to 255 characters and can contain only letters, digits, underscores (_), and hyphens (-).
- provider
Id string - Specifies backup provider ID. Default value is fc4d5750-22e7-4798-8a46-f48f62c4c1da
- region string
- Csbs
Backup Policy V1Tag[] - timeouts
Csbs
Backup Policy V1Timeouts
- resources
Sequence[Csbs
Backup Policy V1Resource Args] - scheduled_
operation CsbsBackup Policy V1Scheduled Operation Args - Backup plan information
- common Mapping[str, str]
- General backup policy parameters, which are blank by default.
- csbs_
backup_ strpolicy_ v1_ id - Specifies Scheduling period ID.
- description str
- Backup policy description. The value consists of 0 to 255 characters and must not contain a greater-than sign (>) or less-than sign (<).
- name str
- Specifies the name of backup policy. The value consists of 1 to 255 characters and can contain only letters, digits, underscores (_), and hyphens (-).
- provider_
id str - Specifies backup provider ID. Default value is fc4d5750-22e7-4798-8a46-f48f62c4c1da
- region str
- Sequence[Csbs
Backup Policy V1Tag Args] - timeouts
Csbs
Backup Policy V1Timeouts Args
- resources List<Property Map>
- scheduled
Operation Property Map - Backup plan information
- common Map<String>
- General backup policy parameters, which are blank by default.
- csbs
Backup StringPolicy V1Id - Specifies Scheduling period ID.
- description String
- Backup policy description. The value consists of 0 to 255 characters and must not contain a greater-than sign (>) or less-than sign (<).
- name String
- Specifies the name of backup policy. The value consists of 1 to 255 characters and can contain only letters, digits, underscores (_), and hyphens (-).
- provider
Id String - Specifies backup provider ID. Default value is fc4d5750-22e7-4798-8a46-f48f62c4c1da
- region String
- List<Property Map>
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the CsbsBackupPolicyV1 resource produces the following output properties:
- created_
at str - Backup creation time.
- id str
- The provider-assigned unique ID for this managed resource.
- status str
- Status of Backup Policy.
Look up Existing CsbsBackupPolicyV1 Resource
Get an existing CsbsBackupPolicyV1 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?: CsbsBackupPolicyV1State, opts?: CustomResourceOptions): CsbsBackupPolicyV1
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
common: Optional[Mapping[str, str]] = None,
created_at: Optional[str] = None,
csbs_backup_policy_v1_id: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
provider_id: Optional[str] = None,
region: Optional[str] = None,
resources: Optional[Sequence[CsbsBackupPolicyV1ResourceArgs]] = None,
scheduled_operation: Optional[CsbsBackupPolicyV1ScheduledOperationArgs] = None,
status: Optional[str] = None,
tags: Optional[Sequence[CsbsBackupPolicyV1TagArgs]] = None,
timeouts: Optional[CsbsBackupPolicyV1TimeoutsArgs] = None) -> CsbsBackupPolicyV1
func GetCsbsBackupPolicyV1(ctx *Context, name string, id IDInput, state *CsbsBackupPolicyV1State, opts ...ResourceOption) (*CsbsBackupPolicyV1, error)
public static CsbsBackupPolicyV1 Get(string name, Input<string> id, CsbsBackupPolicyV1State? state, CustomResourceOptions? opts = null)
public static CsbsBackupPolicyV1 get(String name, Output<String> id, CsbsBackupPolicyV1State state, CustomResourceOptions options)
resources: _: type: opentelekomcloud:CsbsBackupPolicyV1 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.
- Common Dictionary<string, string>
- General backup policy parameters, which are blank by default.
- Created
At string - Backup creation time.
- Csbs
Backup stringPolicy V1Id - Specifies Scheduling period ID.
- Description string
- Backup policy description. The value consists of 0 to 255 characters and must not contain a greater-than sign (>) or less-than sign (<).
- Name string
- Specifies the name of backup policy. The value consists of 1 to 255 characters and can contain only letters, digits, underscores (_), and hyphens (-).
- Provider
Id string - Specifies backup provider ID. Default value is fc4d5750-22e7-4798-8a46-f48f62c4c1da
- Region string
- Resources
List<Csbs
Backup Policy V1Resource> - Scheduled
Operation CsbsBackup Policy V1Scheduled Operation - Backup plan information
- Status string
- Status of Backup Policy.
- List<Csbs
Backup Policy V1Tag> - Timeouts
Csbs
Backup Policy V1Timeouts
- Common map[string]string
- General backup policy parameters, which are blank by default.
- Created
At string - Backup creation time.
- Csbs
Backup stringPolicy V1Id - Specifies Scheduling period ID.
- Description string
- Backup policy description. The value consists of 0 to 255 characters and must not contain a greater-than sign (>) or less-than sign (<).
- Name string
- Specifies the name of backup policy. The value consists of 1 to 255 characters and can contain only letters, digits, underscores (_), and hyphens (-).
- Provider
Id string - Specifies backup provider ID. Default value is fc4d5750-22e7-4798-8a46-f48f62c4c1da
- Region string
- Resources
[]Csbs
Backup Policy V1Resource Args - Scheduled
Operation CsbsBackup Policy V1Scheduled Operation Args - Backup plan information
- Status string
- Status of Backup Policy.
- []Csbs
Backup Policy V1Tag Args - Timeouts
Csbs
Backup Policy V1Timeouts Args
- common Map<String,String>
- General backup policy parameters, which are blank by default.
- created
At String - Backup creation time.
- csbs
Backup StringPolicy V1Id - Specifies Scheduling period ID.
- description String
- Backup policy description. The value consists of 0 to 255 characters and must not contain a greater-than sign (>) or less-than sign (<).
- name String
- Specifies the name of backup policy. The value consists of 1 to 255 characters and can contain only letters, digits, underscores (_), and hyphens (-).
- provider
Id String - Specifies backup provider ID. Default value is fc4d5750-22e7-4798-8a46-f48f62c4c1da
- region String
- resources
List<Csbs
Backup Policy V1Resource> - scheduled
Operation CsbsBackup Policy V1Scheduled Operation - Backup plan information
- status String
- Status of Backup Policy.
- List<Csbs
Backup Policy V1Tag> - timeouts
Csbs
Backup Policy V1Timeouts
- common {[key: string]: string}
- General backup policy parameters, which are blank by default.
- created
At string - Backup creation time.
- csbs
Backup stringPolicy V1Id - Specifies Scheduling period ID.
- description string
- Backup policy description. The value consists of 0 to 255 characters and must not contain a greater-than sign (>) or less-than sign (<).
- name string
- Specifies the name of backup policy. The value consists of 1 to 255 characters and can contain only letters, digits, underscores (_), and hyphens (-).
- provider
Id string - Specifies backup provider ID. Default value is fc4d5750-22e7-4798-8a46-f48f62c4c1da
- region string
- resources
Csbs
Backup Policy V1Resource[] - scheduled
Operation CsbsBackup Policy V1Scheduled Operation - Backup plan information
- status string
- Status of Backup Policy.
- Csbs
Backup Policy V1Tag[] - timeouts
Csbs
Backup Policy V1Timeouts
- common Mapping[str, str]
- General backup policy parameters, which are blank by default.
- created_
at str - Backup creation time.
- csbs_
backup_ strpolicy_ v1_ id - Specifies Scheduling period ID.
- description str
- Backup policy description. The value consists of 0 to 255 characters and must not contain a greater-than sign (>) or less-than sign (<).
- name str
- Specifies the name of backup policy. The value consists of 1 to 255 characters and can contain only letters, digits, underscores (_), and hyphens (-).
- provider_
id str - Specifies backup provider ID. Default value is fc4d5750-22e7-4798-8a46-f48f62c4c1da
- region str
- resources
Sequence[Csbs
Backup Policy V1Resource Args] - scheduled_
operation CsbsBackup Policy V1Scheduled Operation Args - Backup plan information
- status str
- Status of Backup Policy.
- Sequence[Csbs
Backup Policy V1Tag Args] - timeouts
Csbs
Backup Policy V1Timeouts Args
- common Map<String>
- General backup policy parameters, which are blank by default.
- created
At String - Backup creation time.
- csbs
Backup StringPolicy V1Id - Specifies Scheduling period ID.
- description String
- Backup policy description. The value consists of 0 to 255 characters and must not contain a greater-than sign (>) or less-than sign (<).
- name String
- Specifies the name of backup policy. The value consists of 1 to 255 characters and can contain only letters, digits, underscores (_), and hyphens (-).
- provider
Id String - Specifies backup provider ID. Default value is fc4d5750-22e7-4798-8a46-f48f62c4c1da
- region String
- resources List<Property Map>
- scheduled
Operation Property Map - Backup plan information
- status String
- Status of Backup Policy.
- List<Property Map>
- timeouts Property Map
Supporting Types
CsbsBackupPolicyV1Resource, CsbsBackupPolicyV1ResourceArgs
CsbsBackupPolicyV1ScheduledOperation, CsbsBackupPolicyV1ScheduledOperationArgs
- Operation
Type string - Specifies Operation type, which can be backup.
- Trigger
Pattern string - Specifies Scheduling policy of the scheduler.
- Day
Backups double - Specifies the maximum number of retained daily backups.
The latest backup of each day is saved in the long term. This parameter can be effective
together with the maximum number of retained backups specified by
max_backups
. - Description string
- Specifies Scheduling period description.The value consists of 0 to 255 characters and must not contain a greater-than sign (>) or less-than sign (<).
- Enabled bool
- Specifies whether the scheduling period is enabled. Default value is true
- Id string
- Specifies Scheduling period ID.
- Max
Backups double - Specifies maximum number of backups that can be automatically created for a backup object.
- Month
Backups double - Specifies the maximum number of retained monthly backups.
The latest backup of each month is saved in the long term. This parameter can be effective
together with the maximum number of retained backups specified by
max_backups
. - Name string
- Specifies Scheduling period name.The value consists of 1 to 255 characters and can contain only letters, digits, underscores (_), and hyphens (-).
- Permanent bool
- Specifies whether backups are permanently retained.
- Retention
Duration doubleDays Specifies duration of retaining a backup, in days.
Note: If
day_backups
,week_backups
,month_backups
oryear_backups
is configuredtimezone
is mandatory.- Timezone string
- Time zone where the user is located, for example,
UTC+08:00
. - Trigger
Id string - Specifies Scheduler ID.
- Trigger
Name string - Specifies Scheduler name.
- Trigger
Type string - Specifies Scheduler type.
- Week
Backups double - Specifies the maximum number of retained weekly backups.
The latest backup of each week is saved in the long term. This parameter can be effective
together with the maximum number of retained backups specified by
max_backups
. - Year
Backups double - Specifies the maximum number of retained yearly backups.
The latest backup of each year is saved in the long term. This parameter can be effective
together with the maximum number of retained backups specified by
max_backups
.
- Operation
Type string - Specifies Operation type, which can be backup.
- Trigger
Pattern string - Specifies Scheduling policy of the scheduler.
- Day
Backups float64 - Specifies the maximum number of retained daily backups.
The latest backup of each day is saved in the long term. This parameter can be effective
together with the maximum number of retained backups specified by
max_backups
. - Description string
- Specifies Scheduling period description.The value consists of 0 to 255 characters and must not contain a greater-than sign (>) or less-than sign (<).
- Enabled bool
- Specifies whether the scheduling period is enabled. Default value is true
- Id string
- Specifies Scheduling period ID.
- Max
Backups float64 - Specifies maximum number of backups that can be automatically created for a backup object.
- Month
Backups float64 - Specifies the maximum number of retained monthly backups.
The latest backup of each month is saved in the long term. This parameter can be effective
together with the maximum number of retained backups specified by
max_backups
. - Name string
- Specifies Scheduling period name.The value consists of 1 to 255 characters and can contain only letters, digits, underscores (_), and hyphens (-).
- Permanent bool
- Specifies whether backups are permanently retained.
- Retention
Duration float64Days Specifies duration of retaining a backup, in days.
Note: If
day_backups
,week_backups
,month_backups
oryear_backups
is configuredtimezone
is mandatory.- Timezone string
- Time zone where the user is located, for example,
UTC+08:00
. - Trigger
Id string - Specifies Scheduler ID.
- Trigger
Name string - Specifies Scheduler name.
- Trigger
Type string - Specifies Scheduler type.
- Week
Backups float64 - Specifies the maximum number of retained weekly backups.
The latest backup of each week is saved in the long term. This parameter can be effective
together with the maximum number of retained backups specified by
max_backups
. - Year
Backups float64 - Specifies the maximum number of retained yearly backups.
The latest backup of each year is saved in the long term. This parameter can be effective
together with the maximum number of retained backups specified by
max_backups
.
- operation
Type String - Specifies Operation type, which can be backup.
- trigger
Pattern String - Specifies Scheduling policy of the scheduler.
- day
Backups Double - Specifies the maximum number of retained daily backups.
The latest backup of each day is saved in the long term. This parameter can be effective
together with the maximum number of retained backups specified by
max_backups
. - description String
- Specifies Scheduling period description.The value consists of 0 to 255 characters and must not contain a greater-than sign (>) or less-than sign (<).
- enabled Boolean
- Specifies whether the scheduling period is enabled. Default value is true
- id String
- Specifies Scheduling period ID.
- max
Backups Double - Specifies maximum number of backups that can be automatically created for a backup object.
- month
Backups Double - Specifies the maximum number of retained monthly backups.
The latest backup of each month is saved in the long term. This parameter can be effective
together with the maximum number of retained backups specified by
max_backups
. - name String
- Specifies Scheduling period name.The value consists of 1 to 255 characters and can contain only letters, digits, underscores (_), and hyphens (-).
- permanent Boolean
- Specifies whether backups are permanently retained.
- retention
Duration DoubleDays Specifies duration of retaining a backup, in days.
Note: If
day_backups
,week_backups
,month_backups
oryear_backups
is configuredtimezone
is mandatory.- timezone String
- Time zone where the user is located, for example,
UTC+08:00
. - trigger
Id String - Specifies Scheduler ID.
- trigger
Name String - Specifies Scheduler name.
- trigger
Type String - Specifies Scheduler type.
- week
Backups Double - Specifies the maximum number of retained weekly backups.
The latest backup of each week is saved in the long term. This parameter can be effective
together with the maximum number of retained backups specified by
max_backups
. - year
Backups Double - Specifies the maximum number of retained yearly backups.
The latest backup of each year is saved in the long term. This parameter can be effective
together with the maximum number of retained backups specified by
max_backups
.
- operation
Type string - Specifies Operation type, which can be backup.
- trigger
Pattern string - Specifies Scheduling policy of the scheduler.
- day
Backups number - Specifies the maximum number of retained daily backups.
The latest backup of each day is saved in the long term. This parameter can be effective
together with the maximum number of retained backups specified by
max_backups
. - description string
- Specifies Scheduling period description.The value consists of 0 to 255 characters and must not contain a greater-than sign (>) or less-than sign (<).
- enabled boolean
- Specifies whether the scheduling period is enabled. Default value is true
- id string
- Specifies Scheduling period ID.
- max
Backups number - Specifies maximum number of backups that can be automatically created for a backup object.
- month
Backups number - Specifies the maximum number of retained monthly backups.
The latest backup of each month is saved in the long term. This parameter can be effective
together with the maximum number of retained backups specified by
max_backups
. - name string
- Specifies Scheduling period name.The value consists of 1 to 255 characters and can contain only letters, digits, underscores (_), and hyphens (-).
- permanent boolean
- Specifies whether backups are permanently retained.
- retention
Duration numberDays Specifies duration of retaining a backup, in days.
Note: If
day_backups
,week_backups
,month_backups
oryear_backups
is configuredtimezone
is mandatory.- timezone string
- Time zone where the user is located, for example,
UTC+08:00
. - trigger
Id string - Specifies Scheduler ID.
- trigger
Name string - Specifies Scheduler name.
- trigger
Type string - Specifies Scheduler type.
- week
Backups number - Specifies the maximum number of retained weekly backups.
The latest backup of each week is saved in the long term. This parameter can be effective
together with the maximum number of retained backups specified by
max_backups
. - year
Backups number - Specifies the maximum number of retained yearly backups.
The latest backup of each year is saved in the long term. This parameter can be effective
together with the maximum number of retained backups specified by
max_backups
.
- operation_
type str - Specifies Operation type, which can be backup.
- trigger_
pattern str - Specifies Scheduling policy of the scheduler.
- day_
backups float - Specifies the maximum number of retained daily backups.
The latest backup of each day is saved in the long term. This parameter can be effective
together with the maximum number of retained backups specified by
max_backups
. - description str
- Specifies Scheduling period description.The value consists of 0 to 255 characters and must not contain a greater-than sign (>) or less-than sign (<).
- enabled bool
- Specifies whether the scheduling period is enabled. Default value is true
- id str
- Specifies Scheduling period ID.
- max_
backups float - Specifies maximum number of backups that can be automatically created for a backup object.
- month_
backups float - Specifies the maximum number of retained monthly backups.
The latest backup of each month is saved in the long term. This parameter can be effective
together with the maximum number of retained backups specified by
max_backups
. - name str
- Specifies Scheduling period name.The value consists of 1 to 255 characters and can contain only letters, digits, underscores (_), and hyphens (-).
- permanent bool
- Specifies whether backups are permanently retained.
- retention_
duration_ floatdays Specifies duration of retaining a backup, in days.
Note: If
day_backups
,week_backups
,month_backups
oryear_backups
is configuredtimezone
is mandatory.- timezone str
- Time zone where the user is located, for example,
UTC+08:00
. - trigger_
id str - Specifies Scheduler ID.
- trigger_
name str - Specifies Scheduler name.
- trigger_
type str - Specifies Scheduler type.
- week_
backups float - Specifies the maximum number of retained weekly backups.
The latest backup of each week is saved in the long term. This parameter can be effective
together with the maximum number of retained backups specified by
max_backups
. - year_
backups float - Specifies the maximum number of retained yearly backups.
The latest backup of each year is saved in the long term. This parameter can be effective
together with the maximum number of retained backups specified by
max_backups
.
- operation
Type String - Specifies Operation type, which can be backup.
- trigger
Pattern String - Specifies Scheduling policy of the scheduler.
- day
Backups Number - Specifies the maximum number of retained daily backups.
The latest backup of each day is saved in the long term. This parameter can be effective
together with the maximum number of retained backups specified by
max_backups
. - description String
- Specifies Scheduling period description.The value consists of 0 to 255 characters and must not contain a greater-than sign (>) or less-than sign (<).
- enabled Boolean
- Specifies whether the scheduling period is enabled. Default value is true
- id String
- Specifies Scheduling period ID.
- max
Backups Number - Specifies maximum number of backups that can be automatically created for a backup object.
- month
Backups Number - Specifies the maximum number of retained monthly backups.
The latest backup of each month is saved in the long term. This parameter can be effective
together with the maximum number of retained backups specified by
max_backups
. - name String
- Specifies Scheduling period name.The value consists of 1 to 255 characters and can contain only letters, digits, underscores (_), and hyphens (-).
- permanent Boolean
- Specifies whether backups are permanently retained.
- retention
Duration NumberDays Specifies duration of retaining a backup, in days.
Note: If
day_backups
,week_backups
,month_backups
oryear_backups
is configuredtimezone
is mandatory.- timezone String
- Time zone where the user is located, for example,
UTC+08:00
. - trigger
Id String - Specifies Scheduler ID.
- trigger
Name String - Specifies Scheduler name.
- trigger
Type String - Specifies Scheduler type.
- week
Backups Number - Specifies the maximum number of retained weekly backups.
The latest backup of each week is saved in the long term. This parameter can be effective
together with the maximum number of retained backups specified by
max_backups
. - year
Backups Number - Specifies the maximum number of retained yearly backups.
The latest backup of each year is saved in the long term. This parameter can be effective
together with the maximum number of retained backups specified by
max_backups
.
CsbsBackupPolicyV1Tag, CsbsBackupPolicyV1TagArgs
CsbsBackupPolicyV1Timeouts, CsbsBackupPolicyV1TimeoutsArgs
Import
Backup Policy can be imported using id
, e.g.
$ pulumi import opentelekomcloud:index/csbsBackupPolicyV1:CsbsBackupPolicyV1 backup_policy_v1 7056d636-ac60-4663-8a6c-82d3c32c1c64
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.