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

flexibleengine.CbrVault

Explore with Pulumi AI

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

    Manages a CBR Vault resource within FlexibleEngine.

    Example Usage

    Create a server type vault

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const config = new pulumi.Config();
    const vaultName = config.requireObject("vaultName");
    const ecsInstanceId = config.requireObject("ecsInstanceId");
    const attachedVolumeIds = config.requireObject<Array<string>>("attachedVolumeIds");
    const test = new flexibleengine.CbrVault("test", {
        type: "server",
        protectionType: "backup",
        consistentLevel: "crash_consistent",
        size: 100,
        resources: [{
            serverId: ecsInstanceId,
            excludes: attachedVolumeIds,
        }],
        tags: {
            foo: "bar",
        },
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    config = pulumi.Config()
    vault_name = config.require_object("vaultName")
    ecs_instance_id = config.require_object("ecsInstanceId")
    attached_volume_ids = config.require_object("attachedVolumeIds")
    test = flexibleengine.CbrVault("test",
        type="server",
        protection_type="backup",
        consistent_level="crash_consistent",
        size=100,
        resources=[{
            "server_id": ecs_instance_id,
            "excludes": attached_volume_ids,
        }],
        tags={
            "foo": "bar",
        })
    
    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, "")
    		vaultName := cfg.RequireObject("vaultName")
    		ecsInstanceId := cfg.RequireObject("ecsInstanceId")
    		attachedVolumeIds := cfg.Require("attachedVolumeIds")
    		_, err := flexibleengine.NewCbrVault(ctx, "test", &flexibleengine.CbrVaultArgs{
    			Type:            pulumi.String("server"),
    			ProtectionType:  pulumi.String("backup"),
    			ConsistentLevel: pulumi.String("crash_consistent"),
    			Size:            pulumi.Float64(100),
    			Resources: flexibleengine.CbrVaultResourceArray{
    				&flexibleengine.CbrVaultResourceArgs{
    					ServerId: pulumi.Any(ecsInstanceId),
    					Excludes: attachedVolumeIds,
    				},
    			},
    			Tags: pulumi.StringMap{
    				"foo": pulumi.String("bar"),
    			},
    		})
    		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 vaultName = config.RequireObject<dynamic>("vaultName");
        var ecsInstanceId = config.RequireObject<dynamic>("ecsInstanceId");
        var attachedVolumeIds = config.RequireObject<string[]>("attachedVolumeIds");
        var test = new Flexibleengine.CbrVault("test", new()
        {
            Type = "server",
            ProtectionType = "backup",
            ConsistentLevel = "crash_consistent",
            Size = 100,
            Resources = new[]
            {
                new Flexibleengine.Inputs.CbrVaultResourceArgs
                {
                    ServerId = ecsInstanceId,
                    Excludes = attachedVolumeIds,
                },
            },
            Tags = 
            {
                { "foo", "bar" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.CbrVault;
    import com.pulumi.flexibleengine.CbrVaultArgs;
    import com.pulumi.flexibleengine.inputs.CbrVaultResourceArgs;
    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 vaultName = config.get("vaultName");
            final var ecsInstanceId = config.get("ecsInstanceId");
            final var attachedVolumeIds = config.get("attachedVolumeIds");
            var test = new CbrVault("test", CbrVaultArgs.builder()
                .type("server")
                .protectionType("backup")
                .consistentLevel("crash_consistent")
                .size(100)
                .resources(CbrVaultResourceArgs.builder()
                    .serverId(ecsInstanceId)
                    .excludes(attachedVolumeIds)
                    .build())
                .tags(Map.of("foo", "bar"))
                .build());
    
        }
    }
    
    configuration:
      vaultName:
        type: dynamic
      ecsInstanceId:
        type: dynamic
      attachedVolumeIds:
        type: list(string)
    resources:
      test:
        type: flexibleengine:CbrVault
        properties:
          type: server
          protectionType: backup
          consistentLevel: crash_consistent
          size: 100
          resources:
            - serverId: ${ecsInstanceId}
              excludes: ${attachedVolumeIds}
          tags:
            foo: bar
    

    Create a disk type vault

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const config = new pulumi.Config();
    const vaultName = config.requireObject("vaultName");
    const evsVolumeIds = config.requireObject<Array<string>>("evsVolumeIds");
    const test = new flexibleengine.CbrVault("test", {
        type: "disk",
        protectionType: "backup",
        size: 50,
        autoExpand: true,
        resources: [{
            includes: evsVolumeIds,
        }],
        tags: {
            foo: "bar",
        },
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    config = pulumi.Config()
    vault_name = config.require_object("vaultName")
    evs_volume_ids = config.require_object("evsVolumeIds")
    test = flexibleengine.CbrVault("test",
        type="disk",
        protection_type="backup",
        size=50,
        auto_expand=True,
        resources=[{
            "includes": evs_volume_ids,
        }],
        tags={
            "foo": "bar",
        })
    
    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, "")
    		vaultName := cfg.RequireObject("vaultName")
    		evsVolumeIds := cfg.Require("evsVolumeIds")
    		_, err := flexibleengine.NewCbrVault(ctx, "test", &flexibleengine.CbrVaultArgs{
    			Type:           pulumi.String("disk"),
    			ProtectionType: pulumi.String("backup"),
    			Size:           pulumi.Float64(50),
    			AutoExpand:     pulumi.Bool(true),
    			Resources: flexibleengine.CbrVaultResourceArray{
    				&flexibleengine.CbrVaultResourceArgs{
    					Includes: evsVolumeIds,
    				},
    			},
    			Tags: pulumi.StringMap{
    				"foo": pulumi.String("bar"),
    			},
    		})
    		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 vaultName = config.RequireObject<dynamic>("vaultName");
        var evsVolumeIds = config.RequireObject<string[]>("evsVolumeIds");
        var test = new Flexibleengine.CbrVault("test", new()
        {
            Type = "disk",
            ProtectionType = "backup",
            Size = 50,
            AutoExpand = true,
            Resources = new[]
            {
                new Flexibleengine.Inputs.CbrVaultResourceArgs
                {
                    Includes = evsVolumeIds,
                },
            },
            Tags = 
            {
                { "foo", "bar" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.CbrVault;
    import com.pulumi.flexibleengine.CbrVaultArgs;
    import com.pulumi.flexibleengine.inputs.CbrVaultResourceArgs;
    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 vaultName = config.get("vaultName");
            final var evsVolumeIds = config.get("evsVolumeIds");
            var test = new CbrVault("test", CbrVaultArgs.builder()
                .type("disk")
                .protectionType("backup")
                .size(50)
                .autoExpand(true)
                .resources(CbrVaultResourceArgs.builder()
                    .includes(evsVolumeIds)
                    .build())
                .tags(Map.of("foo", "bar"))
                .build());
    
        }
    }
    
    configuration:
      vaultName:
        type: dynamic
      evsVolumeIds:
        type: list(string)
    resources:
      test:
        type: flexibleengine:CbrVault
        properties:
          type: disk
          protectionType: backup
          size: 50
          autoExpand: true
          resources:
            - includes: ${evsVolumeIds}
          tags:
            foo: bar
    

    Create an SFS turbo type vault

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const config = new pulumi.Config();
    const vaultName = config.requireObject("vaultName");
    const sfsTurboIds = config.requireObject<Array<string>>("sfsTurboIds");
    const test = new flexibleengine.CbrVault("test", {
        type: "turbo",
        protectionType: "backup",
        size: 1000,
        resources: [{
            includes: sfsTurboIds,
        }],
        tags: {
            foo: "bar",
        },
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    config = pulumi.Config()
    vault_name = config.require_object("vaultName")
    sfs_turbo_ids = config.require_object("sfsTurboIds")
    test = flexibleengine.CbrVault("test",
        type="turbo",
        protection_type="backup",
        size=1000,
        resources=[{
            "includes": sfs_turbo_ids,
        }],
        tags={
            "foo": "bar",
        })
    
    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, "")
    		vaultName := cfg.RequireObject("vaultName")
    		sfsTurboIds := cfg.Require("sfsTurboIds")
    		_, err := flexibleengine.NewCbrVault(ctx, "test", &flexibleengine.CbrVaultArgs{
    			Type:           pulumi.String("turbo"),
    			ProtectionType: pulumi.String("backup"),
    			Size:           pulumi.Float64(1000),
    			Resources: flexibleengine.CbrVaultResourceArray{
    				&flexibleengine.CbrVaultResourceArgs{
    					Includes: sfsTurboIds,
    				},
    			},
    			Tags: pulumi.StringMap{
    				"foo": pulumi.String("bar"),
    			},
    		})
    		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 vaultName = config.RequireObject<dynamic>("vaultName");
        var sfsTurboIds = config.RequireObject<string[]>("sfsTurboIds");
        var test = new Flexibleengine.CbrVault("test", new()
        {
            Type = "turbo",
            ProtectionType = "backup",
            Size = 1000,
            Resources = new[]
            {
                new Flexibleengine.Inputs.CbrVaultResourceArgs
                {
                    Includes = sfsTurboIds,
                },
            },
            Tags = 
            {
                { "foo", "bar" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.CbrVault;
    import com.pulumi.flexibleengine.CbrVaultArgs;
    import com.pulumi.flexibleengine.inputs.CbrVaultResourceArgs;
    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 vaultName = config.get("vaultName");
            final var sfsTurboIds = config.get("sfsTurboIds");
            var test = new CbrVault("test", CbrVaultArgs.builder()
                .type("turbo")
                .protectionType("backup")
                .size(1000)
                .resources(CbrVaultResourceArgs.builder()
                    .includes(sfsTurboIds)
                    .build())
                .tags(Map.of("foo", "bar"))
                .build());
    
        }
    }
    
    configuration:
      vaultName:
        type: dynamic
      sfsTurboIds:
        type: list(string)
    resources:
      test:
        type: flexibleengine:CbrVault
        properties:
          type: turbo
          protectionType: backup
          size: 1000
          resources:
            - includes: ${sfsTurboIds}
          tags:
            foo: bar
    

    Create an SFS turbo type vault with replicate protection type

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const config = new pulumi.Config();
    const vaultName = config.requireObject("vaultName");
    const test = new flexibleengine.CbrVault("test", {
        type: "turbo",
        protectionType: "replication",
        size: 1000,
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    config = pulumi.Config()
    vault_name = config.require_object("vaultName")
    test = flexibleengine.CbrVault("test",
        type="turbo",
        protection_type="replication",
        size=1000)
    
    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, "")
    		vaultName := cfg.RequireObject("vaultName")
    		_, err := flexibleengine.NewCbrVault(ctx, "test", &flexibleengine.CbrVaultArgs{
    			Type:           pulumi.String("turbo"),
    			ProtectionType: pulumi.String("replication"),
    			Size:           pulumi.Float64(1000),
    		})
    		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 vaultName = config.RequireObject<dynamic>("vaultName");
        var test = new Flexibleengine.CbrVault("test", new()
        {
            Type = "turbo",
            ProtectionType = "replication",
            Size = 1000,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.CbrVault;
    import com.pulumi.flexibleengine.CbrVaultArgs;
    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 vaultName = config.get("vaultName");
            var test = new CbrVault("test", CbrVaultArgs.builder()
                .type("turbo")
                .protectionType("replication")
                .size(1000)
                .build());
    
        }
    }
    
    configuration:
      vaultName:
        type: dynamic
    resources:
      test:
        type: flexibleengine:CbrVault
        properties:
          type: turbo
          protectionType: replication
          size: 1000
    

    Create CbrVault Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new CbrVault(name: string, args: CbrVaultArgs, opts?: CustomResourceOptions);
    @overload
    def CbrVault(resource_name: str,
                 args: CbrVaultArgs,
                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def CbrVault(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 protection_type: Optional[str] = None,
                 type: Optional[str] = None,
                 size: Optional[float] = None,
                 bind_rules: Optional[Mapping[str, str]] = None,
                 period_unit: Optional[str] = None,
                 auto_bind: Optional[bool] = None,
                 cbr_vault_id: Optional[str] = None,
                 charging_mode: Optional[str] = None,
                 consistent_level: Optional[str] = None,
                 enterprise_project_id: Optional[str] = None,
                 name: Optional[str] = None,
                 period: Optional[float] = None,
                 backup_name_prefix: Optional[str] = None,
                 policies: Optional[Sequence[CbrVaultPolicyArgs]] = None,
                 policy_id: Optional[str] = None,
                 auto_renew: Optional[str] = None,
                 region: Optional[str] = None,
                 resources: Optional[Sequence[CbrVaultResourceArgs]] = None,
                 auto_pay: Optional[str] = None,
                 tags: Optional[Mapping[str, str]] = None,
                 timeouts: Optional[CbrVaultTimeoutsArgs] = None,
                 auto_expand: Optional[bool] = None)
    func NewCbrVault(ctx *Context, name string, args CbrVaultArgs, opts ...ResourceOption) (*CbrVault, error)
    public CbrVault(string name, CbrVaultArgs args, CustomResourceOptions? opts = null)
    public CbrVault(String name, CbrVaultArgs args)
    public CbrVault(String name, CbrVaultArgs args, CustomResourceOptions options)
    
    type: flexibleengine:CbrVault
    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 CbrVaultArgs
    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 CbrVaultArgs
    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 CbrVaultArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CbrVaultArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CbrVaultArgs
    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 cbrVaultResource = new Flexibleengine.CbrVault("cbrVaultResource", new()
    {
        ProtectionType = "string",
        Type = "string",
        Size = 0,
        BindRules = 
        {
            { "string", "string" },
        },
        PeriodUnit = "string",
        AutoBind = false,
        CbrVaultId = "string",
        ChargingMode = "string",
        ConsistentLevel = "string",
        EnterpriseProjectId = "string",
        Name = "string",
        Period = 0,
        BackupNamePrefix = "string",
        Policies = new[]
        {
            new Flexibleengine.Inputs.CbrVaultPolicyArgs
            {
                Id = "string",
                DestinationVaultId = "string",
            },
        },
        PolicyId = "string",
        AutoRenew = "string",
        Region = "string",
        Resources = new[]
        {
            new Flexibleengine.Inputs.CbrVaultResourceArgs
            {
                Excludes = new[]
                {
                    "string",
                },
                Includes = new[]
                {
                    "string",
                },
                ServerId = "string",
            },
        },
        Tags = 
        {
            { "string", "string" },
        },
        Timeouts = new Flexibleengine.Inputs.CbrVaultTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
        },
        AutoExpand = false,
    });
    
    example, err := flexibleengine.NewCbrVault(ctx, "cbrVaultResource", &flexibleengine.CbrVaultArgs{
    	ProtectionType: pulumi.String("string"),
    	Type:           pulumi.String("string"),
    	Size:           pulumi.Float64(0),
    	BindRules: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	PeriodUnit:          pulumi.String("string"),
    	AutoBind:            pulumi.Bool(false),
    	CbrVaultId:          pulumi.String("string"),
    	ChargingMode:        pulumi.String("string"),
    	ConsistentLevel:     pulumi.String("string"),
    	EnterpriseProjectId: pulumi.String("string"),
    	Name:                pulumi.String("string"),
    	Period:              pulumi.Float64(0),
    	BackupNamePrefix:    pulumi.String("string"),
    	Policies: flexibleengine.CbrVaultPolicyArray{
    		&flexibleengine.CbrVaultPolicyArgs{
    			Id:                 pulumi.String("string"),
    			DestinationVaultId: pulumi.String("string"),
    		},
    	},
    	PolicyId:  pulumi.String("string"),
    	AutoRenew: pulumi.String("string"),
    	Region:    pulumi.String("string"),
    	Resources: flexibleengine.CbrVaultResourceArray{
    		&flexibleengine.CbrVaultResourceArgs{
    			Excludes: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			Includes: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			ServerId: pulumi.String("string"),
    		},
    	},
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Timeouts: &flexibleengine.CbrVaultTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    	},
    	AutoExpand: pulumi.Bool(false),
    })
    
    var cbrVaultResource = new CbrVault("cbrVaultResource", CbrVaultArgs.builder()
        .protectionType("string")
        .type("string")
        .size(0)
        .bindRules(Map.of("string", "string"))
        .periodUnit("string")
        .autoBind(false)
        .cbrVaultId("string")
        .chargingMode("string")
        .consistentLevel("string")
        .enterpriseProjectId("string")
        .name("string")
        .period(0)
        .backupNamePrefix("string")
        .policies(CbrVaultPolicyArgs.builder()
            .id("string")
            .destinationVaultId("string")
            .build())
        .policyId("string")
        .autoRenew("string")
        .region("string")
        .resources(CbrVaultResourceArgs.builder()
            .excludes("string")
            .includes("string")
            .serverId("string")
            .build())
        .tags(Map.of("string", "string"))
        .timeouts(CbrVaultTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .build())
        .autoExpand(false)
        .build());
    
    cbr_vault_resource = flexibleengine.CbrVault("cbrVaultResource",
        protection_type="string",
        type="string",
        size=0,
        bind_rules={
            "string": "string",
        },
        period_unit="string",
        auto_bind=False,
        cbr_vault_id="string",
        charging_mode="string",
        consistent_level="string",
        enterprise_project_id="string",
        name="string",
        period=0,
        backup_name_prefix="string",
        policies=[{
            "id": "string",
            "destination_vault_id": "string",
        }],
        policy_id="string",
        auto_renew="string",
        region="string",
        resources=[{
            "excludes": ["string"],
            "includes": ["string"],
            "server_id": "string",
        }],
        tags={
            "string": "string",
        },
        timeouts={
            "create": "string",
            "delete": "string",
        },
        auto_expand=False)
    
    const cbrVaultResource = new flexibleengine.CbrVault("cbrVaultResource", {
        protectionType: "string",
        type: "string",
        size: 0,
        bindRules: {
            string: "string",
        },
        periodUnit: "string",
        autoBind: false,
        cbrVaultId: "string",
        chargingMode: "string",
        consistentLevel: "string",
        enterpriseProjectId: "string",
        name: "string",
        period: 0,
        backupNamePrefix: "string",
        policies: [{
            id: "string",
            destinationVaultId: "string",
        }],
        policyId: "string",
        autoRenew: "string",
        region: "string",
        resources: [{
            excludes: ["string"],
            includes: ["string"],
            serverId: "string",
        }],
        tags: {
            string: "string",
        },
        timeouts: {
            create: "string",
            "delete": "string",
        },
        autoExpand: false,
    });
    
    type: flexibleengine:CbrVault
    properties:
        autoBind: false
        autoExpand: false
        autoRenew: string
        backupNamePrefix: string
        bindRules:
            string: string
        cbrVaultId: string
        chargingMode: string
        consistentLevel: string
        enterpriseProjectId: string
        name: string
        period: 0
        periodUnit: string
        policies:
            - destinationVaultId: string
              id: string
        policyId: string
        protectionType: string
        region: string
        resources:
            - excludes:
                - string
              includes:
                - string
              serverId: string
        size: 0
        tags:
            string: string
        timeouts:
            create: string
            delete: string
        type: string
    

    CbrVault 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 CbrVault resource accepts the following input properties:

    ProtectionType string
    Specifies the protection type of the CBR vault. The valid values are backup and replication. Vaults of type disk don't support replication. Changing this will create a new vault.
    Size double
    Specifies the vault capacity, in GB. The valid value range is 1 to 10,485,760.
    Type string
    Specifies the object type of the CBR vault. Changing this will create a new vault. Vaild values are as follows:

    • server (Cloud Servers)
    • disk (EVS Disks)
    • turbo (SFS Turbo file systems)
    AutoBind bool
    Specifies whether automatic association is enabled. Defaults to false.
    AutoExpand bool
    Specifies to enable auto capacity expansion for the backup protection type vault. Defaults to false.
    AutoPay string

    Deprecated: Deprecated

    AutoRenew string
    BackupNamePrefix string
    The backup name prefix.
    BindRules Dictionary<string, string>
    Specifies the tags to filter resources for automatic association with auto_bind.
    CbrVaultId string
    Specifies the policy ID.
    ChargingMode string
    ConsistentLevel string

    Specifies the consistent level (specification) of the vault. The valid values are as follows:

    Only server type vaults support application consistent and defaults to crash_consistent. Changing this will create a new vault.

    EnterpriseProjectId string
    Specifies the enterprise project id of the cbr vault resource. Changing this will create a new resource.
    Name string
    Specifies a unique name of the CBR vault. This parameter can contain a maximum of 64 characters, which may consist of letters, digits, underscores(_) and hyphens (-).
    Period double
    PeriodUnit string
    Policies List<CbrVaultPolicy>
    Specifies the policy details to associate with the CBR vault. The object structure is documented below.
    PolicyId string
    schema:Deprecated; Using parameter 'policy' instead.
    Region string
    Specifies the region in which to create the CBR vault. If omitted, the provider-level region will be used. Changing this will create a new vault.
    Resources List<CbrVaultResource>

    Specifies an array of one or more resources to attach to the CBR vault. The object structure is documented below.

    If configured, the names of all automatic backups generated for the vault will use this prefix.

    Tags Dictionary<string, string>

    Specifies the key/value pairs to associat

    The policy block supports:

    Timeouts CbrVaultTimeouts
    ProtectionType string
    Specifies the protection type of the CBR vault. The valid values are backup and replication. Vaults of type disk don't support replication. Changing this will create a new vault.
    Size float64
    Specifies the vault capacity, in GB. The valid value range is 1 to 10,485,760.
    Type string
    Specifies the object type of the CBR vault. Changing this will create a new vault. Vaild values are as follows:

    • server (Cloud Servers)
    • disk (EVS Disks)
    • turbo (SFS Turbo file systems)
    AutoBind bool
    Specifies whether automatic association is enabled. Defaults to false.
    AutoExpand bool
    Specifies to enable auto capacity expansion for the backup protection type vault. Defaults to false.
    AutoPay string

    Deprecated: Deprecated

    AutoRenew string
    BackupNamePrefix string
    The backup name prefix.
    BindRules map[string]string
    Specifies the tags to filter resources for automatic association with auto_bind.
    CbrVaultId string
    Specifies the policy ID.
    ChargingMode string
    ConsistentLevel string

    Specifies the consistent level (specification) of the vault. The valid values are as follows:

    Only server type vaults support application consistent and defaults to crash_consistent. Changing this will create a new vault.

    EnterpriseProjectId string
    Specifies the enterprise project id of the cbr vault resource. Changing this will create a new resource.
    Name string
    Specifies a unique name of the CBR vault. This parameter can contain a maximum of 64 characters, which may consist of letters, digits, underscores(_) and hyphens (-).
    Period float64
    PeriodUnit string
    Policies []CbrVaultPolicyArgs
    Specifies the policy details to associate with the CBR vault. The object structure is documented below.
    PolicyId string
    schema:Deprecated; Using parameter 'policy' instead.
    Region string
    Specifies the region in which to create the CBR vault. If omitted, the provider-level region will be used. Changing this will create a new vault.
    Resources []CbrVaultResourceArgs

    Specifies an array of one or more resources to attach to the CBR vault. The object structure is documented below.

    If configured, the names of all automatic backups generated for the vault will use this prefix.

    Tags map[string]string

    Specifies the key/value pairs to associat

    The policy block supports:

    Timeouts CbrVaultTimeoutsArgs
    protectionType String
    Specifies the protection type of the CBR vault. The valid values are backup and replication. Vaults of type disk don't support replication. Changing this will create a new vault.
    size Double
    Specifies the vault capacity, in GB. The valid value range is 1 to 10,485,760.
    type String
    Specifies the object type of the CBR vault. Changing this will create a new vault. Vaild values are as follows:

    • server (Cloud Servers)
    • disk (EVS Disks)
    • turbo (SFS Turbo file systems)
    autoBind Boolean
    Specifies whether automatic association is enabled. Defaults to false.
    autoExpand Boolean
    Specifies to enable auto capacity expansion for the backup protection type vault. Defaults to false.
    autoPay String

    Deprecated: Deprecated

    autoRenew String
    backupNamePrefix String
    The backup name prefix.
    bindRules Map<String,String>
    Specifies the tags to filter resources for automatic association with auto_bind.
    cbrVaultId String
    Specifies the policy ID.
    chargingMode String
    consistentLevel String

    Specifies the consistent level (specification) of the vault. The valid values are as follows:

    Only server type vaults support application consistent and defaults to crash_consistent. Changing this will create a new vault.

    enterpriseProjectId String
    Specifies the enterprise project id of the cbr vault resource. Changing this will create a new resource.
    name String
    Specifies a unique name of the CBR vault. This parameter can contain a maximum of 64 characters, which may consist of letters, digits, underscores(_) and hyphens (-).
    period Double
    periodUnit String
    policies List<CbrVaultPolicy>
    Specifies the policy details to associate with the CBR vault. The object structure is documented below.
    policyId String
    schema:Deprecated; Using parameter 'policy' instead.
    region String
    Specifies the region in which to create the CBR vault. If omitted, the provider-level region will be used. Changing this will create a new vault.
    resources List<CbrVaultResource>

    Specifies an array of one or more resources to attach to the CBR vault. The object structure is documented below.

    If configured, the names of all automatic backups generated for the vault will use this prefix.

    tags Map<String,String>

    Specifies the key/value pairs to associat

    The policy block supports:

    timeouts CbrVaultTimeouts
    protectionType string
    Specifies the protection type of the CBR vault. The valid values are backup and replication. Vaults of type disk don't support replication. Changing this will create a new vault.
    size number
    Specifies the vault capacity, in GB. The valid value range is 1 to 10,485,760.
    type string
    Specifies the object type of the CBR vault. Changing this will create a new vault. Vaild values are as follows:

    • server (Cloud Servers)
    • disk (EVS Disks)
    • turbo (SFS Turbo file systems)
    autoBind boolean
    Specifies whether automatic association is enabled. Defaults to false.
    autoExpand boolean
    Specifies to enable auto capacity expansion for the backup protection type vault. Defaults to false.
    autoPay string

    Deprecated: Deprecated

    autoRenew string
    backupNamePrefix string
    The backup name prefix.
    bindRules {[key: string]: string}
    Specifies the tags to filter resources for automatic association with auto_bind.
    cbrVaultId string
    Specifies the policy ID.
    chargingMode string
    consistentLevel string

    Specifies the consistent level (specification) of the vault. The valid values are as follows:

    Only server type vaults support application consistent and defaults to crash_consistent. Changing this will create a new vault.

    enterpriseProjectId string
    Specifies the enterprise project id of the cbr vault resource. Changing this will create a new resource.
    name string
    Specifies a unique name of the CBR vault. This parameter can contain a maximum of 64 characters, which may consist of letters, digits, underscores(_) and hyphens (-).
    period number
    periodUnit string
    policies CbrVaultPolicy[]
    Specifies the policy details to associate with the CBR vault. The object structure is documented below.
    policyId string
    schema:Deprecated; Using parameter 'policy' instead.
    region string
    Specifies the region in which to create the CBR vault. If omitted, the provider-level region will be used. Changing this will create a new vault.
    resources CbrVaultResource[]

    Specifies an array of one or more resources to attach to the CBR vault. The object structure is documented below.

    If configured, the names of all automatic backups generated for the vault will use this prefix.

    tags {[key: string]: string}

    Specifies the key/value pairs to associat

    The policy block supports:

    timeouts CbrVaultTimeouts
    protection_type str
    Specifies the protection type of the CBR vault. The valid values are backup and replication. Vaults of type disk don't support replication. Changing this will create a new vault.
    size float
    Specifies the vault capacity, in GB. The valid value range is 1 to 10,485,760.
    type str
    Specifies the object type of the CBR vault. Changing this will create a new vault. Vaild values are as follows:

    • server (Cloud Servers)
    • disk (EVS Disks)
    • turbo (SFS Turbo file systems)
    auto_bind bool
    Specifies whether automatic association is enabled. Defaults to false.
    auto_expand bool
    Specifies to enable auto capacity expansion for the backup protection type vault. Defaults to false.
    auto_pay str

    Deprecated: Deprecated

    auto_renew str
    backup_name_prefix str
    The backup name prefix.
    bind_rules Mapping[str, str]
    Specifies the tags to filter resources for automatic association with auto_bind.
    cbr_vault_id str
    Specifies the policy ID.
    charging_mode str
    consistent_level str

    Specifies the consistent level (specification) of the vault. The valid values are as follows:

    Only server type vaults support application consistent and defaults to crash_consistent. Changing this will create a new vault.

    enterprise_project_id str
    Specifies the enterprise project id of the cbr vault resource. Changing this will create a new resource.
    name str
    Specifies a unique name of the CBR vault. This parameter can contain a maximum of 64 characters, which may consist of letters, digits, underscores(_) and hyphens (-).
    period float
    period_unit str
    policies Sequence[CbrVaultPolicyArgs]
    Specifies the policy details to associate with the CBR vault. The object structure is documented below.
    policy_id str
    schema:Deprecated; Using parameter 'policy' instead.
    region str
    Specifies the region in which to create the CBR vault. If omitted, the provider-level region will be used. Changing this will create a new vault.
    resources Sequence[CbrVaultResourceArgs]

    Specifies an array of one or more resources to attach to the CBR vault. The object structure is documented below.

    If configured, the names of all automatic backups generated for the vault will use this prefix.

    tags Mapping[str, str]

    Specifies the key/value pairs to associat

    The policy block supports:

    timeouts CbrVaultTimeoutsArgs
    protectionType String
    Specifies the protection type of the CBR vault. The valid values are backup and replication. Vaults of type disk don't support replication. Changing this will create a new vault.
    size Number
    Specifies the vault capacity, in GB. The valid value range is 1 to 10,485,760.
    type String
    Specifies the object type of the CBR vault. Changing this will create a new vault. Vaild values are as follows:

    • server (Cloud Servers)
    • disk (EVS Disks)
    • turbo (SFS Turbo file systems)
    autoBind Boolean
    Specifies whether automatic association is enabled. Defaults to false.
    autoExpand Boolean
    Specifies to enable auto capacity expansion for the backup protection type vault. Defaults to false.
    autoPay String

    Deprecated: Deprecated

    autoRenew String
    backupNamePrefix String
    The backup name prefix.
    bindRules Map<String>
    Specifies the tags to filter resources for automatic association with auto_bind.
    cbrVaultId String
    Specifies the policy ID.
    chargingMode String
    consistentLevel String

    Specifies the consistent level (specification) of the vault. The valid values are as follows:

    Only server type vaults support application consistent and defaults to crash_consistent. Changing this will create a new vault.

    enterpriseProjectId String
    Specifies the enterprise project id of the cbr vault resource. Changing this will create a new resource.
    name String
    Specifies a unique name of the CBR vault. This parameter can contain a maximum of 64 characters, which may consist of letters, digits, underscores(_) and hyphens (-).
    period Number
    periodUnit String
    policies List<Property Map>
    Specifies the policy details to associate with the CBR vault. The object structure is documented below.
    policyId String
    schema:Deprecated; Using parameter 'policy' instead.
    region String
    Specifies the region in which to create the CBR vault. If omitted, the provider-level region will be used. Changing this will create a new vault.
    resources List<Property Map>

    Specifies an array of one or more resources to attach to the CBR vault. The object structure is documented below.

    If configured, the names of all automatic backups generated for the vault will use this prefix.

    tags Map<String>

    Specifies the key/value pairs to associat

    The policy block supports:

    timeouts Property Map

    Outputs

    All input properties are implicitly available as output properties. Additionally, the CbrVault resource produces the following output properties:

    Allocated double
    The allocated capacity of the vault, in GB.
    Id string
    The provider-assigned unique ID for this managed resource.
    SpecCode string
    The specification code.
    Status string
    The vault status.
    Storage string
    The name of the bucket for the vault.
    Used double
    The used capacity, in GB.
    Allocated float64
    The allocated capacity of the vault, in GB.
    Id string
    The provider-assigned unique ID for this managed resource.
    SpecCode string
    The specification code.
    Status string
    The vault status.
    Storage string
    The name of the bucket for the vault.
    Used float64
    The used capacity, in GB.
    allocated Double
    The allocated capacity of the vault, in GB.
    id String
    The provider-assigned unique ID for this managed resource.
    specCode String
    The specification code.
    status String
    The vault status.
    storage String
    The name of the bucket for the vault.
    used Double
    The used capacity, in GB.
    allocated number
    The allocated capacity of the vault, in GB.
    id string
    The provider-assigned unique ID for this managed resource.
    specCode string
    The specification code.
    status string
    The vault status.
    storage string
    The name of the bucket for the vault.
    used number
    The used capacity, in GB.
    allocated float
    The allocated capacity of the vault, in GB.
    id str
    The provider-assigned unique ID for this managed resource.
    spec_code str
    The specification code.
    status str
    The vault status.
    storage str
    The name of the bucket for the vault.
    used float
    The used capacity, in GB.
    allocated Number
    The allocated capacity of the vault, in GB.
    id String
    The provider-assigned unique ID for this managed resource.
    specCode String
    The specification code.
    status String
    The vault status.
    storage String
    The name of the bucket for the vault.
    used Number
    The used capacity, in GB.

    Look up Existing CbrVault Resource

    Get an existing CbrVault 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?: CbrVaultState, opts?: CustomResourceOptions): CbrVault
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            allocated: Optional[float] = None,
            auto_bind: Optional[bool] = None,
            auto_expand: Optional[bool] = None,
            auto_pay: Optional[str] = None,
            auto_renew: Optional[str] = None,
            backup_name_prefix: Optional[str] = None,
            bind_rules: Optional[Mapping[str, str]] = None,
            cbr_vault_id: Optional[str] = None,
            charging_mode: Optional[str] = None,
            consistent_level: Optional[str] = None,
            enterprise_project_id: Optional[str] = None,
            name: Optional[str] = None,
            period: Optional[float] = None,
            period_unit: Optional[str] = None,
            policies: Optional[Sequence[CbrVaultPolicyArgs]] = None,
            policy_id: Optional[str] = None,
            protection_type: Optional[str] = None,
            region: Optional[str] = None,
            resources: Optional[Sequence[CbrVaultResourceArgs]] = None,
            size: Optional[float] = None,
            spec_code: Optional[str] = None,
            status: Optional[str] = None,
            storage: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            timeouts: Optional[CbrVaultTimeoutsArgs] = None,
            type: Optional[str] = None,
            used: Optional[float] = None) -> CbrVault
    func GetCbrVault(ctx *Context, name string, id IDInput, state *CbrVaultState, opts ...ResourceOption) (*CbrVault, error)
    public static CbrVault Get(string name, Input<string> id, CbrVaultState? state, CustomResourceOptions? opts = null)
    public static CbrVault get(String name, Output<String> id, CbrVaultState state, CustomResourceOptions options)
    resources:  _:    type: flexibleengine:CbrVault    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:
    Allocated double
    The allocated capacity of the vault, in GB.
    AutoBind bool
    Specifies whether automatic association is enabled. Defaults to false.
    AutoExpand bool
    Specifies to enable auto capacity expansion for the backup protection type vault. Defaults to false.
    AutoPay string

    Deprecated: Deprecated

    AutoRenew string
    BackupNamePrefix string
    The backup name prefix.
    BindRules Dictionary<string, string>
    Specifies the tags to filter resources for automatic association with auto_bind.
    CbrVaultId string
    Specifies the policy ID.
    ChargingMode string
    ConsistentLevel string

    Specifies the consistent level (specification) of the vault. The valid values are as follows:

    Only server type vaults support application consistent and defaults to crash_consistent. Changing this will create a new vault.

    EnterpriseProjectId string
    Specifies the enterprise project id of the cbr vault resource. Changing this will create a new resource.
    Name string
    Specifies a unique name of the CBR vault. This parameter can contain a maximum of 64 characters, which may consist of letters, digits, underscores(_) and hyphens (-).
    Period double
    PeriodUnit string
    Policies List<CbrVaultPolicy>
    Specifies the policy details to associate with the CBR vault. The object structure is documented below.
    PolicyId string
    schema:Deprecated; Using parameter 'policy' instead.
    ProtectionType string
    Specifies the protection type of the CBR vault. The valid values are backup and replication. Vaults of type disk don't support replication. Changing this will create a new vault.
    Region string
    Specifies the region in which to create the CBR vault. If omitted, the provider-level region will be used. Changing this will create a new vault.
    Resources List<CbrVaultResource>

    Specifies an array of one or more resources to attach to the CBR vault. The object structure is documented below.

    If configured, the names of all automatic backups generated for the vault will use this prefix.

    Size double
    Specifies the vault capacity, in GB. The valid value range is 1 to 10,485,760.
    SpecCode string
    The specification code.
    Status string
    The vault status.
    Storage string
    The name of the bucket for the vault.
    Tags Dictionary<string, string>

    Specifies the key/value pairs to associat

    The policy block supports:

    Timeouts CbrVaultTimeouts
    Type string
    Specifies the object type of the CBR vault. Changing this will create a new vault. Vaild values are as follows:

    • server (Cloud Servers)
    • disk (EVS Disks)
    • turbo (SFS Turbo file systems)
    Used double
    The used capacity, in GB.
    Allocated float64
    The allocated capacity of the vault, in GB.
    AutoBind bool
    Specifies whether automatic association is enabled. Defaults to false.
    AutoExpand bool
    Specifies to enable auto capacity expansion for the backup protection type vault. Defaults to false.
    AutoPay string

    Deprecated: Deprecated

    AutoRenew string
    BackupNamePrefix string
    The backup name prefix.
    BindRules map[string]string
    Specifies the tags to filter resources for automatic association with auto_bind.
    CbrVaultId string
    Specifies the policy ID.
    ChargingMode string
    ConsistentLevel string

    Specifies the consistent level (specification) of the vault. The valid values are as follows:

    Only server type vaults support application consistent and defaults to crash_consistent. Changing this will create a new vault.

    EnterpriseProjectId string
    Specifies the enterprise project id of the cbr vault resource. Changing this will create a new resource.
    Name string
    Specifies a unique name of the CBR vault. This parameter can contain a maximum of 64 characters, which may consist of letters, digits, underscores(_) and hyphens (-).
    Period float64
    PeriodUnit string
    Policies []CbrVaultPolicyArgs
    Specifies the policy details to associate with the CBR vault. The object structure is documented below.
    PolicyId string
    schema:Deprecated; Using parameter 'policy' instead.
    ProtectionType string
    Specifies the protection type of the CBR vault. The valid values are backup and replication. Vaults of type disk don't support replication. Changing this will create a new vault.
    Region string
    Specifies the region in which to create the CBR vault. If omitted, the provider-level region will be used. Changing this will create a new vault.
    Resources []CbrVaultResourceArgs

    Specifies an array of one or more resources to attach to the CBR vault. The object structure is documented below.

    If configured, the names of all automatic backups generated for the vault will use this prefix.

    Size float64
    Specifies the vault capacity, in GB. The valid value range is 1 to 10,485,760.
    SpecCode string
    The specification code.
    Status string
    The vault status.
    Storage string
    The name of the bucket for the vault.
    Tags map[string]string

    Specifies the key/value pairs to associat

    The policy block supports:

    Timeouts CbrVaultTimeoutsArgs
    Type string
    Specifies the object type of the CBR vault. Changing this will create a new vault. Vaild values are as follows:

    • server (Cloud Servers)
    • disk (EVS Disks)
    • turbo (SFS Turbo file systems)
    Used float64
    The used capacity, in GB.
    allocated Double
    The allocated capacity of the vault, in GB.
    autoBind Boolean
    Specifies whether automatic association is enabled. Defaults to false.
    autoExpand Boolean
    Specifies to enable auto capacity expansion for the backup protection type vault. Defaults to false.
    autoPay String

    Deprecated: Deprecated

    autoRenew String
    backupNamePrefix String
    The backup name prefix.
    bindRules Map<String,String>
    Specifies the tags to filter resources for automatic association with auto_bind.
    cbrVaultId String
    Specifies the policy ID.
    chargingMode String
    consistentLevel String

    Specifies the consistent level (specification) of the vault. The valid values are as follows:

    Only server type vaults support application consistent and defaults to crash_consistent. Changing this will create a new vault.

    enterpriseProjectId String
    Specifies the enterprise project id of the cbr vault resource. Changing this will create a new resource.
    name String
    Specifies a unique name of the CBR vault. This parameter can contain a maximum of 64 characters, which may consist of letters, digits, underscores(_) and hyphens (-).
    period Double
    periodUnit String
    policies List<CbrVaultPolicy>
    Specifies the policy details to associate with the CBR vault. The object structure is documented below.
    policyId String
    schema:Deprecated; Using parameter 'policy' instead.
    protectionType String
    Specifies the protection type of the CBR vault. The valid values are backup and replication. Vaults of type disk don't support replication. Changing this will create a new vault.
    region String
    Specifies the region in which to create the CBR vault. If omitted, the provider-level region will be used. Changing this will create a new vault.
    resources List<CbrVaultResource>

    Specifies an array of one or more resources to attach to the CBR vault. The object structure is documented below.

    If configured, the names of all automatic backups generated for the vault will use this prefix.

    size Double
    Specifies the vault capacity, in GB. The valid value range is 1 to 10,485,760.
    specCode String
    The specification code.
    status String
    The vault status.
    storage String
    The name of the bucket for the vault.
    tags Map<String,String>

    Specifies the key/value pairs to associat

    The policy block supports:

    timeouts CbrVaultTimeouts
    type String
    Specifies the object type of the CBR vault. Changing this will create a new vault. Vaild values are as follows:

    • server (Cloud Servers)
    • disk (EVS Disks)
    • turbo (SFS Turbo file systems)
    used Double
    The used capacity, in GB.
    allocated number
    The allocated capacity of the vault, in GB.
    autoBind boolean
    Specifies whether automatic association is enabled. Defaults to false.
    autoExpand boolean
    Specifies to enable auto capacity expansion for the backup protection type vault. Defaults to false.
    autoPay string

    Deprecated: Deprecated

    autoRenew string
    backupNamePrefix string
    The backup name prefix.
    bindRules {[key: string]: string}
    Specifies the tags to filter resources for automatic association with auto_bind.
    cbrVaultId string
    Specifies the policy ID.
    chargingMode string
    consistentLevel string

    Specifies the consistent level (specification) of the vault. The valid values are as follows:

    Only server type vaults support application consistent and defaults to crash_consistent. Changing this will create a new vault.

    enterpriseProjectId string
    Specifies the enterprise project id of the cbr vault resource. Changing this will create a new resource.
    name string
    Specifies a unique name of the CBR vault. This parameter can contain a maximum of 64 characters, which may consist of letters, digits, underscores(_) and hyphens (-).
    period number
    periodUnit string
    policies CbrVaultPolicy[]
    Specifies the policy details to associate with the CBR vault. The object structure is documented below.
    policyId string
    schema:Deprecated; Using parameter 'policy' instead.
    protectionType string
    Specifies the protection type of the CBR vault. The valid values are backup and replication. Vaults of type disk don't support replication. Changing this will create a new vault.
    region string
    Specifies the region in which to create the CBR vault. If omitted, the provider-level region will be used. Changing this will create a new vault.
    resources CbrVaultResource[]

    Specifies an array of one or more resources to attach to the CBR vault. The object structure is documented below.

    If configured, the names of all automatic backups generated for the vault will use this prefix.

    size number
    Specifies the vault capacity, in GB. The valid value range is 1 to 10,485,760.
    specCode string
    The specification code.
    status string
    The vault status.
    storage string
    The name of the bucket for the vault.
    tags {[key: string]: string}

    Specifies the key/value pairs to associat

    The policy block supports:

    timeouts CbrVaultTimeouts
    type string
    Specifies the object type of the CBR vault. Changing this will create a new vault. Vaild values are as follows:

    • server (Cloud Servers)
    • disk (EVS Disks)
    • turbo (SFS Turbo file systems)
    used number
    The used capacity, in GB.
    allocated float
    The allocated capacity of the vault, in GB.
    auto_bind bool
    Specifies whether automatic association is enabled. Defaults to false.
    auto_expand bool
    Specifies to enable auto capacity expansion for the backup protection type vault. Defaults to false.
    auto_pay str

    Deprecated: Deprecated

    auto_renew str
    backup_name_prefix str
    The backup name prefix.
    bind_rules Mapping[str, str]
    Specifies the tags to filter resources for automatic association with auto_bind.
    cbr_vault_id str
    Specifies the policy ID.
    charging_mode str
    consistent_level str

    Specifies the consistent level (specification) of the vault. The valid values are as follows:

    Only server type vaults support application consistent and defaults to crash_consistent. Changing this will create a new vault.

    enterprise_project_id str
    Specifies the enterprise project id of the cbr vault resource. Changing this will create a new resource.
    name str
    Specifies a unique name of the CBR vault. This parameter can contain a maximum of 64 characters, which may consist of letters, digits, underscores(_) and hyphens (-).
    period float
    period_unit str
    policies Sequence[CbrVaultPolicyArgs]
    Specifies the policy details to associate with the CBR vault. The object structure is documented below.
    policy_id str
    schema:Deprecated; Using parameter 'policy' instead.
    protection_type str
    Specifies the protection type of the CBR vault. The valid values are backup and replication. Vaults of type disk don't support replication. Changing this will create a new vault.
    region str
    Specifies the region in which to create the CBR vault. If omitted, the provider-level region will be used. Changing this will create a new vault.
    resources Sequence[CbrVaultResourceArgs]

    Specifies an array of one or more resources to attach to the CBR vault. The object structure is documented below.

    If configured, the names of all automatic backups generated for the vault will use this prefix.

    size float
    Specifies the vault capacity, in GB. The valid value range is 1 to 10,485,760.
    spec_code str
    The specification code.
    status str
    The vault status.
    storage str
    The name of the bucket for the vault.
    tags Mapping[str, str]

    Specifies the key/value pairs to associat

    The policy block supports:

    timeouts CbrVaultTimeoutsArgs
    type str
    Specifies the object type of the CBR vault. Changing this will create a new vault. Vaild values are as follows:

    • server (Cloud Servers)
    • disk (EVS Disks)
    • turbo (SFS Turbo file systems)
    used float
    The used capacity, in GB.
    allocated Number
    The allocated capacity of the vault, in GB.
    autoBind Boolean
    Specifies whether automatic association is enabled. Defaults to false.
    autoExpand Boolean
    Specifies to enable auto capacity expansion for the backup protection type vault. Defaults to false.
    autoPay String

    Deprecated: Deprecated

    autoRenew String
    backupNamePrefix String
    The backup name prefix.
    bindRules Map<String>
    Specifies the tags to filter resources for automatic association with auto_bind.
    cbrVaultId String
    Specifies the policy ID.
    chargingMode String
    consistentLevel String

    Specifies the consistent level (specification) of the vault. The valid values are as follows:

    Only server type vaults support application consistent and defaults to crash_consistent. Changing this will create a new vault.

    enterpriseProjectId String
    Specifies the enterprise project id of the cbr vault resource. Changing this will create a new resource.
    name String
    Specifies a unique name of the CBR vault. This parameter can contain a maximum of 64 characters, which may consist of letters, digits, underscores(_) and hyphens (-).
    period Number
    periodUnit String
    policies List<Property Map>
    Specifies the policy details to associate with the CBR vault. The object structure is documented below.
    policyId String
    schema:Deprecated; Using parameter 'policy' instead.
    protectionType String
    Specifies the protection type of the CBR vault. The valid values are backup and replication. Vaults of type disk don't support replication. Changing this will create a new vault.
    region String
    Specifies the region in which to create the CBR vault. If omitted, the provider-level region will be used. Changing this will create a new vault.
    resources List<Property Map>

    Specifies an array of one or more resources to attach to the CBR vault. The object structure is documented below.

    If configured, the names of all automatic backups generated for the vault will use this prefix.

    size Number
    Specifies the vault capacity, in GB. The valid value range is 1 to 10,485,760.
    specCode String
    The specification code.
    status String
    The vault status.
    storage String
    The name of the bucket for the vault.
    tags Map<String>

    Specifies the key/value pairs to associat

    The policy block supports:

    timeouts Property Map
    type String
    Specifies the object type of the CBR vault. Changing this will create a new vault. Vaild values are as follows:

    • server (Cloud Servers)
    • disk (EVS Disks)
    • turbo (SFS Turbo file systems)
    used Number
    The used capacity, in GB.

    Supporting Types

    CbrVaultPolicy, CbrVaultPolicyArgs

    Id string
    Specifies the policy ID.
    DestinationVaultId string

    Specifies the ID of destination vault to which the replication policy will associated.

    Only one policy of each type (backup and replication) can be associated.

    The resources block supports:

    Id string
    Specifies the policy ID.
    DestinationVaultId string

    Specifies the ID of destination vault to which the replication policy will associated.

    Only one policy of each type (backup and replication) can be associated.

    The resources block supports:

    id String
    Specifies the policy ID.
    destinationVaultId String

    Specifies the ID of destination vault to which the replication policy will associated.

    Only one policy of each type (backup and replication) can be associated.

    The resources block supports:

    id string
    Specifies the policy ID.
    destinationVaultId string

    Specifies the ID of destination vault to which the replication policy will associated.

    Only one policy of each type (backup and replication) can be associated.

    The resources block supports:

    id str
    Specifies the policy ID.
    destination_vault_id str

    Specifies the ID of destination vault to which the replication policy will associated.

    Only one policy of each type (backup and replication) can be associated.

    The resources block supports:

    id String
    Specifies the policy ID.
    destinationVaultId String

    Specifies the ID of destination vault to which the replication policy will associated.

    Only one policy of each type (backup and replication) can be associated.

    The resources block supports:

    CbrVaultResource, CbrVaultResourceArgs

    Excludes List<string>
    Specifies the array of disk IDs which will be excluded in the backup. Only server vault support this parameter.
    Includes List<string>
    Specifies the array of disk or SFS file system IDs which will be included in the backup. Only disk and turbo vault support this parameter.
    ServerId string
    Specifies the ID of the ECS instance to be backed up.
    Excludes []string
    Specifies the array of disk IDs which will be excluded in the backup. Only server vault support this parameter.
    Includes []string
    Specifies the array of disk or SFS file system IDs which will be included in the backup. Only disk and turbo vault support this parameter.
    ServerId string
    Specifies the ID of the ECS instance to be backed up.
    excludes List<String>
    Specifies the array of disk IDs which will be excluded in the backup. Only server vault support this parameter.
    includes List<String>
    Specifies the array of disk or SFS file system IDs which will be included in the backup. Only disk and turbo vault support this parameter.
    serverId String
    Specifies the ID of the ECS instance to be backed up.
    excludes string[]
    Specifies the array of disk IDs which will be excluded in the backup. Only server vault support this parameter.
    includes string[]
    Specifies the array of disk or SFS file system IDs which will be included in the backup. Only disk and turbo vault support this parameter.
    serverId string
    Specifies the ID of the ECS instance to be backed up.
    excludes Sequence[str]
    Specifies the array of disk IDs which will be excluded in the backup. Only server vault support this parameter.
    includes Sequence[str]
    Specifies the array of disk or SFS file system IDs which will be included in the backup. Only disk and turbo vault support this parameter.
    server_id str
    Specifies the ID of the ECS instance to be backed up.
    excludes List<String>
    Specifies the array of disk IDs which will be excluded in the backup. Only server vault support this parameter.
    includes List<String>
    Specifies the array of disk or SFS file system IDs which will be included in the backup. Only disk and turbo vault support this parameter.
    serverId String
    Specifies the ID of the ECS instance to be backed up.

    CbrVaultTimeouts, CbrVaultTimeoutsArgs

    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

    Vaults can be imported by their id. For example,

    $ pulumi import flexibleengine:index/cbrVault:CbrVault test 01c33779-7c83-4182-8b6b-24a671fcedf8
    

    Note that the imported state may not be identical to your resource definition, due to some attributes missing from the

    API response, security or some other reason. The missing attributes include: period_unit, period, auto_renew.

    It is generally recommended running pulumi preview after importing a vault.

    You can then decide if changes should be applied to the vault, or the resource definition should be updated to align

    with the vault. Also you can ignore changes as below.

    hcl

    resource “flexibleengine_cbr_vault” “test” {

    lifecycle {

    ignore_changes = [
    
      period_unit, period, auto_renew,
    
    ]
    

    }

    }

    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