1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. CsbsBackupPolicyV1
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.CsbsBackupPolicyV1

Explore with Pulumi AI

flexibleengine logo
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

    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<CsbsBackupPolicyV1Resource>
    Backup Object.
    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
    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 CsbsBackupPolicyV1Timeouts
    Resources []CsbsBackupPolicyV1ResourceArgs
    Backup Object.
    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
    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 CsbsBackupPolicyV1TimeoutsArgs
    resources List<CsbsBackupPolicyV1Resource>
    Backup Object.
    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
    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 CsbsBackupPolicyV1Timeouts
    resources CsbsBackupPolicyV1Resource[]
    Backup Object.
    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
    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 CsbsBackupPolicyV1Timeouts
    resources Sequence[CsbsBackupPolicyV1ResourceArgs]
    Backup Object.
    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
    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 CsbsBackupPolicyV1TimeoutsArgs
    resources List<Property Map>
    Backup Object.
    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
    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:

    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Status of Backup Policy.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Status of Backup Policy.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Status of Backup Policy.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    Status of Backup Policy.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    Status of Backup Policy.
    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,
            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.
    The following state arguments are supported:
    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
    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<CsbsBackupPolicyV1Resource>
    Backup Object.
    ScheduledOperation CsbsBackupPolicyV1ScheduledOperation
    Backup plan information.
    Status string
    Status of Backup Policy.
    Timeouts CsbsBackupPolicyV1Timeouts
    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
    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 []CsbsBackupPolicyV1ResourceArgs
    Backup Object.
    ScheduledOperation CsbsBackupPolicyV1ScheduledOperationArgs
    Backup plan information.
    Status string
    Status of Backup Policy.
    Timeouts CsbsBackupPolicyV1TimeoutsArgs
    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
    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<CsbsBackupPolicyV1Resource>
    Backup Object.
    scheduledOperation CsbsBackupPolicyV1ScheduledOperation
    Backup plan information.
    status String
    Status of Backup Policy.
    timeouts CsbsBackupPolicyV1Timeouts
    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
    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 CsbsBackupPolicyV1Resource[]
    Backup Object.
    scheduledOperation CsbsBackupPolicyV1ScheduledOperation
    Backup plan information.
    status string
    Status of Backup Policy.
    timeouts CsbsBackupPolicyV1Timeouts
    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
    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[CsbsBackupPolicyV1ResourceArgs]
    Backup Object.
    scheduled_operation CsbsBackupPolicyV1ScheduledOperationArgs
    Backup plan information.
    status str
    Status of Backup Policy.
    timeouts CsbsBackupPolicyV1TimeoutsArgs
    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
    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.
    scheduledOperation Property Map
    Backup plan information.
    status String
    Status of Backup Policy.
    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.
    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.
    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.
    TriggerId string
    Specifies Scheduler ID.
    TriggerName string
    Specifies Scheduler name.
    TriggerType string
    Specifies Scheduler type.
    OperationType string
    Specifies Operation type, which can be backup.
    TriggerPattern 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.
    MaxBackups 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.
    RetentionDurationDays float64
    Specifies duration of retaining a backup, in days.
    TriggerId string
    Specifies Scheduler ID.
    TriggerName string
    Specifies Scheduler name.
    TriggerType string
    Specifies Scheduler type.
    operationType String
    Specifies Operation type, which can be backup.
    triggerPattern 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.
    maxBackups 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.
    retentionDurationDays Double
    Specifies duration of retaining a backup, in days.
    triggerId String
    Specifies Scheduler ID.
    triggerName String
    Specifies Scheduler name.
    triggerType String
    Specifies Scheduler type.
    operationType string
    Specifies Operation type, which can be backup.
    triggerPattern 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.
    maxBackups 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.
    retentionDurationDays number
    Specifies duration of retaining a backup, in days.
    triggerId string
    Specifies Scheduler ID.
    triggerName string
    Specifies Scheduler name.
    triggerType 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_days float
    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.
    operationType String
    Specifies Operation type, which can be backup.
    triggerPattern 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.
    maxBackups 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.
    retentionDurationDays Number
    Specifies duration of retaining a backup, in days.
    triggerId String
    Specifies Scheduler ID.
    triggerName String
    Specifies Scheduler name.
    triggerType String
    Specifies Scheduler type.

    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 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.
    flexibleengine logo
    flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud