flexibleengine.CbrVault
Explore with Pulumi AI
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:
- Protection
Type 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
to10,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)
- 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 string - Auto
Renew string - Backup
Name stringPrefix - The backup name prefix.
- Bind
Rules Dictionary<string, string> - Specifies the tags to filter resources for automatic association with auto_bind.
- Cbr
Vault stringId - Specifies the policy ID.
- Charging
Mode string - Consistent
Level 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.
- Enterprise
Project stringId - 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
- Period
Unit string - Policies
List<Cbr
Vault Policy> - Specifies the policy details to associate with the CBR vault. The object structure is documented below.
- Policy
Id 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<Cbr
Vault Resource> 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.
- Dictionary<string, string>
Specifies the key/value pairs to associat
The
policy
block supports:- Timeouts
Cbr
Vault Timeouts
- Protection
Type 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
to10,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)
- 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 string - Auto
Renew string - Backup
Name stringPrefix - The backup name prefix.
- Bind
Rules map[string]string - Specifies the tags to filter resources for automatic association with auto_bind.
- Cbr
Vault stringId - Specifies the policy ID.
- Charging
Mode string - Consistent
Level 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.
- Enterprise
Project stringId - 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
- Period
Unit string - Policies
[]Cbr
Vault Policy Args - Specifies the policy details to associate with the CBR vault. The object structure is documented below.
- Policy
Id 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
[]Cbr
Vault Resource Args 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.
- map[string]string
Specifies the key/value pairs to associat
The
policy
block supports:- Timeouts
Cbr
Vault Timeouts Args
- protection
Type 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
to10,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)
- auto
Bind Boolean - Specifies whether automatic association is enabled. Defaults to false.
- auto
Expand Boolean - Specifies to enable auto capacity expansion for the backup protection type vault. Defaults to false.
- auto
Pay String - auto
Renew String - backup
Name StringPrefix - The backup name prefix.
- bind
Rules Map<String,String> - Specifies the tags to filter resources for automatic association with auto_bind.
- cbr
Vault StringId - Specifies the policy ID.
- charging
Mode String - consistent
Level 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.
- enterprise
Project StringId - 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
- period
Unit String - policies
List<Cbr
Vault Policy> - Specifies the policy details to associate with the CBR vault. The object structure is documented below.
- policy
Id 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<Cbr
Vault Resource> 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.
- Map<String,String>
Specifies the key/value pairs to associat
The
policy
block supports:- timeouts
Cbr
Vault Timeouts
- protection
Type 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
to10,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)
- auto
Bind boolean - Specifies whether automatic association is enabled. Defaults to false.
- auto
Expand boolean - Specifies to enable auto capacity expansion for the backup protection type vault. Defaults to false.
- auto
Pay string - auto
Renew string - backup
Name stringPrefix - The backup name prefix.
- bind
Rules {[key: string]: string} - Specifies the tags to filter resources for automatic association with auto_bind.
- cbr
Vault stringId - Specifies the policy ID.
- charging
Mode string - consistent
Level 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.
- enterprise
Project stringId - 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
- period
Unit string - policies
Cbr
Vault Policy[] - Specifies the policy details to associate with the CBR vault. The object structure is documented below.
- policy
Id 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
Cbr
Vault Resource[] 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.
- {[key: string]: string}
Specifies the key/value pairs to associat
The
policy
block supports:- timeouts
Cbr
Vault Timeouts
- 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
to10,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 - auto_
renew str - backup_
name_ strprefix - The backup name prefix.
- bind_
rules Mapping[str, str] - Specifies the tags to filter resources for automatic association with auto_bind.
- cbr_
vault_ strid - 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_ strid - 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[Cbr
Vault Policy Args] - 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[Cbr
Vault Resource Args] 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.
- Mapping[str, str]
Specifies the key/value pairs to associat
The
policy
block supports:- timeouts
Cbr
Vault Timeouts Args
- protection
Type 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
to10,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)
- auto
Bind Boolean - Specifies whether automatic association is enabled. Defaults to false.
- auto
Expand Boolean - Specifies to enable auto capacity expansion for the backup protection type vault. Defaults to false.
- auto
Pay String - auto
Renew String - backup
Name StringPrefix - The backup name prefix.
- bind
Rules Map<String> - Specifies the tags to filter resources for automatic association with auto_bind.
- cbr
Vault StringId - Specifies the policy ID.
- charging
Mode String - consistent
Level 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.
- enterprise
Project StringId - 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
- period
Unit String - policies List<Property Map>
- Specifies the policy details to associate with the CBR vault. The object structure is documented below.
- policy
Id 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.
- 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:
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.
- Allocated double
- 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 string - Auto
Renew string - Backup
Name stringPrefix - The backup name prefix.
- Bind
Rules Dictionary<string, string> - Specifies the tags to filter resources for automatic association with auto_bind.
- Cbr
Vault stringId - Specifies the policy ID.
- Charging
Mode string - Consistent
Level 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.
- Enterprise
Project stringId - 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
- Period
Unit string - Policies
List<Cbr
Vault Policy> - Specifies the policy details to associate with the CBR vault. The object structure is documented below.
- Policy
Id string - schema:Deprecated; Using parameter 'policy' instead.
- Protection
Type 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<Cbr
Vault Resource> 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
to10,485,760
. - Spec
Code string - The specification code.
- Status string
- The vault status.
- Storage string
- The name of the bucket for the vault.
- Dictionary<string, string>
Specifies the key/value pairs to associat
The
policy
block supports:- Timeouts
Cbr
Vault Timeouts - 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.
- 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 string - Auto
Renew string - Backup
Name stringPrefix - The backup name prefix.
- Bind
Rules map[string]string - Specifies the tags to filter resources for automatic association with auto_bind.
- Cbr
Vault stringId - Specifies the policy ID.
- Charging
Mode string - Consistent
Level 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.
- Enterprise
Project stringId - 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
- Period
Unit string - Policies
[]Cbr
Vault Policy Args - Specifies the policy details to associate with the CBR vault. The object structure is documented below.
- Policy
Id string - schema:Deprecated; Using parameter 'policy' instead.
- Protection
Type 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
[]Cbr
Vault Resource Args 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
to10,485,760
. - Spec
Code string - The specification code.
- Status string
- The vault status.
- Storage string
- The name of the bucket for the vault.
- map[string]string
Specifies the key/value pairs to associat
The
policy
block supports:- Timeouts
Cbr
Vault Timeouts Args - 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.
- auto
Bind Boolean - Specifies whether automatic association is enabled. Defaults to false.
- auto
Expand Boolean - Specifies to enable auto capacity expansion for the backup protection type vault. Defaults to false.
- auto
Pay String - auto
Renew String - backup
Name StringPrefix - The backup name prefix.
- bind
Rules Map<String,String> - Specifies the tags to filter resources for automatic association with auto_bind.
- cbr
Vault StringId - Specifies the policy ID.
- charging
Mode String - consistent
Level 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.
- enterprise
Project StringId - 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
- period
Unit String - policies
List<Cbr
Vault Policy> - Specifies the policy details to associate with the CBR vault. The object structure is documented below.
- policy
Id String - schema:Deprecated; Using parameter 'policy' instead.
- protection
Type 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<Cbr
Vault Resource> 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
to10,485,760
. - spec
Code String - The specification code.
- status String
- The vault status.
- storage String
- The name of the bucket for the vault.
- Map<String,String>
Specifies the key/value pairs to associat
The
policy
block supports:- timeouts
Cbr
Vault Timeouts - 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.
- auto
Bind boolean - Specifies whether automatic association is enabled. Defaults to false.
- auto
Expand boolean - Specifies to enable auto capacity expansion for the backup protection type vault. Defaults to false.
- auto
Pay string - auto
Renew string - backup
Name stringPrefix - The backup name prefix.
- bind
Rules {[key: string]: string} - Specifies the tags to filter resources for automatic association with auto_bind.
- cbr
Vault stringId - Specifies the policy ID.
- charging
Mode string - consistent
Level 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.
- enterprise
Project stringId - 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
- period
Unit string - policies
Cbr
Vault Policy[] - Specifies the policy details to associate with the CBR vault. The object structure is documented below.
- policy
Id string - schema:Deprecated; Using parameter 'policy' instead.
- protection
Type 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
Cbr
Vault Resource[] 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
to10,485,760
. - spec
Code string - The specification code.
- status string
- The vault status.
- storage string
- The name of the bucket for the vault.
- {[key: string]: string}
Specifies the key/value pairs to associat
The
policy
block supports:- timeouts
Cbr
Vault Timeouts - 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 - auto_
renew str - backup_
name_ strprefix - The backup name prefix.
- bind_
rules Mapping[str, str] - Specifies the tags to filter resources for automatic association with auto_bind.
- cbr_
vault_ strid - 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_ strid - 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[Cbr
Vault Policy Args] - 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[Cbr
Vault Resource Args] 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
to10,485,760
. - spec_
code str - The specification code.
- status str
- The vault status.
- storage str
- The name of the bucket for the vault.
- Mapping[str, str]
Specifies the key/value pairs to associat
The
policy
block supports:- timeouts
Cbr
Vault Timeouts Args - 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.
- auto
Bind Boolean - Specifies whether automatic association is enabled. Defaults to false.
- auto
Expand Boolean - Specifies to enable auto capacity expansion for the backup protection type vault. Defaults to false.
- auto
Pay String - auto
Renew String - backup
Name StringPrefix - The backup name prefix.
- bind
Rules Map<String> - Specifies the tags to filter resources for automatic association with auto_bind.
- cbr
Vault StringId - Specifies the policy ID.
- charging
Mode String - consistent
Level 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.
- enterprise
Project StringId - 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
- period
Unit String - policies List<Property Map>
- Specifies the policy details to associate with the CBR vault. The object structure is documented below.
- policy
Id String - schema:Deprecated; Using parameter 'policy' instead.
- protection
Type 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
to10,485,760
. - spec
Code String - The specification code.
- status String
- The vault status.
- storage String
- The name of the bucket for the vault.
- 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.
- Destination
Vault stringId 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.
- Destination
Vault stringId 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.
- destination
Vault StringId 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.
- destination
Vault stringId 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_ strid 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.
- destination
Vault StringId 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.
- Server
Id 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.
- Server
Id 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.
- server
Id 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.
- server
Id 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.
- server
Id String - Specifies the ID of the ECS instance to be backed up.
CbrVaultTimeouts, CbrVaultTimeoutsArgs
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.