flexibleengine.CsbsBackupPolicyV1
Explore with Pulumi AI
Provides a FlexibleEngine Backup Policy of Resources.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const config = new pulumi.Config();
const name = config.requireObject("name");
const id = config.requireObject("id");
const resourceName = config.requireObject("resourceName");
const backupPolicyV1 = new flexibleengine.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_flexibleengine as flexibleengine
config = pulumi.Config()
name = config.require_object("name")
id = config.require_object("id")
resource_name = config.require_object("resourceName")
backup_policy_v1 = flexibleengine.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/flexibleengine/flexibleengine"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := cfg.RequireObject("name")
id := cfg.RequireObject("id")
resourceName := cfg.RequireObject("resourceName")
_, err := flexibleengine.NewCsbsBackupPolicyV1(ctx, "backupPolicyV1", &flexibleengine.CsbsBackupPolicyV1Args{
Resources: flexibleengine.CsbsBackupPolicyV1ResourceArray{
&flexibleengine.CsbsBackupPolicyV1ResourceArgs{
Id: pulumi.Any(id),
Type: pulumi.String("OS::Nova::Server"),
Name: pulumi.Any(resourceName),
},
},
ScheduledOperation: &flexibleengine.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 Flexibleengine = Pulumi.Flexibleengine;
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 Flexibleengine.CsbsBackupPolicyV1("backupPolicyV1", new()
{
Resources = new[]
{
new Flexibleengine.Inputs.CsbsBackupPolicyV1ResourceArgs
{
Id = id,
Type = "OS::Nova::Server",
Name = resourceName,
},
},
ScheduledOperation = new Flexibleengine.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.flexibleengine.CsbsBackupPolicyV1;
import com.pulumi.flexibleengine.CsbsBackupPolicyV1Args;
import com.pulumi.flexibleengine.inputs.CsbsBackupPolicyV1ResourceArgs;
import com.pulumi.flexibleengine.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: flexibleengine: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"
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,
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: flexibleengine: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 Flexibleengine.CsbsBackupPolicyV1("csbsBackupPolicyV1Resource", new()
{
Resources = new[]
{
new Flexibleengine.Inputs.CsbsBackupPolicyV1ResourceArgs
{
Id = "string",
Name = "string",
Type = "string",
},
},
ScheduledOperation = new Flexibleengine.Inputs.CsbsBackupPolicyV1ScheduledOperationArgs
{
OperationType = "string",
TriggerPattern = "string",
Description = "string",
Enabled = false,
Id = "string",
MaxBackups = 0,
Name = "string",
Permanent = false,
RetentionDurationDays = 0,
TriggerId = "string",
TriggerName = "string",
TriggerType = "string",
},
Common =
{
{ "string", "string" },
},
CsbsBackupPolicyV1Id = "string",
Description = "string",
Name = "string",
ProviderId = "string",
Region = "string",
Timeouts = new Flexibleengine.Inputs.CsbsBackupPolicyV1TimeoutsArgs
{
Create = "string",
Delete = "string",
},
});
example, err := flexibleengine.NewCsbsBackupPolicyV1(ctx, "csbsBackupPolicyV1Resource", &flexibleengine.CsbsBackupPolicyV1Args{
Resources: flexibleengine.CsbsBackupPolicyV1ResourceArray{
&flexibleengine.CsbsBackupPolicyV1ResourceArgs{
Id: pulumi.String("string"),
Name: pulumi.String("string"),
Type: pulumi.String("string"),
},
},
ScheduledOperation: &flexibleengine.CsbsBackupPolicyV1ScheduledOperationArgs{
OperationType: pulumi.String("string"),
TriggerPattern: pulumi.String("string"),
Description: pulumi.String("string"),
Enabled: pulumi.Bool(false),
Id: pulumi.String("string"),
MaxBackups: pulumi.Float64(0),
Name: pulumi.String("string"),
Permanent: pulumi.Bool(false),
RetentionDurationDays: pulumi.Float64(0),
TriggerId: pulumi.String("string"),
TriggerName: pulumi.String("string"),
TriggerType: pulumi.String("string"),
},
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"),
Timeouts: &flexibleengine.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")
.description("string")
.enabled(false)
.id("string")
.maxBackups(0)
.name("string")
.permanent(false)
.retentionDurationDays(0)
.triggerId("string")
.triggerName("string")
.triggerType("string")
.build())
.common(Map.of("string", "string"))
.csbsBackupPolicyV1Id("string")
.description("string")
.name("string")
.providerId("string")
.region("string")
.timeouts(CsbsBackupPolicyV1TimeoutsArgs.builder()
.create("string")
.delete("string")
.build())
.build());
csbs_backup_policy_v1_resource = flexibleengine.CsbsBackupPolicyV1("csbsBackupPolicyV1Resource",
resources=[{
"id": "string",
"name": "string",
"type": "string",
}],
scheduled_operation={
"operation_type": "string",
"trigger_pattern": "string",
"description": "string",
"enabled": False,
"id": "string",
"max_backups": 0,
"name": "string",
"permanent": False,
"retention_duration_days": 0,
"trigger_id": "string",
"trigger_name": "string",
"trigger_type": "string",
},
common={
"string": "string",
},
csbs_backup_policy_v1_id="string",
description="string",
name="string",
provider_id="string",
region="string",
timeouts={
"create": "string",
"delete": "string",
})
const csbsBackupPolicyV1Resource = new flexibleengine.CsbsBackupPolicyV1("csbsBackupPolicyV1Resource", {
resources: [{
id: "string",
name: "string",
type: "string",
}],
scheduledOperation: {
operationType: "string",
triggerPattern: "string",
description: "string",
enabled: false,
id: "string",
maxBackups: 0,
name: "string",
permanent: false,
retentionDurationDays: 0,
triggerId: "string",
triggerName: "string",
triggerType: "string",
},
common: {
string: "string",
},
csbsBackupPolicyV1Id: "string",
description: "string",
name: "string",
providerId: "string",
region: "string",
timeouts: {
create: "string",
"delete": "string",
},
});
type: flexibleengine:CsbsBackupPolicyV1
properties:
common:
string: string
csbsBackupPolicyV1Id: string
description: string
name: string
providerId: string
region: string
resources:
- id: string
name: string
type: string
scheduledOperation:
description: string
enabled: false
id: string
maxBackups: 0
name: string
operationType: string
permanent: false
retentionDurationDays: 0
triggerId: string
triggerName: string
triggerPattern: string
triggerType: 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> - Backup Object.
- 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
- Specifies the region in which to create the CSBS backup policy resource. If omitted, the provider-level region will be used. Changing this will create a new CSBS backup policy resource.
- Timeouts
Csbs
Backup Policy V1Timeouts
- Resources
[]Csbs
Backup Policy V1Resource Args - Backup Object.
- 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
- Specifies the region in which to create the CSBS backup policy resource. If omitted, the provider-level region will be used. Changing this will create a new CSBS backup policy resource.
- Timeouts
Csbs
Backup Policy V1Timeouts Args
- resources
List<Csbs
Backup Policy V1Resource> - Backup Object.
- 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
- Specifies the region in which to create the CSBS backup policy resource. If omitted, the provider-level region will be used. Changing this will create a new CSBS backup policy resource.
- timeouts
Csbs
Backup Policy V1Timeouts
- resources
Csbs
Backup Policy V1Resource[] - Backup Object.
- 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
- Specifies the region in which to create the CSBS backup policy resource. If omitted, the provider-level region will be used. Changing this will create a new CSBS backup policy resource.
- timeouts
Csbs
Backup Policy V1Timeouts
- resources
Sequence[Csbs
Backup Policy V1Resource Args] - Backup Object.
- 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
- Specifies the region in which to create the CSBS backup policy resource. If omitted, the provider-level region will be used. Changing this will create a new CSBS backup policy resource.
- timeouts
Csbs
Backup Policy V1Timeouts Args
- resources List<Property Map>
- Backup Object.
- 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
- Specifies the region in which to create the CSBS backup policy resource. If omitted, the provider-level region will be used. Changing this will create a new CSBS backup policy resource.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the CsbsBackupPolicyV1 resource produces the following output properties:
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,
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,
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: flexibleengine: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.
- 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
- Specifies the region in which to create the CSBS backup policy resource. If omitted, the provider-level region will be used. Changing this will create a new CSBS backup policy resource.
- Resources
List<Csbs
Backup Policy V1Resource> - Backup Object.
- Scheduled
Operation CsbsBackup Policy V1Scheduled Operation - Backup plan information.
- Status string
- Status of Backup Policy.
- Timeouts
Csbs
Backup Policy V1Timeouts
- 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
- Specifies the region in which to create the CSBS backup policy resource. If omitted, the provider-level region will be used. Changing this will create a new CSBS backup policy resource.
- Resources
[]Csbs
Backup Policy V1Resource Args - Backup Object.
- Scheduled
Operation CsbsBackup Policy V1Scheduled Operation Args - Backup plan information.
- Status string
- Status of Backup Policy.
- Timeouts
Csbs
Backup Policy V1Timeouts Args
- 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
- Specifies the region in which to create the CSBS backup policy resource. If omitted, the provider-level region will be used. Changing this will create a new CSBS backup policy resource.
- resources
List<Csbs
Backup Policy V1Resource> - Backup Object.
- scheduled
Operation CsbsBackup Policy V1Scheduled Operation - Backup plan information.
- status String
- Status of Backup Policy.
- timeouts
Csbs
Backup Policy V1Timeouts
- 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
- Specifies the region in which to create the CSBS backup policy resource. If omitted, the provider-level region will be used. Changing this will create a new CSBS backup policy resource.
- resources
Csbs
Backup Policy V1Resource[] - Backup Object.
- scheduled
Operation CsbsBackup Policy V1Scheduled Operation - Backup plan information.
- status string
- Status of Backup Policy.
- timeouts
Csbs
Backup Policy V1Timeouts
- 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
- Specifies the region in which to create the CSBS backup policy resource. If omitted, the provider-level region will be used. Changing this will create a new CSBS backup policy resource.
- resources
Sequence[Csbs
Backup Policy V1Resource Args] - Backup Object.
- scheduled_
operation CsbsBackup Policy V1Scheduled Operation Args - Backup plan information.
- status str
- Status of Backup Policy.
- timeouts
Csbs
Backup Policy V1Timeouts Args
- 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
- Specifies the region in which to create the CSBS backup policy resource. If omitted, the provider-level region will be used. Changing this will create a new CSBS backup policy resource.
- resources List<Property Map>
- Backup Object.
- scheduled
Operation Property Map - Backup plan information.
- status String
- Status of Backup Policy.
- 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.
- 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.
- 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.
- Trigger
Id string - Specifies Scheduler ID.
- Trigger
Name string - Specifies Scheduler name.
- Trigger
Type string - Specifies Scheduler type.
- Operation
Type string - Specifies Operation type, which can be backup.
- Trigger
Pattern string - Specifies Scheduling policy of the scheduler.
- 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.
- 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.
- Trigger
Id string - Specifies Scheduler ID.
- Trigger
Name string - Specifies Scheduler name.
- Trigger
Type string - Specifies Scheduler type.
- operation
Type String - Specifies Operation type, which can be backup.
- trigger
Pattern String - Specifies Scheduling policy of the scheduler.
- 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.
- 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.
- trigger
Id String - Specifies Scheduler ID.
- trigger
Name String - Specifies Scheduler name.
- trigger
Type String - Specifies Scheduler type.
- operation
Type string - Specifies Operation type, which can be backup.
- trigger
Pattern string - Specifies Scheduling policy of the scheduler.
- 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.
- 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.
- trigger
Id string - Specifies Scheduler ID.
- trigger
Name string - Specifies Scheduler name.
- trigger
Type string - Specifies Scheduler type.
- operation_
type str - Specifies Operation type, which can be backup.
- trigger_
pattern str - Specifies Scheduling policy of the scheduler.
- 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.
- 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.
- trigger_
id str - Specifies Scheduler ID.
- trigger_
name str - Specifies Scheduler name.
- trigger_
type str - Specifies Scheduler type.
- operation
Type String - Specifies Operation type, which can be backup.
- trigger
Pattern String - Specifies Scheduling policy of the scheduler.
- 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.
- 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.
- trigger
Id String - Specifies Scheduler ID.
- trigger
Name String - Specifies Scheduler name.
- trigger
Type String - Specifies Scheduler type.
CsbsBackupPolicyV1Timeouts, CsbsBackupPolicyV1TimeoutsArgs
Import
Backup Policy can be imported using id
, e.g.
$ pulumi import flexibleengine: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
- flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
- License
- Notes
- This Pulumi package is based on the
flexibleengine
Terraform Provider.