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

opentelekomcloud.CsbsBackupPolicyV1

Explore with Pulumi AI

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

    Up-to-date reference of API arguments for 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<CsbsBackupPolicyV1Resource>
    ScheduledOperation CsbsBackupPolicyV1ScheduledOperation
    Backup plan information
    Common Dictionary<string, string>
    General backup policy parameters, which are blank by default.
    CsbsBackupPolicyV1Id string
    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 (-).
    ProviderId string
    Specifies backup provider ID. Default value is fc4d5750-22e7-4798-8a46-f48f62c4c1da
    Region string
    Tags List<CsbsBackupPolicyV1Tag>
    Timeouts CsbsBackupPolicyV1Timeouts
    Resources []CsbsBackupPolicyV1ResourceArgs
    ScheduledOperation CsbsBackupPolicyV1ScheduledOperationArgs
    Backup plan information
    Common map[string]string
    General backup policy parameters, which are blank by default.
    CsbsBackupPolicyV1Id string
    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 (-).
    ProviderId string
    Specifies backup provider ID. Default value is fc4d5750-22e7-4798-8a46-f48f62c4c1da
    Region string
    Tags []CsbsBackupPolicyV1TagArgs
    Timeouts CsbsBackupPolicyV1TimeoutsArgs
    resources List<CsbsBackupPolicyV1Resource>
    scheduledOperation CsbsBackupPolicyV1ScheduledOperation
    Backup plan information
    common Map<String,String>
    General backup policy parameters, which are blank by default.
    csbsBackupPolicyV1Id String
    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 (-).
    providerId String
    Specifies backup provider ID. Default value is fc4d5750-22e7-4798-8a46-f48f62c4c1da
    region String
    tags List<CsbsBackupPolicyV1Tag>
    timeouts CsbsBackupPolicyV1Timeouts
    resources CsbsBackupPolicyV1Resource[]
    scheduledOperation CsbsBackupPolicyV1ScheduledOperation
    Backup plan information
    common {[key: string]: string}
    General backup policy parameters, which are blank by default.
    csbsBackupPolicyV1Id string
    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 (-).
    providerId string
    Specifies backup provider ID. Default value is fc4d5750-22e7-4798-8a46-f48f62c4c1da
    region string
    tags CsbsBackupPolicyV1Tag[]
    timeouts CsbsBackupPolicyV1Timeouts
    resources Sequence[CsbsBackupPolicyV1ResourceArgs]
    scheduled_operation CsbsBackupPolicyV1ScheduledOperationArgs
    Backup plan information
    common Mapping[str, str]
    General backup policy parameters, which are blank by default.
    csbs_backup_policy_v1_id str
    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
    tags Sequence[CsbsBackupPolicyV1TagArgs]
    timeouts CsbsBackupPolicyV1TimeoutsArgs
    resources List<Property Map>
    scheduledOperation Property Map
    Backup plan information
    common Map<String>
    General backup policy parameters, which are blank by default.
    csbsBackupPolicyV1Id String
    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 (-).
    providerId String
    Specifies backup provider ID. Default value is fc4d5750-22e7-4798-8a46-f48f62c4c1da
    region String
    tags 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:

    CreatedAt string
    Backup creation time.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Status of Backup Policy.
    CreatedAt string
    Backup creation time.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Status of Backup Policy.
    createdAt String
    Backup creation time.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Status of Backup Policy.
    createdAt string
    Backup creation time.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    Status of Backup Policy.
    created_at str
    Backup creation time.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    Status of Backup Policy.
    createdAt String
    Backup creation time.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    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.
    The following state arguments are supported:
    Common Dictionary<string, string>
    General backup policy parameters, which are blank by default.
    CreatedAt string
    Backup creation time.
    CsbsBackupPolicyV1Id string
    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 (-).
    ProviderId string
    Specifies backup provider ID. Default value is fc4d5750-22e7-4798-8a46-f48f62c4c1da
    Region string
    Resources List<CsbsBackupPolicyV1Resource>
    ScheduledOperation CsbsBackupPolicyV1ScheduledOperation
    Backup plan information
    Status string
    Status of Backup Policy.
    Tags List<CsbsBackupPolicyV1Tag>
    Timeouts CsbsBackupPolicyV1Timeouts
    Common map[string]string
    General backup policy parameters, which are blank by default.
    CreatedAt string
    Backup creation time.
    CsbsBackupPolicyV1Id string
    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 (-).
    ProviderId string
    Specifies backup provider ID. Default value is fc4d5750-22e7-4798-8a46-f48f62c4c1da
    Region string
    Resources []CsbsBackupPolicyV1ResourceArgs
    ScheduledOperation CsbsBackupPolicyV1ScheduledOperationArgs
    Backup plan information
    Status string
    Status of Backup Policy.
    Tags []CsbsBackupPolicyV1TagArgs
    Timeouts CsbsBackupPolicyV1TimeoutsArgs
    common Map<String,String>
    General backup policy parameters, which are blank by default.
    createdAt String
    Backup creation time.
    csbsBackupPolicyV1Id String
    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 (-).
    providerId String
    Specifies backup provider ID. Default value is fc4d5750-22e7-4798-8a46-f48f62c4c1da
    region String
    resources List<CsbsBackupPolicyV1Resource>
    scheduledOperation CsbsBackupPolicyV1ScheduledOperation
    Backup plan information
    status String
    Status of Backup Policy.
    tags List<CsbsBackupPolicyV1Tag>
    timeouts CsbsBackupPolicyV1Timeouts
    common {[key: string]: string}
    General backup policy parameters, which are blank by default.
    createdAt string
    Backup creation time.
    csbsBackupPolicyV1Id string
    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 (-).
    providerId string
    Specifies backup provider ID. Default value is fc4d5750-22e7-4798-8a46-f48f62c4c1da
    region string
    resources CsbsBackupPolicyV1Resource[]
    scheduledOperation CsbsBackupPolicyV1ScheduledOperation
    Backup plan information
    status string
    Status of Backup Policy.
    tags CsbsBackupPolicyV1Tag[]
    timeouts CsbsBackupPolicyV1Timeouts
    common Mapping[str, str]
    General backup policy parameters, which are blank by default.
    created_at str
    Backup creation time.
    csbs_backup_policy_v1_id str
    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[CsbsBackupPolicyV1ResourceArgs]
    scheduled_operation CsbsBackupPolicyV1ScheduledOperationArgs
    Backup plan information
    status str
    Status of Backup Policy.
    tags Sequence[CsbsBackupPolicyV1TagArgs]
    timeouts CsbsBackupPolicyV1TimeoutsArgs
    common Map<String>
    General backup policy parameters, which are blank by default.
    createdAt String
    Backup creation time.
    csbsBackupPolicyV1Id String
    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 (-).
    providerId String
    Specifies backup provider ID. Default value is fc4d5750-22e7-4798-8a46-f48f62c4c1da
    region String
    resources List<Property Map>
    scheduledOperation Property Map
    Backup plan information
    status String
    Status of Backup Policy.
    tags List<Property Map>
    timeouts Property Map

    Supporting Types

    CsbsBackupPolicyV1Resource, CsbsBackupPolicyV1ResourceArgs

    Id string
    Specifies the ID of the object to be backed up.
    Name string
    Specifies backup object name.
    Type string
    Entity object type of the backup object. If the type is VMs, the value is OS::Nova::Server.
    Id string
    Specifies the ID of the object to be backed up.
    Name string
    Specifies backup object name.
    Type string
    Entity object type of the backup object. If the type is VMs, the value is OS::Nova::Server.
    id String
    Specifies the ID of the object to be backed up.
    name String
    Specifies backup object name.
    type String
    Entity object type of the backup object. If the type is VMs, the value is OS::Nova::Server.
    id string
    Specifies the ID of the object to be backed up.
    name string
    Specifies backup object name.
    type string
    Entity object type of the backup object. If the type is VMs, the value is OS::Nova::Server.
    id str
    Specifies the ID of the object to be backed up.
    name str
    Specifies backup object name.
    type str
    Entity object type of the backup object. If the type is VMs, the value is OS::Nova::Server.
    id String
    Specifies the ID of the object to be backed up.
    name String
    Specifies backup object name.
    type String
    Entity object type of the backup object. If the type is VMs, the value is OS::Nova::Server.

    CsbsBackupPolicyV1ScheduledOperation, CsbsBackupPolicyV1ScheduledOperationArgs

    OperationType string
    Specifies Operation type, which can be backup.
    TriggerPattern string
    Specifies Scheduling policy of the scheduler.
    DayBackups 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.
    MaxBackups double
    Specifies maximum number of backups that can be automatically created for a backup object.
    MonthBackups 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.
    RetentionDurationDays double

    Specifies duration of retaining a backup, in days.

    Note: If day_backups, week_backups, month_backups or year_backups is configured timezone is mandatory.

    Timezone string
    Time zone where the user is located, for example, UTC+08:00.
    TriggerId string
    Specifies Scheduler ID.
    TriggerName string
    Specifies Scheduler name.
    TriggerType string
    Specifies Scheduler type.
    WeekBackups 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.
    YearBackups 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.
    OperationType string
    Specifies Operation type, which can be backup.
    TriggerPattern string
    Specifies Scheduling policy of the scheduler.
    DayBackups 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.
    MaxBackups float64
    Specifies maximum number of backups that can be automatically created for a backup object.
    MonthBackups 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.
    RetentionDurationDays float64

    Specifies duration of retaining a backup, in days.

    Note: If day_backups, week_backups, month_backups or year_backups is configured timezone is mandatory.

    Timezone string
    Time zone where the user is located, for example, UTC+08:00.
    TriggerId string
    Specifies Scheduler ID.
    TriggerName string
    Specifies Scheduler name.
    TriggerType string
    Specifies Scheduler type.
    WeekBackups 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.
    YearBackups 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.
    operationType String
    Specifies Operation type, which can be backup.
    triggerPattern String
    Specifies Scheduling policy of the scheduler.
    dayBackups 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.
    maxBackups Double
    Specifies maximum number of backups that can be automatically created for a backup object.
    monthBackups 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.
    retentionDurationDays Double

    Specifies duration of retaining a backup, in days.

    Note: If day_backups, week_backups, month_backups or year_backups is configured timezone is mandatory.

    timezone String
    Time zone where the user is located, for example, UTC+08:00.
    triggerId String
    Specifies Scheduler ID.
    triggerName String
    Specifies Scheduler name.
    triggerType String
    Specifies Scheduler type.
    weekBackups 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.
    yearBackups 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.
    operationType string
    Specifies Operation type, which can be backup.
    triggerPattern string
    Specifies Scheduling policy of the scheduler.
    dayBackups 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.
    maxBackups number
    Specifies maximum number of backups that can be automatically created for a backup object.
    monthBackups 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.
    retentionDurationDays number

    Specifies duration of retaining a backup, in days.

    Note: If day_backups, week_backups, month_backups or year_backups is configured timezone is mandatory.

    timezone string
    Time zone where the user is located, for example, UTC+08:00.
    triggerId string
    Specifies Scheduler ID.
    triggerName string
    Specifies Scheduler name.
    triggerType string
    Specifies Scheduler type.
    weekBackups 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.
    yearBackups 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_days float

    Specifies duration of retaining a backup, in days.

    Note: If day_backups, week_backups, month_backups or year_backups is configured timezone 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.
    operationType String
    Specifies Operation type, which can be backup.
    triggerPattern String
    Specifies Scheduling policy of the scheduler.
    dayBackups 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.
    maxBackups Number
    Specifies maximum number of backups that can be automatically created for a backup object.
    monthBackups 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.
    retentionDurationDays Number

    Specifies duration of retaining a backup, in days.

    Note: If day_backups, week_backups, month_backups or year_backups is configured timezone is mandatory.

    timezone String
    Time zone where the user is located, for example, UTC+08:00.
    triggerId String
    Specifies Scheduler ID.
    triggerName String
    Specifies Scheduler name.
    triggerType String
    Specifies Scheduler type.
    weekBackups 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.
    yearBackups 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

    Key string
    Tag key. It cannot be an empty string.
    Value string
    Tag value. It can be an empty string.
    Key string
    Tag key. It cannot be an empty string.
    Value string
    Tag value. It can be an empty string.
    key String
    Tag key. It cannot be an empty string.
    value String
    Tag value. It can be an empty string.
    key string
    Tag key. It cannot be an empty string.
    value string
    Tag value. It can be an empty string.
    key str
    Tag key. It cannot be an empty string.
    value str
    Tag value. It can be an empty string.
    key String
    Tag key. It cannot be an empty string.
    value String
    Tag value. It can be an empty string.

    CsbsBackupPolicyV1Timeouts, CsbsBackupPolicyV1TimeoutsArgs

    Create string
    Delete string
    Create string
    Delete string
    create String
    delete String
    create string
    delete string
    create str
    delete str
    create String
    delete String

    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.
    opentelekomcloud logo
    opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud