opentelekomcloud.CbrVaultV3
Explore with Pulumi AI
Up-to-date reference of API arguments for CBR vault you can get at documentation portal
Manages a V3 CBR Vault resource within OpenTelekomCloud.
Example Usage
Simple vault
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const vault = new opentelekomcloud.CbrVaultV3("vault", {
billing: {
chargingMode: "post_paid",
objectType: "disk",
protectType: "backup",
size: 100,
},
description: "CBR vault for terraform provider test",
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
vault = opentelekomcloud.CbrVaultV3("vault",
billing={
"charging_mode": "post_paid",
"object_type": "disk",
"protect_type": "backup",
"size": 100,
},
description="CBR vault for terraform provider test")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := opentelekomcloud.NewCbrVaultV3(ctx, "vault", &opentelekomcloud.CbrVaultV3Args{
Billing: &opentelekomcloud.CbrVaultV3BillingArgs{
ChargingMode: pulumi.String("post_paid"),
ObjectType: pulumi.String("disk"),
ProtectType: pulumi.String("backup"),
Size: pulumi.Float64(100),
},
Description: pulumi.String("CBR vault for terraform provider test"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var vault = new Opentelekomcloud.CbrVaultV3("vault", new()
{
Billing = new Opentelekomcloud.Inputs.CbrVaultV3BillingArgs
{
ChargingMode = "post_paid",
ObjectType = "disk",
ProtectType = "backup",
Size = 100,
},
Description = "CBR vault for terraform provider test",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.CbrVaultV3;
import com.pulumi.opentelekomcloud.CbrVaultV3Args;
import com.pulumi.opentelekomcloud.inputs.CbrVaultV3BillingArgs;
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) {
var vault = new CbrVaultV3("vault", CbrVaultV3Args.builder()
.billing(CbrVaultV3BillingArgs.builder()
.chargingMode("post_paid")
.objectType("disk")
.protectType("backup")
.size(100)
.build())
.description("CBR vault for terraform provider test")
.build());
}
}
resources:
vault:
type: opentelekomcloud:CbrVaultV3
properties:
billing:
chargingMode: post_paid
objectType: disk
protectType: backup
size: 100
description: CBR vault for terraform provider test
Vault with associated resource (server)
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const vault = new opentelekomcloud.CbrVaultV3("vault", {
description: "CBR vault for terraform provider test",
billing: {
size: 100,
objectType: "disk",
protectType: "backup",
chargingMode: "post_paid",
},
resources: [{
id: opentelekomcloud_ecs_instance_v1.instance.id,
type: "OS::Nova::Server",
excludeVolumes: [opentelekomcloud_ecs_instance_v1.instance_1.data_disks[1].id],
}],
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
vault = opentelekomcloud.CbrVaultV3("vault",
description="CBR vault for terraform provider test",
billing={
"size": 100,
"object_type": "disk",
"protect_type": "backup",
"charging_mode": "post_paid",
},
resources=[{
"id": opentelekomcloud_ecs_instance_v1["instance"]["id"],
"type": "OS::Nova::Server",
"exclude_volumes": [opentelekomcloud_ecs_instance_v1["instance_1"]["data_disks"][1]["id"]],
}])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := opentelekomcloud.NewCbrVaultV3(ctx, "vault", &opentelekomcloud.CbrVaultV3Args{
Description: pulumi.String("CBR vault for terraform provider test"),
Billing: &opentelekomcloud.CbrVaultV3BillingArgs{
Size: pulumi.Float64(100),
ObjectType: pulumi.String("disk"),
ProtectType: pulumi.String("backup"),
ChargingMode: pulumi.String("post_paid"),
},
Resources: opentelekomcloud.CbrVaultV3ResourceArray{
&opentelekomcloud.CbrVaultV3ResourceArgs{
Id: pulumi.Any(opentelekomcloud_ecs_instance_v1.Instance.Id),
Type: pulumi.String("OS::Nova::Server"),
ExcludeVolumes: pulumi.StringArray{
opentelekomcloud_ecs_instance_v1.Instance_1.Data_disks[1].Id,
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var vault = new Opentelekomcloud.CbrVaultV3("vault", new()
{
Description = "CBR vault for terraform provider test",
Billing = new Opentelekomcloud.Inputs.CbrVaultV3BillingArgs
{
Size = 100,
ObjectType = "disk",
ProtectType = "backup",
ChargingMode = "post_paid",
},
Resources = new[]
{
new Opentelekomcloud.Inputs.CbrVaultV3ResourceArgs
{
Id = opentelekomcloud_ecs_instance_v1.Instance.Id,
Type = "OS::Nova::Server",
ExcludeVolumes = new[]
{
opentelekomcloud_ecs_instance_v1.Instance_1.Data_disks[1].Id,
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.CbrVaultV3;
import com.pulumi.opentelekomcloud.CbrVaultV3Args;
import com.pulumi.opentelekomcloud.inputs.CbrVaultV3BillingArgs;
import com.pulumi.opentelekomcloud.inputs.CbrVaultV3ResourceArgs;
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) {
var vault = new CbrVaultV3("vault", CbrVaultV3Args.builder()
.description("CBR vault for terraform provider test")
.billing(CbrVaultV3BillingArgs.builder()
.size(100)
.objectType("disk")
.protectType("backup")
.chargingMode("post_paid")
.build())
.resources(CbrVaultV3ResourceArgs.builder()
.id(opentelekomcloud_ecs_instance_v1.instance().id())
.type("OS::Nova::Server")
.excludeVolumes(opentelekomcloud_ecs_instance_v1.instance_1().data_disks()[1].id())
.build())
.build());
}
}
resources:
vault:
type: opentelekomcloud:CbrVaultV3
properties:
description: CBR vault for terraform provider test
billing:
size: 100
objectType: disk
protectType: backup
chargingMode: post_paid
resources:
- id: ${opentelekomcloud_ecs_instance_v1.instance.id}
type: OS::Nova::Server
excludeVolumes:
- ${opentelekomcloud_ecs_instance_v1.instance_1.data_disks[1].id}
Include volumes works currently only on SwissCloud:
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const vault = new opentelekomcloud.CbrVaultV3("vault", {
description: "CBR vault for terraform provider test",
billing: {
size: 100,
objectType: "disk",
protectType: "backup",
chargingMode: "post_paid",
},
resources: [{
id: opentelekomcloud_ecs_instance_v1.instance.id,
type: "OS::Nova::Server",
includeVolumes: [opentelekomcloud_ecs_instance_v1.instance_1.data_disks[1].id],
}],
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
vault = opentelekomcloud.CbrVaultV3("vault",
description="CBR vault for terraform provider test",
billing={
"size": 100,
"object_type": "disk",
"protect_type": "backup",
"charging_mode": "post_paid",
},
resources=[{
"id": opentelekomcloud_ecs_instance_v1["instance"]["id"],
"type": "OS::Nova::Server",
"include_volumes": [opentelekomcloud_ecs_instance_v1["instance_1"]["data_disks"][1]["id"]],
}])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := opentelekomcloud.NewCbrVaultV3(ctx, "vault", &opentelekomcloud.CbrVaultV3Args{
Description: pulumi.String("CBR vault for terraform provider test"),
Billing: &opentelekomcloud.CbrVaultV3BillingArgs{
Size: pulumi.Float64(100),
ObjectType: pulumi.String("disk"),
ProtectType: pulumi.String("backup"),
ChargingMode: pulumi.String("post_paid"),
},
Resources: opentelekomcloud.CbrVaultV3ResourceArray{
&opentelekomcloud.CbrVaultV3ResourceArgs{
Id: pulumi.Any(opentelekomcloud_ecs_instance_v1.Instance.Id),
Type: pulumi.String("OS::Nova::Server"),
IncludeVolumes: pulumi.StringArray{
opentelekomcloud_ecs_instance_v1.Instance_1.Data_disks[1].Id,
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var vault = new Opentelekomcloud.CbrVaultV3("vault", new()
{
Description = "CBR vault for terraform provider test",
Billing = new Opentelekomcloud.Inputs.CbrVaultV3BillingArgs
{
Size = 100,
ObjectType = "disk",
ProtectType = "backup",
ChargingMode = "post_paid",
},
Resources = new[]
{
new Opentelekomcloud.Inputs.CbrVaultV3ResourceArgs
{
Id = opentelekomcloud_ecs_instance_v1.Instance.Id,
Type = "OS::Nova::Server",
IncludeVolumes = new[]
{
opentelekomcloud_ecs_instance_v1.Instance_1.Data_disks[1].Id,
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.CbrVaultV3;
import com.pulumi.opentelekomcloud.CbrVaultV3Args;
import com.pulumi.opentelekomcloud.inputs.CbrVaultV3BillingArgs;
import com.pulumi.opentelekomcloud.inputs.CbrVaultV3ResourceArgs;
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) {
var vault = new CbrVaultV3("vault", CbrVaultV3Args.builder()
.description("CBR vault for terraform provider test")
.billing(CbrVaultV3BillingArgs.builder()
.size(100)
.objectType("disk")
.protectType("backup")
.chargingMode("post_paid")
.build())
.resources(CbrVaultV3ResourceArgs.builder()
.id(opentelekomcloud_ecs_instance_v1.instance().id())
.type("OS::Nova::Server")
.includeVolumes(opentelekomcloud_ecs_instance_v1.instance_1().data_disks()[1].id())
.build())
.build());
}
}
resources:
vault:
type: opentelekomcloud:CbrVaultV3
properties:
description: CBR vault for terraform provider test
billing:
size: 100
objectType: disk
protectType: backup
chargingMode: post_paid
resources:
- id: ${opentelekomcloud_ecs_instance_v1.instance.id}
type: OS::Nova::Server
includeVolumes:
- ${opentelekomcloud_ecs_instance_v1.instance_1.data_disks[1].id}
Vault with associated resource (volume)
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const volume = new opentelekomcloud.BlockstorageVolumeV2("volume", {
size: 10,
volumeType: "SSD",
});
const vault = new opentelekomcloud.CbrVaultV3("vault", {
description: "CBR vault for terraform provider test",
billing: {
size: 100,
objectType: "disk",
protectType: "backup",
chargingMode: "post_paid",
},
resources: [{
id: volume.blockstorageVolumeV2Id,
type: "OS::Cinder::Volume",
}],
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
volume = opentelekomcloud.BlockstorageVolumeV2("volume",
size=10,
volume_type="SSD")
vault = opentelekomcloud.CbrVaultV3("vault",
description="CBR vault for terraform provider test",
billing={
"size": 100,
"object_type": "disk",
"protect_type": "backup",
"charging_mode": "post_paid",
},
resources=[{
"id": volume.blockstorage_volume_v2_id,
"type": "OS::Cinder::Volume",
}])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
volume, err := opentelekomcloud.NewBlockstorageVolumeV2(ctx, "volume", &opentelekomcloud.BlockstorageVolumeV2Args{
Size: pulumi.Float64(10),
VolumeType: pulumi.String("SSD"),
})
if err != nil {
return err
}
_, err = opentelekomcloud.NewCbrVaultV3(ctx, "vault", &opentelekomcloud.CbrVaultV3Args{
Description: pulumi.String("CBR vault for terraform provider test"),
Billing: &opentelekomcloud.CbrVaultV3BillingArgs{
Size: pulumi.Float64(100),
ObjectType: pulumi.String("disk"),
ProtectType: pulumi.String("backup"),
ChargingMode: pulumi.String("post_paid"),
},
Resources: opentelekomcloud.CbrVaultV3ResourceArray{
&opentelekomcloud.CbrVaultV3ResourceArgs{
Id: volume.BlockstorageVolumeV2Id,
Type: pulumi.String("OS::Cinder::Volume"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var volume = new Opentelekomcloud.BlockstorageVolumeV2("volume", new()
{
Size = 10,
VolumeType = "SSD",
});
var vault = new Opentelekomcloud.CbrVaultV3("vault", new()
{
Description = "CBR vault for terraform provider test",
Billing = new Opentelekomcloud.Inputs.CbrVaultV3BillingArgs
{
Size = 100,
ObjectType = "disk",
ProtectType = "backup",
ChargingMode = "post_paid",
},
Resources = new[]
{
new Opentelekomcloud.Inputs.CbrVaultV3ResourceArgs
{
Id = volume.BlockstorageVolumeV2Id,
Type = "OS::Cinder::Volume",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.BlockstorageVolumeV2;
import com.pulumi.opentelekomcloud.BlockstorageVolumeV2Args;
import com.pulumi.opentelekomcloud.CbrVaultV3;
import com.pulumi.opentelekomcloud.CbrVaultV3Args;
import com.pulumi.opentelekomcloud.inputs.CbrVaultV3BillingArgs;
import com.pulumi.opentelekomcloud.inputs.CbrVaultV3ResourceArgs;
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) {
var volume = new BlockstorageVolumeV2("volume", BlockstorageVolumeV2Args.builder()
.size(10)
.volumeType("SSD")
.build());
var vault = new CbrVaultV3("vault", CbrVaultV3Args.builder()
.description("CBR vault for terraform provider test")
.billing(CbrVaultV3BillingArgs.builder()
.size(100)
.objectType("disk")
.protectType("backup")
.chargingMode("post_paid")
.build())
.resources(CbrVaultV3ResourceArgs.builder()
.id(volume.blockstorageVolumeV2Id())
.type("OS::Cinder::Volume")
.build())
.build());
}
}
resources:
volume:
type: opentelekomcloud:BlockstorageVolumeV2
properties:
size: 10
volumeType: SSD
vault:
type: opentelekomcloud:CbrVaultV3
properties:
description: CBR vault for terraform provider test
billing:
size: 100
objectType: disk
protectType: backup
chargingMode: post_paid
resources:
- id: ${volume.blockstorageVolumeV2Id}
type: OS::Cinder::Volume
Vault with associated resource (sfs-turbo)
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const config = new pulumi.Config();
const vpcId = config.requireObject("vpcId");
const subnetId = config.requireObject("subnetId");
const sgId = config.requireObject("sgId");
const az = config.requireObject("az");
const sfs_turbo = new opentelekomcloud.SfsTurboShareV1("sfs-turbo", {
size: 500,
shareProto: "NFS",
vpcId: vpcId,
subnetId: subnetId,
securityGroupId: sgId,
availabilityZone: az,
});
const vault = new opentelekomcloud.CbrVaultV3("vault", {
description: "CBR vault for terraform provider test",
billing: {
size: 1000,
objectType: "turbo",
protectType: "backup",
chargingMode: "post_paid",
},
resources: [{
id: sfs_turbo.sfsTurboShareV1Id,
type: "OS::Sfs::Turbo",
}],
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
config = pulumi.Config()
vpc_id = config.require_object("vpcId")
subnet_id = config.require_object("subnetId")
sg_id = config.require_object("sgId")
az = config.require_object("az")
sfs_turbo = opentelekomcloud.SfsTurboShareV1("sfs-turbo",
size=500,
share_proto="NFS",
vpc_id=vpc_id,
subnet_id=subnet_id,
security_group_id=sg_id,
availability_zone=az)
vault = opentelekomcloud.CbrVaultV3("vault",
description="CBR vault for terraform provider test",
billing={
"size": 1000,
"object_type": "turbo",
"protect_type": "backup",
"charging_mode": "post_paid",
},
resources=[{
"id": sfs_turbo.sfs_turbo_share_v1_id,
"type": "OS::Sfs::Turbo",
}])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
vpcId := cfg.RequireObject("vpcId")
subnetId := cfg.RequireObject("subnetId")
sgId := cfg.RequireObject("sgId")
az := cfg.RequireObject("az")
sfs_turbo, err := opentelekomcloud.NewSfsTurboShareV1(ctx, "sfs-turbo", &opentelekomcloud.SfsTurboShareV1Args{
Size: pulumi.Float64(500),
ShareProto: pulumi.String("NFS"),
VpcId: pulumi.Any(vpcId),
SubnetId: pulumi.Any(subnetId),
SecurityGroupId: pulumi.Any(sgId),
AvailabilityZone: pulumi.Any(az),
})
if err != nil {
return err
}
_, err = opentelekomcloud.NewCbrVaultV3(ctx, "vault", &opentelekomcloud.CbrVaultV3Args{
Description: pulumi.String("CBR vault for terraform provider test"),
Billing: &opentelekomcloud.CbrVaultV3BillingArgs{
Size: pulumi.Float64(1000),
ObjectType: pulumi.String("turbo"),
ProtectType: pulumi.String("backup"),
ChargingMode: pulumi.String("post_paid"),
},
Resources: opentelekomcloud.CbrVaultV3ResourceArray{
&opentelekomcloud.CbrVaultV3ResourceArgs{
Id: sfs_turbo.SfsTurboShareV1Id,
Type: pulumi.String("OS::Sfs::Turbo"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var vpcId = config.RequireObject<dynamic>("vpcId");
var subnetId = config.RequireObject<dynamic>("subnetId");
var sgId = config.RequireObject<dynamic>("sgId");
var az = config.RequireObject<dynamic>("az");
var sfs_turbo = new Opentelekomcloud.SfsTurboShareV1("sfs-turbo", new()
{
Size = 500,
ShareProto = "NFS",
VpcId = vpcId,
SubnetId = subnetId,
SecurityGroupId = sgId,
AvailabilityZone = az,
});
var vault = new Opentelekomcloud.CbrVaultV3("vault", new()
{
Description = "CBR vault for terraform provider test",
Billing = new Opentelekomcloud.Inputs.CbrVaultV3BillingArgs
{
Size = 1000,
ObjectType = "turbo",
ProtectType = "backup",
ChargingMode = "post_paid",
},
Resources = new[]
{
new Opentelekomcloud.Inputs.CbrVaultV3ResourceArgs
{
Id = sfs_turbo.SfsTurboShareV1Id,
Type = "OS::Sfs::Turbo",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.SfsTurboShareV1;
import com.pulumi.opentelekomcloud.SfsTurboShareV1Args;
import com.pulumi.opentelekomcloud.CbrVaultV3;
import com.pulumi.opentelekomcloud.CbrVaultV3Args;
import com.pulumi.opentelekomcloud.inputs.CbrVaultV3BillingArgs;
import com.pulumi.opentelekomcloud.inputs.CbrVaultV3ResourceArgs;
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 vpcId = config.get("vpcId");
final var subnetId = config.get("subnetId");
final var sgId = config.get("sgId");
final var az = config.get("az");
var sfs_turbo = new SfsTurboShareV1("sfs-turbo", SfsTurboShareV1Args.builder()
.size(500)
.shareProto("NFS")
.vpcId(vpcId)
.subnetId(subnetId)
.securityGroupId(sgId)
.availabilityZone(az)
.build());
var vault = new CbrVaultV3("vault", CbrVaultV3Args.builder()
.description("CBR vault for terraform provider test")
.billing(CbrVaultV3BillingArgs.builder()
.size(1000)
.objectType("turbo")
.protectType("backup")
.chargingMode("post_paid")
.build())
.resources(CbrVaultV3ResourceArgs.builder()
.id(sfs_turbo.sfsTurboShareV1Id())
.type("OS::Sfs::Turbo")
.build())
.build());
}
}
configuration:
vpcId:
type: dynamic
subnetId:
type: dynamic
sgId:
type: dynamic
az:
type: dynamic
resources:
sfs-turbo:
type: opentelekomcloud:SfsTurboShareV1
properties:
size: 500
shareProto: NFS
vpcId: ${vpcId}
subnetId: ${subnetId}
securityGroupId: ${sgId}
availabilityZone: ${az}
vault:
type: opentelekomcloud:CbrVaultV3
properties:
description: CBR vault for terraform provider test
billing:
size: 1000
objectType: turbo
protectType: backup
chargingMode: post_paid
resources:
- id: ${["sfs-turbo"].sfsTurboShareV1Id}
type: OS::Sfs::Turbo
Vault with associated policy
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const policy = new opentelekomcloud.CbrPolicyV3("policy", {
operationType: "backup",
triggerPatterns: ["FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR,SA,SU;BYHOUR=14;BYMINUTE=00"],
operationDefinition: {
dayBackups: 1,
weekBackups: 2,
yearBackups: 3,
monthBackups: 4,
maxBackups: 10,
timezone: "UTC+03:00",
},
enabled: false,
});
const vault = new opentelekomcloud.CbrVaultV3("vault", {
description: "CBR vault for terraform provider test",
backupPolicyId: policy.cbrPolicyV3Id,
billing: {
size: 100,
objectType: "disk",
protectType: "backup",
chargingMode: "post_paid",
},
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
policy = opentelekomcloud.CbrPolicyV3("policy",
operation_type="backup",
trigger_patterns=["FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR,SA,SU;BYHOUR=14;BYMINUTE=00"],
operation_definition={
"day_backups": 1,
"week_backups": 2,
"year_backups": 3,
"month_backups": 4,
"max_backups": 10,
"timezone": "UTC+03:00",
},
enabled=False)
vault = opentelekomcloud.CbrVaultV3("vault",
description="CBR vault for terraform provider test",
backup_policy_id=policy.cbr_policy_v3_id,
billing={
"size": 100,
"object_type": "disk",
"protect_type": "backup",
"charging_mode": "post_paid",
})
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
policy, err := opentelekomcloud.NewCbrPolicyV3(ctx, "policy", &opentelekomcloud.CbrPolicyV3Args{
OperationType: pulumi.String("backup"),
TriggerPatterns: pulumi.StringArray{
pulumi.String("FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR,SA,SU;BYHOUR=14;BYMINUTE=00"),
},
OperationDefinition: &opentelekomcloud.CbrPolicyV3OperationDefinitionArgs{
DayBackups: pulumi.Float64(1),
WeekBackups: pulumi.Float64(2),
YearBackups: pulumi.Float64(3),
MonthBackups: pulumi.Float64(4),
MaxBackups: pulumi.Float64(10),
Timezone: pulumi.String("UTC+03:00"),
},
Enabled: pulumi.Bool(false),
})
if err != nil {
return err
}
_, err = opentelekomcloud.NewCbrVaultV3(ctx, "vault", &opentelekomcloud.CbrVaultV3Args{
Description: pulumi.String("CBR vault for terraform provider test"),
BackupPolicyId: policy.CbrPolicyV3Id,
Billing: &opentelekomcloud.CbrVaultV3BillingArgs{
Size: pulumi.Float64(100),
ObjectType: pulumi.String("disk"),
ProtectType: pulumi.String("backup"),
ChargingMode: pulumi.String("post_paid"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var policy = new Opentelekomcloud.CbrPolicyV3("policy", new()
{
OperationType = "backup",
TriggerPatterns = new[]
{
"FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR,SA,SU;BYHOUR=14;BYMINUTE=00",
},
OperationDefinition = new Opentelekomcloud.Inputs.CbrPolicyV3OperationDefinitionArgs
{
DayBackups = 1,
WeekBackups = 2,
YearBackups = 3,
MonthBackups = 4,
MaxBackups = 10,
Timezone = "UTC+03:00",
},
Enabled = false,
});
var vault = new Opentelekomcloud.CbrVaultV3("vault", new()
{
Description = "CBR vault for terraform provider test",
BackupPolicyId = policy.CbrPolicyV3Id,
Billing = new Opentelekomcloud.Inputs.CbrVaultV3BillingArgs
{
Size = 100,
ObjectType = "disk",
ProtectType = "backup",
ChargingMode = "post_paid",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.CbrPolicyV3;
import com.pulumi.opentelekomcloud.CbrPolicyV3Args;
import com.pulumi.opentelekomcloud.inputs.CbrPolicyV3OperationDefinitionArgs;
import com.pulumi.opentelekomcloud.CbrVaultV3;
import com.pulumi.opentelekomcloud.CbrVaultV3Args;
import com.pulumi.opentelekomcloud.inputs.CbrVaultV3BillingArgs;
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) {
var policy = new CbrPolicyV3("policy", CbrPolicyV3Args.builder()
.operationType("backup")
.triggerPatterns("FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR,SA,SU;BYHOUR=14;BYMINUTE=00")
.operationDefinition(CbrPolicyV3OperationDefinitionArgs.builder()
.dayBackups(1)
.weekBackups(2)
.yearBackups(3)
.monthBackups(4)
.maxBackups(10)
.timezone("UTC+03:00")
.build())
.enabled("false")
.build());
var vault = new CbrVaultV3("vault", CbrVaultV3Args.builder()
.description("CBR vault for terraform provider test")
.backupPolicyId(policy.cbrPolicyV3Id())
.billing(CbrVaultV3BillingArgs.builder()
.size(100)
.objectType("disk")
.protectType("backup")
.chargingMode("post_paid")
.build())
.build());
}
}
resources:
policy:
type: opentelekomcloud:CbrPolicyV3
properties:
operationType: backup
triggerPatterns:
- FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR,SA,SU;BYHOUR=14;BYMINUTE=00
operationDefinition:
dayBackups: 1
weekBackups: 2
yearBackups: 3
monthBackups: 4
maxBackups: 10
timezone: UTC+03:00
enabled: 'false'
vault:
type: opentelekomcloud:CbrVaultV3
properties:
description: CBR vault for terraform provider test
backupPolicyId: ${policy.cbrPolicyV3Id}
billing:
size: 100
objectType: disk
protectType: backup
chargingMode: post_paid
Vault with auto bind and bind rule
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const vault = new opentelekomcloud.CbrVaultV3("vault", {
autoBind: true,
billing: {
chargingMode: "post_paid",
objectType: "server",
protectType: "backup",
size: 10,
},
bindRules: [{
key: "foo",
value: "bar",
}],
description: "CBR vault for default backup policy",
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
vault = opentelekomcloud.CbrVaultV3("vault",
auto_bind=True,
billing={
"charging_mode": "post_paid",
"object_type": "server",
"protect_type": "backup",
"size": 10,
},
bind_rules=[{
"key": "foo",
"value": "bar",
}],
description="CBR vault for default backup policy")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := opentelekomcloud.NewCbrVaultV3(ctx, "vault", &opentelekomcloud.CbrVaultV3Args{
AutoBind: pulumi.Bool(true),
Billing: &opentelekomcloud.CbrVaultV3BillingArgs{
ChargingMode: pulumi.String("post_paid"),
ObjectType: pulumi.String("server"),
ProtectType: pulumi.String("backup"),
Size: pulumi.Float64(10),
},
BindRules: opentelekomcloud.CbrVaultV3BindRuleArray{
&opentelekomcloud.CbrVaultV3BindRuleArgs{
Key: pulumi.String("foo"),
Value: pulumi.String("bar"),
},
},
Description: pulumi.String("CBR vault for default backup policy"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var vault = new Opentelekomcloud.CbrVaultV3("vault", new()
{
AutoBind = true,
Billing = new Opentelekomcloud.Inputs.CbrVaultV3BillingArgs
{
ChargingMode = "post_paid",
ObjectType = "server",
ProtectType = "backup",
Size = 10,
},
BindRules = new[]
{
new Opentelekomcloud.Inputs.CbrVaultV3BindRuleArgs
{
Key = "foo",
Value = "bar",
},
},
Description = "CBR vault for default backup policy",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.CbrVaultV3;
import com.pulumi.opentelekomcloud.CbrVaultV3Args;
import com.pulumi.opentelekomcloud.inputs.CbrVaultV3BillingArgs;
import com.pulumi.opentelekomcloud.inputs.CbrVaultV3BindRuleArgs;
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) {
var vault = new CbrVaultV3("vault", CbrVaultV3Args.builder()
.autoBind(true)
.billing(CbrVaultV3BillingArgs.builder()
.chargingMode("post_paid")
.objectType("server")
.protectType("backup")
.size(10)
.build())
.bindRules(CbrVaultV3BindRuleArgs.builder()
.key("foo")
.value("bar")
.build())
.description("CBR vault for default backup policy")
.build());
}
}
resources:
vault:
type: opentelekomcloud:CbrVaultV3
properties:
autoBind: true
billing:
chargingMode: post_paid
objectType: server
protectType: backup
size: 10
bindRules:
- key: foo
value: bar
description: CBR vault for default backup policy
Create CbrVaultV3 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CbrVaultV3(name: string, args: CbrVaultV3Args, opts?: CustomResourceOptions);
@overload
def CbrVaultV3(resource_name: str,
args: CbrVaultV3Args,
opts: Optional[ResourceOptions] = None)
@overload
def CbrVaultV3(resource_name: str,
opts: Optional[ResourceOptions] = None,
billing: Optional[CbrVaultV3BillingArgs] = None,
auto_bind: Optional[bool] = None,
auto_expand: Optional[bool] = None,
backup_policy_id: Optional[str] = None,
bind_rules: Optional[Sequence[CbrVaultV3BindRuleArgs]] = None,
cbr_vault_v3_id: Optional[str] = None,
description: Optional[str] = None,
enterprise_project_id: Optional[str] = None,
name: Optional[str] = None,
resources: Optional[Sequence[CbrVaultV3ResourceArgs]] = None,
tags: Optional[Mapping[str, str]] = None)
func NewCbrVaultV3(ctx *Context, name string, args CbrVaultV3Args, opts ...ResourceOption) (*CbrVaultV3, error)
public CbrVaultV3(string name, CbrVaultV3Args args, CustomResourceOptions? opts = null)
public CbrVaultV3(String name, CbrVaultV3Args args)
public CbrVaultV3(String name, CbrVaultV3Args args, CustomResourceOptions options)
type: opentelekomcloud:CbrVaultV3
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 CbrVaultV3Args
- 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 CbrVaultV3Args
- 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 CbrVaultV3Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CbrVaultV3Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CbrVaultV3Args
- 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 cbrVaultV3Resource = new Opentelekomcloud.CbrVaultV3("cbrVaultV3Resource", new()
{
Billing = new Opentelekomcloud.Inputs.CbrVaultV3BillingArgs
{
ObjectType = "string",
Size = 0,
ProtectType = "string",
ExtraInfo =
{
{ "string", "string" },
},
PeriodType = "string",
Allocated = 0,
FrozenScene = "string",
IsAutoPay = false,
IsAutoRenew = false,
ConsistentLevel = "string",
OrderId = "string",
PeriodNum = 0,
ConsoleUrl = "string",
ProductId = "string",
CloudType = "string",
ChargingMode = "string",
SpecCode = "string",
Status = "string",
StorageUnit = "string",
Used = 0,
},
AutoBind = false,
AutoExpand = false,
BackupPolicyId = "string",
BindRules = new[]
{
new Opentelekomcloud.Inputs.CbrVaultV3BindRuleArgs
{
Key = "string",
Value = "string",
},
},
CbrVaultV3Id = "string",
Description = "string",
EnterpriseProjectId = "string",
Name = "string",
Resources = new[]
{
new Opentelekomcloud.Inputs.CbrVaultV3ResourceArgs
{
BackupCount = 0,
BackupSize = 0,
ExcludeVolumes = new[]
{
"string",
},
Id = "string",
IncludeVolumes = new[]
{
"string",
},
Name = "string",
ProtectStatus = "string",
Size = 0,
Type = "string",
},
},
Tags =
{
{ "string", "string" },
},
});
example, err := opentelekomcloud.NewCbrVaultV3(ctx, "cbrVaultV3Resource", &opentelekomcloud.CbrVaultV3Args{
Billing: &opentelekomcloud.CbrVaultV3BillingArgs{
ObjectType: pulumi.String("string"),
Size: pulumi.Float64(0),
ProtectType: pulumi.String("string"),
ExtraInfo: pulumi.StringMap{
"string": pulumi.String("string"),
},
PeriodType: pulumi.String("string"),
Allocated: pulumi.Float64(0),
FrozenScene: pulumi.String("string"),
IsAutoPay: pulumi.Bool(false),
IsAutoRenew: pulumi.Bool(false),
ConsistentLevel: pulumi.String("string"),
OrderId: pulumi.String("string"),
PeriodNum: pulumi.Float64(0),
ConsoleUrl: pulumi.String("string"),
ProductId: pulumi.String("string"),
CloudType: pulumi.String("string"),
ChargingMode: pulumi.String("string"),
SpecCode: pulumi.String("string"),
Status: pulumi.String("string"),
StorageUnit: pulumi.String("string"),
Used: pulumi.Float64(0),
},
AutoBind: pulumi.Bool(false),
AutoExpand: pulumi.Bool(false),
BackupPolicyId: pulumi.String("string"),
BindRules: opentelekomcloud.CbrVaultV3BindRuleArray{
&opentelekomcloud.CbrVaultV3BindRuleArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
CbrVaultV3Id: pulumi.String("string"),
Description: pulumi.String("string"),
EnterpriseProjectId: pulumi.String("string"),
Name: pulumi.String("string"),
Resources: opentelekomcloud.CbrVaultV3ResourceArray{
&opentelekomcloud.CbrVaultV3ResourceArgs{
BackupCount: pulumi.Float64(0),
BackupSize: pulumi.Float64(0),
ExcludeVolumes: pulumi.StringArray{
pulumi.String("string"),
},
Id: pulumi.String("string"),
IncludeVolumes: pulumi.StringArray{
pulumi.String("string"),
},
Name: pulumi.String("string"),
ProtectStatus: pulumi.String("string"),
Size: pulumi.Float64(0),
Type: pulumi.String("string"),
},
},
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var cbrVaultV3Resource = new CbrVaultV3("cbrVaultV3Resource", CbrVaultV3Args.builder()
.billing(CbrVaultV3BillingArgs.builder()
.objectType("string")
.size(0)
.protectType("string")
.extraInfo(Map.of("string", "string"))
.periodType("string")
.allocated(0)
.frozenScene("string")
.isAutoPay(false)
.isAutoRenew(false)
.consistentLevel("string")
.orderId("string")
.periodNum(0)
.consoleUrl("string")
.productId("string")
.cloudType("string")
.chargingMode("string")
.specCode("string")
.status("string")
.storageUnit("string")
.used(0)
.build())
.autoBind(false)
.autoExpand(false)
.backupPolicyId("string")
.bindRules(CbrVaultV3BindRuleArgs.builder()
.key("string")
.value("string")
.build())
.cbrVaultV3Id("string")
.description("string")
.enterpriseProjectId("string")
.name("string")
.resources(CbrVaultV3ResourceArgs.builder()
.backupCount(0)
.backupSize(0)
.excludeVolumes("string")
.id("string")
.includeVolumes("string")
.name("string")
.protectStatus("string")
.size(0)
.type("string")
.build())
.tags(Map.of("string", "string"))
.build());
cbr_vault_v3_resource = opentelekomcloud.CbrVaultV3("cbrVaultV3Resource",
billing={
"object_type": "string",
"size": 0,
"protect_type": "string",
"extra_info": {
"string": "string",
},
"period_type": "string",
"allocated": 0,
"frozen_scene": "string",
"is_auto_pay": False,
"is_auto_renew": False,
"consistent_level": "string",
"order_id": "string",
"period_num": 0,
"console_url": "string",
"product_id": "string",
"cloud_type": "string",
"charging_mode": "string",
"spec_code": "string",
"status": "string",
"storage_unit": "string",
"used": 0,
},
auto_bind=False,
auto_expand=False,
backup_policy_id="string",
bind_rules=[{
"key": "string",
"value": "string",
}],
cbr_vault_v3_id="string",
description="string",
enterprise_project_id="string",
name="string",
resources=[{
"backup_count": 0,
"backup_size": 0,
"exclude_volumes": ["string"],
"id": "string",
"include_volumes": ["string"],
"name": "string",
"protect_status": "string",
"size": 0,
"type": "string",
}],
tags={
"string": "string",
})
const cbrVaultV3Resource = new opentelekomcloud.CbrVaultV3("cbrVaultV3Resource", {
billing: {
objectType: "string",
size: 0,
protectType: "string",
extraInfo: {
string: "string",
},
periodType: "string",
allocated: 0,
frozenScene: "string",
isAutoPay: false,
isAutoRenew: false,
consistentLevel: "string",
orderId: "string",
periodNum: 0,
consoleUrl: "string",
productId: "string",
cloudType: "string",
chargingMode: "string",
specCode: "string",
status: "string",
storageUnit: "string",
used: 0,
},
autoBind: false,
autoExpand: false,
backupPolicyId: "string",
bindRules: [{
key: "string",
value: "string",
}],
cbrVaultV3Id: "string",
description: "string",
enterpriseProjectId: "string",
name: "string",
resources: [{
backupCount: 0,
backupSize: 0,
excludeVolumes: ["string"],
id: "string",
includeVolumes: ["string"],
name: "string",
protectStatus: "string",
size: 0,
type: "string",
}],
tags: {
string: "string",
},
});
type: opentelekomcloud:CbrVaultV3
properties:
autoBind: false
autoExpand: false
backupPolicyId: string
billing:
allocated: 0
chargingMode: string
cloudType: string
consistentLevel: string
consoleUrl: string
extraInfo:
string: string
frozenScene: string
isAutoPay: false
isAutoRenew: false
objectType: string
orderId: string
periodNum: 0
periodType: string
productId: string
protectType: string
size: 0
specCode: string
status: string
storageUnit: string
used: 0
bindRules:
- key: string
value: string
cbrVaultV3Id: string
description: string
enterpriseProjectId: string
name: string
resources:
- backupCount: 0
backupSize: 0
excludeVolumes:
- string
id: string
includeVolumes:
- string
name: string
protectStatus: string
size: 0
type: string
tags:
string: string
CbrVaultV3 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 CbrVaultV3 resource accepts the following input properties:
- Billing
Cbr
Vault V3Billing - Billing parameter information for creation. Billing fields:
- Auto
Bind bool - Whether automatic association is supported.
- Auto
Expand bool - Whether to automatically expand the vault capacity. Only pay-per-use vaults support this function.
- Backup
Policy stringId - Backup policy ID. If the value of this parameter is empty, automatic backup is not performed.
- Bind
Rules List<CbrVault V3Bind Rule> - Tag map, a rules for automatic association. You can only select tag keys and values from the existing ones. If there are no tags available, go to the corresponding service to create one. You can add a maximum of 5 tags for a search. If more than one tag is added, the backups containing one of the specified tags will be returned.
- Cbr
Vault stringV3Id - Description string
- User-defined vault description.
- Enterprise
Project stringId - Name string
- Vault name.
- Resources
List<Cbr
Vault V3Resource> - Associated resources. Multiple. Resource fields:
- Dictionary<string, string>
- Tag map.
- Billing
Cbr
Vault V3Billing Args - Billing parameter information for creation. Billing fields:
- Auto
Bind bool - Whether automatic association is supported.
- Auto
Expand bool - Whether to automatically expand the vault capacity. Only pay-per-use vaults support this function.
- Backup
Policy stringId - Backup policy ID. If the value of this parameter is empty, automatic backup is not performed.
- Bind
Rules []CbrVault V3Bind Rule Args - Tag map, a rules for automatic association. You can only select tag keys and values from the existing ones. If there are no tags available, go to the corresponding service to create one. You can add a maximum of 5 tags for a search. If more than one tag is added, the backups containing one of the specified tags will be returned.
- Cbr
Vault stringV3Id - Description string
- User-defined vault description.
- Enterprise
Project stringId - Name string
- Vault name.
- Resources
[]Cbr
Vault V3Resource Args - Associated resources. Multiple. Resource fields:
- map[string]string
- Tag map.
- billing
Cbr
Vault V3Billing - Billing parameter information for creation. Billing fields:
- auto
Bind Boolean - Whether automatic association is supported.
- auto
Expand Boolean - Whether to automatically expand the vault capacity. Only pay-per-use vaults support this function.
- backup
Policy StringId - Backup policy ID. If the value of this parameter is empty, automatic backup is not performed.
- bind
Rules List<CbrVault V3Bind Rule> - Tag map, a rules for automatic association. You can only select tag keys and values from the existing ones. If there are no tags available, go to the corresponding service to create one. You can add a maximum of 5 tags for a search. If more than one tag is added, the backups containing one of the specified tags will be returned.
- cbr
Vault StringV3Id - description String
- User-defined vault description.
- enterprise
Project StringId - name String
- Vault name.
- resources
List<Cbr
Vault V3Resource> - Associated resources. Multiple. Resource fields:
- Map<String,String>
- Tag map.
- billing
Cbr
Vault V3Billing - Billing parameter information for creation. Billing fields:
- auto
Bind boolean - Whether automatic association is supported.
- auto
Expand boolean - Whether to automatically expand the vault capacity. Only pay-per-use vaults support this function.
- backup
Policy stringId - Backup policy ID. If the value of this parameter is empty, automatic backup is not performed.
- bind
Rules CbrVault V3Bind Rule[] - Tag map, a rules for automatic association. You can only select tag keys and values from the existing ones. If there are no tags available, go to the corresponding service to create one. You can add a maximum of 5 tags for a search. If more than one tag is added, the backups containing one of the specified tags will be returned.
- cbr
Vault stringV3Id - description string
- User-defined vault description.
- enterprise
Project stringId - name string
- Vault name.
- resources
Cbr
Vault V3Resource[] - Associated resources. Multiple. Resource fields:
- {[key: string]: string}
- Tag map.
- billing
Cbr
Vault V3Billing Args - Billing parameter information for creation. Billing fields:
- auto_
bind bool - Whether automatic association is supported.
- auto_
expand bool - Whether to automatically expand the vault capacity. Only pay-per-use vaults support this function.
- backup_
policy_ strid - Backup policy ID. If the value of this parameter is empty, automatic backup is not performed.
- bind_
rules Sequence[CbrVault V3Bind Rule Args] - Tag map, a rules for automatic association. You can only select tag keys and values from the existing ones. If there are no tags available, go to the corresponding service to create one. You can add a maximum of 5 tags for a search. If more than one tag is added, the backups containing one of the specified tags will be returned.
- cbr_
vault_ strv3_ id - description str
- User-defined vault description.
- enterprise_
project_ strid - name str
- Vault name.
- resources
Sequence[Cbr
Vault V3Resource Args] - Associated resources. Multiple. Resource fields:
- Mapping[str, str]
- Tag map.
- billing Property Map
- Billing parameter information for creation. Billing fields:
- auto
Bind Boolean - Whether automatic association is supported.
- auto
Expand Boolean - Whether to automatically expand the vault capacity. Only pay-per-use vaults support this function.
- backup
Policy StringId - Backup policy ID. If the value of this parameter is empty, automatic backup is not performed.
- bind
Rules List<Property Map> - Tag map, a rules for automatic association. You can only select tag keys and values from the existing ones. If there are no tags available, go to the corresponding service to create one. You can add a maximum of 5 tags for a search. If more than one tag is added, the backups containing one of the specified tags will be returned.
- cbr
Vault StringV3Id - description String
- User-defined vault description.
- enterprise
Project StringId - name String
- Vault name.
- resources List<Property Map>
- Associated resources. Multiple. Resource fields:
- Map<String>
- Tag map.
Outputs
All input properties are implicitly available as output properties. Additionally, the CbrVaultV3 resource produces the following output properties:
- Created
At string - Id string
- The provider-assigned unique ID for this managed resource.
- Project
Id string - Provider
Id string - User
Id string
- Created
At string - Id string
- The provider-assigned unique ID for this managed resource.
- Project
Id string - Provider
Id string - User
Id string
- created
At String - id String
- The provider-assigned unique ID for this managed resource.
- project
Id String - provider
Id String - user
Id String
- created
At string - id string
- The provider-assigned unique ID for this managed resource.
- project
Id string - provider
Id string - user
Id string
- created_
at str - id str
- The provider-assigned unique ID for this managed resource.
- project_
id str - provider_
id str - user_
id str
- created
At String - id String
- The provider-assigned unique ID for this managed resource.
- project
Id String - provider
Id String - user
Id String
Look up Existing CbrVaultV3 Resource
Get an existing CbrVaultV3 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?: CbrVaultV3State, opts?: CustomResourceOptions): CbrVaultV3
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
auto_bind: Optional[bool] = None,
auto_expand: Optional[bool] = None,
backup_policy_id: Optional[str] = None,
billing: Optional[CbrVaultV3BillingArgs] = None,
bind_rules: Optional[Sequence[CbrVaultV3BindRuleArgs]] = None,
cbr_vault_v3_id: Optional[str] = None,
created_at: Optional[str] = None,
description: Optional[str] = None,
enterprise_project_id: Optional[str] = None,
name: Optional[str] = None,
project_id: Optional[str] = None,
provider_id: Optional[str] = None,
resources: Optional[Sequence[CbrVaultV3ResourceArgs]] = None,
tags: Optional[Mapping[str, str]] = None,
user_id: Optional[str] = None) -> CbrVaultV3
func GetCbrVaultV3(ctx *Context, name string, id IDInput, state *CbrVaultV3State, opts ...ResourceOption) (*CbrVaultV3, error)
public static CbrVaultV3 Get(string name, Input<string> id, CbrVaultV3State? state, CustomResourceOptions? opts = null)
public static CbrVaultV3 get(String name, Output<String> id, CbrVaultV3State state, CustomResourceOptions options)
resources: _: type: opentelekomcloud:CbrVaultV3 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.
- Auto
Bind bool - Whether automatic association is supported.
- Auto
Expand bool - Whether to automatically expand the vault capacity. Only pay-per-use vaults support this function.
- Backup
Policy stringId - Backup policy ID. If the value of this parameter is empty, automatic backup is not performed.
- Billing
Cbr
Vault V3Billing - Billing parameter information for creation. Billing fields:
- Bind
Rules List<CbrVault V3Bind Rule> - Tag map, a rules for automatic association. You can only select tag keys and values from the existing ones. If there are no tags available, go to the corresponding service to create one. You can add a maximum of 5 tags for a search. If more than one tag is added, the backups containing one of the specified tags will be returned.
- Cbr
Vault stringV3Id - Created
At string - Description string
- User-defined vault description.
- Enterprise
Project stringId - Name string
- Vault name.
- Project
Id string - Provider
Id string - Resources
List<Cbr
Vault V3Resource> - Associated resources. Multiple. Resource fields:
- Dictionary<string, string>
- Tag map.
- User
Id string
- Auto
Bind bool - Whether automatic association is supported.
- Auto
Expand bool - Whether to automatically expand the vault capacity. Only pay-per-use vaults support this function.
- Backup
Policy stringId - Backup policy ID. If the value of this parameter is empty, automatic backup is not performed.
- Billing
Cbr
Vault V3Billing Args - Billing parameter information for creation. Billing fields:
- Bind
Rules []CbrVault V3Bind Rule Args - Tag map, a rules for automatic association. You can only select tag keys and values from the existing ones. If there are no tags available, go to the corresponding service to create one. You can add a maximum of 5 tags for a search. If more than one tag is added, the backups containing one of the specified tags will be returned.
- Cbr
Vault stringV3Id - Created
At string - Description string
- User-defined vault description.
- Enterprise
Project stringId - Name string
- Vault name.
- Project
Id string - Provider
Id string - Resources
[]Cbr
Vault V3Resource Args - Associated resources. Multiple. Resource fields:
- map[string]string
- Tag map.
- User
Id string
- auto
Bind Boolean - Whether automatic association is supported.
- auto
Expand Boolean - Whether to automatically expand the vault capacity. Only pay-per-use vaults support this function.
- backup
Policy StringId - Backup policy ID. If the value of this parameter is empty, automatic backup is not performed.
- billing
Cbr
Vault V3Billing - Billing parameter information for creation. Billing fields:
- bind
Rules List<CbrVault V3Bind Rule> - Tag map, a rules for automatic association. You can only select tag keys and values from the existing ones. If there are no tags available, go to the corresponding service to create one. You can add a maximum of 5 tags for a search. If more than one tag is added, the backups containing one of the specified tags will be returned.
- cbr
Vault StringV3Id - created
At String - description String
- User-defined vault description.
- enterprise
Project StringId - name String
- Vault name.
- project
Id String - provider
Id String - resources
List<Cbr
Vault V3Resource> - Associated resources. Multiple. Resource fields:
- Map<String,String>
- Tag map.
- user
Id String
- auto
Bind boolean - Whether automatic association is supported.
- auto
Expand boolean - Whether to automatically expand the vault capacity. Only pay-per-use vaults support this function.
- backup
Policy stringId - Backup policy ID. If the value of this parameter is empty, automatic backup is not performed.
- billing
Cbr
Vault V3Billing - Billing parameter information for creation. Billing fields:
- bind
Rules CbrVault V3Bind Rule[] - Tag map, a rules for automatic association. You can only select tag keys and values from the existing ones. If there are no tags available, go to the corresponding service to create one. You can add a maximum of 5 tags for a search. If more than one tag is added, the backups containing one of the specified tags will be returned.
- cbr
Vault stringV3Id - created
At string - description string
- User-defined vault description.
- enterprise
Project stringId - name string
- Vault name.
- project
Id string - provider
Id string - resources
Cbr
Vault V3Resource[] - Associated resources. Multiple. Resource fields:
- {[key: string]: string}
- Tag map.
- user
Id string
- auto_
bind bool - Whether automatic association is supported.
- auto_
expand bool - Whether to automatically expand the vault capacity. Only pay-per-use vaults support this function.
- backup_
policy_ strid - Backup policy ID. If the value of this parameter is empty, automatic backup is not performed.
- billing
Cbr
Vault V3Billing Args - Billing parameter information for creation. Billing fields:
- bind_
rules Sequence[CbrVault V3Bind Rule Args] - Tag map, a rules for automatic association. You can only select tag keys and values from the existing ones. If there are no tags available, go to the corresponding service to create one. You can add a maximum of 5 tags for a search. If more than one tag is added, the backups containing one of the specified tags will be returned.
- cbr_
vault_ strv3_ id - created_
at str - description str
- User-defined vault description.
- enterprise_
project_ strid - name str
- Vault name.
- project_
id str - provider_
id str - resources
Sequence[Cbr
Vault V3Resource Args] - Associated resources. Multiple. Resource fields:
- Mapping[str, str]
- Tag map.
- user_
id str
- auto
Bind Boolean - Whether automatic association is supported.
- auto
Expand Boolean - Whether to automatically expand the vault capacity. Only pay-per-use vaults support this function.
- backup
Policy StringId - Backup policy ID. If the value of this parameter is empty, automatic backup is not performed.
- billing Property Map
- Billing parameter information for creation. Billing fields:
- bind
Rules List<Property Map> - Tag map, a rules for automatic association. You can only select tag keys and values from the existing ones. If there are no tags available, go to the corresponding service to create one. You can add a maximum of 5 tags for a search. If more than one tag is added, the backups containing one of the specified tags will be returned.
- cbr
Vault StringV3Id - created
At String - description String
- User-defined vault description.
- enterprise
Project StringId - name String
- Vault name.
- project
Id String - provider
Id String - resources List<Property Map>
- Associated resources. Multiple. Resource fields:
- Map<String>
- Tag map.
- user
Id String
Supporting Types
CbrVaultV3Billing, CbrVaultV3BillingArgs
- Object
Type string - Object type. One of
server
,disk
,turbo
. - Protect
Type string - Operation type. One of
backup
,replication
- Size double
- Capacity, in GB. Minimum
1
, maximum10485760
- Allocated double
- Allocated capacity, in MB.
- Charging
Mode string - Billing mode. Possible values are
post_paid
(pay-per-use) orpre_paid
(yearly/monthly packages). The value defaults topost_paid
. - Cloud
Type string - Cloud platform. One of
public
(default),hybrid
- Consistent
Level string - Backup specifications. The default value is
crash_consistent
- Console
Url string - Redirection URL.
- Extra
Info Dictionary<string, string> - Map of extra info.
- Frozen
Scene string - Scenario when an account is frozen.
- Is
Auto boolPay - Whether the fee is automatically deducted from the customer's account balance after an order is submitted. The non-automatic payment mode is used by default.
- Is
Auto boolRenew - Whether to automatically renew the subscription after expiration. By default, it is not renewed.
- Order
Id string - Order ID.
- Period
Num double - Required duration for the package. This parameter is mandatory if
charging_mode
is set topre_paid
. - Period
Type string - Package type. This parameter is mandatory if
charging_mode
is set topre_paid
. Possible values areyear
(yearly) ormonth
(monthly). - Product
Id string - Product ID.
- Spec
Code string - Specification code.
- Status string
- Vault status.
- Storage
Unit string - Name of the bucket for the vault.
- Used double
- Used capacity, in MB.
- Object
Type string - Object type. One of
server
,disk
,turbo
. - Protect
Type string - Operation type. One of
backup
,replication
- Size float64
- Capacity, in GB. Minimum
1
, maximum10485760
- Allocated float64
- Allocated capacity, in MB.
- Charging
Mode string - Billing mode. Possible values are
post_paid
(pay-per-use) orpre_paid
(yearly/monthly packages). The value defaults topost_paid
. - Cloud
Type string - Cloud platform. One of
public
(default),hybrid
- Consistent
Level string - Backup specifications. The default value is
crash_consistent
- Console
Url string - Redirection URL.
- Extra
Info map[string]string - Map of extra info.
- Frozen
Scene string - Scenario when an account is frozen.
- Is
Auto boolPay - Whether the fee is automatically deducted from the customer's account balance after an order is submitted. The non-automatic payment mode is used by default.
- Is
Auto boolRenew - Whether to automatically renew the subscription after expiration. By default, it is not renewed.
- Order
Id string - Order ID.
- Period
Num float64 - Required duration for the package. This parameter is mandatory if
charging_mode
is set topre_paid
. - Period
Type string - Package type. This parameter is mandatory if
charging_mode
is set topre_paid
. Possible values areyear
(yearly) ormonth
(monthly). - Product
Id string - Product ID.
- Spec
Code string - Specification code.
- Status string
- Vault status.
- Storage
Unit string - Name of the bucket for the vault.
- Used float64
- Used capacity, in MB.
- object
Type String - Object type. One of
server
,disk
,turbo
. - protect
Type String - Operation type. One of
backup
,replication
- size Double
- Capacity, in GB. Minimum
1
, maximum10485760
- allocated Double
- Allocated capacity, in MB.
- charging
Mode String - Billing mode. Possible values are
post_paid
(pay-per-use) orpre_paid
(yearly/monthly packages). The value defaults topost_paid
. - cloud
Type String - Cloud platform. One of
public
(default),hybrid
- consistent
Level String - Backup specifications. The default value is
crash_consistent
- console
Url String - Redirection URL.
- extra
Info Map<String,String> - Map of extra info.
- frozen
Scene String - Scenario when an account is frozen.
- is
Auto BooleanPay - Whether the fee is automatically deducted from the customer's account balance after an order is submitted. The non-automatic payment mode is used by default.
- is
Auto BooleanRenew - Whether to automatically renew the subscription after expiration. By default, it is not renewed.
- order
Id String - Order ID.
- period
Num Double - Required duration for the package. This parameter is mandatory if
charging_mode
is set topre_paid
. - period
Type String - Package type. This parameter is mandatory if
charging_mode
is set topre_paid
. Possible values areyear
(yearly) ormonth
(monthly). - product
Id String - Product ID.
- spec
Code String - Specification code.
- status String
- Vault status.
- storage
Unit String - Name of the bucket for the vault.
- used Double
- Used capacity, in MB.
- object
Type string - Object type. One of
server
,disk
,turbo
. - protect
Type string - Operation type. One of
backup
,replication
- size number
- Capacity, in GB. Minimum
1
, maximum10485760
- allocated number
- Allocated capacity, in MB.
- charging
Mode string - Billing mode. Possible values are
post_paid
(pay-per-use) orpre_paid
(yearly/monthly packages). The value defaults topost_paid
. - cloud
Type string - Cloud platform. One of
public
(default),hybrid
- consistent
Level string - Backup specifications. The default value is
crash_consistent
- console
Url string - Redirection URL.
- extra
Info {[key: string]: string} - Map of extra info.
- frozen
Scene string - Scenario when an account is frozen.
- is
Auto booleanPay - Whether the fee is automatically deducted from the customer's account balance after an order is submitted. The non-automatic payment mode is used by default.
- is
Auto booleanRenew - Whether to automatically renew the subscription after expiration. By default, it is not renewed.
- order
Id string - Order ID.
- period
Num number - Required duration for the package. This parameter is mandatory if
charging_mode
is set topre_paid
. - period
Type string - Package type. This parameter is mandatory if
charging_mode
is set topre_paid
. Possible values areyear
(yearly) ormonth
(monthly). - product
Id string - Product ID.
- spec
Code string - Specification code.
- status string
- Vault status.
- storage
Unit string - Name of the bucket for the vault.
- used number
- Used capacity, in MB.
- object_
type str - Object type. One of
server
,disk
,turbo
. - protect_
type str - Operation type. One of
backup
,replication
- size float
- Capacity, in GB. Minimum
1
, maximum10485760
- allocated float
- Allocated capacity, in MB.
- charging_
mode str - Billing mode. Possible values are
post_paid
(pay-per-use) orpre_paid
(yearly/monthly packages). The value defaults topost_paid
. - cloud_
type str - Cloud platform. One of
public
(default),hybrid
- consistent_
level str - Backup specifications. The default value is
crash_consistent
- console_
url str - Redirection URL.
- extra_
info Mapping[str, str] - Map of extra info.
- frozen_
scene str - Scenario when an account is frozen.
- is_
auto_ boolpay - Whether the fee is automatically deducted from the customer's account balance after an order is submitted. The non-automatic payment mode is used by default.
- is_
auto_ boolrenew - Whether to automatically renew the subscription after expiration. By default, it is not renewed.
- order_
id str - Order ID.
- period_
num float - Required duration for the package. This parameter is mandatory if
charging_mode
is set topre_paid
. - period_
type str - Package type. This parameter is mandatory if
charging_mode
is set topre_paid
. Possible values areyear
(yearly) ormonth
(monthly). - product_
id str - Product ID.
- spec_
code str - Specification code.
- status str
- Vault status.
- storage_
unit str - Name of the bucket for the vault.
- used float
- Used capacity, in MB.
- object
Type String - Object type. One of
server
,disk
,turbo
. - protect
Type String - Operation type. One of
backup
,replication
- size Number
- Capacity, in GB. Minimum
1
, maximum10485760
- allocated Number
- Allocated capacity, in MB.
- charging
Mode String - Billing mode. Possible values are
post_paid
(pay-per-use) orpre_paid
(yearly/monthly packages). The value defaults topost_paid
. - cloud
Type String - Cloud platform. One of
public
(default),hybrid
- consistent
Level String - Backup specifications. The default value is
crash_consistent
- console
Url String - Redirection URL.
- extra
Info Map<String> - Map of extra info.
- frozen
Scene String - Scenario when an account is frozen.
- is
Auto BooleanPay - Whether the fee is automatically deducted from the customer's account balance after an order is submitted. The non-automatic payment mode is used by default.
- is
Auto BooleanRenew - Whether to automatically renew the subscription after expiration. By default, it is not renewed.
- order
Id String - Order ID.
- period
Num Number - Required duration for the package. This parameter is mandatory if
charging_mode
is set topre_paid
. - period
Type String - Package type. This parameter is mandatory if
charging_mode
is set topre_paid
. Possible values areyear
(yearly) ormonth
(monthly). - product
Id String - Product ID.
- spec
Code String - Specification code.
- status String
- Vault status.
- storage
Unit String - Name of the bucket for the vault.
- used Number
- Used capacity, in MB.
CbrVaultV3BindRule, CbrVaultV3BindRuleArgs
CbrVaultV3Resource, CbrVaultV3ResourceArgs
- Backup
Count double - Backup
Size double - Exclude
Volumes List<string> - List of excluded volumes.
- Id string
- ID of the resource to be backed up.
- Include
Volumes List<string> - List of included volumes.
- Name string
- Resource name.
- Protect
Status string - Size double
- Capacity, in GB. Minimum
1
, maximum10485760
- Type string
- Type of the resource to be backed up. Possible values are
OS::Nova::Server
,OS::Cinder::Volume
andOS::Sfs::Turbo
.
- Backup
Count float64 - Backup
Size float64 - Exclude
Volumes []string - List of excluded volumes.
- Id string
- ID of the resource to be backed up.
- Include
Volumes []string - List of included volumes.
- Name string
- Resource name.
- Protect
Status string - Size float64
- Capacity, in GB. Minimum
1
, maximum10485760
- Type string
- Type of the resource to be backed up. Possible values are
OS::Nova::Server
,OS::Cinder::Volume
andOS::Sfs::Turbo
.
- backup
Count Double - backup
Size Double - exclude
Volumes List<String> - List of excluded volumes.
- id String
- ID of the resource to be backed up.
- include
Volumes List<String> - List of included volumes.
- name String
- Resource name.
- protect
Status String - size Double
- Capacity, in GB. Minimum
1
, maximum10485760
- type String
- Type of the resource to be backed up. Possible values are
OS::Nova::Server
,OS::Cinder::Volume
andOS::Sfs::Turbo
.
- backup
Count number - backup
Size number - exclude
Volumes string[] - List of excluded volumes.
- id string
- ID of the resource to be backed up.
- include
Volumes string[] - List of included volumes.
- name string
- Resource name.
- protect
Status string - size number
- Capacity, in GB. Minimum
1
, maximum10485760
- type string
- Type of the resource to be backed up. Possible values are
OS::Nova::Server
,OS::Cinder::Volume
andOS::Sfs::Turbo
.
- backup_
count float - backup_
size float - exclude_
volumes Sequence[str] - List of excluded volumes.
- id str
- ID of the resource to be backed up.
- include_
volumes Sequence[str] - List of included volumes.
- name str
- Resource name.
- protect_
status str - size float
- Capacity, in GB. Minimum
1
, maximum10485760
- type str
- Type of the resource to be backed up. Possible values are
OS::Nova::Server
,OS::Cinder::Volume
andOS::Sfs::Turbo
.
- backup
Count Number - backup
Size Number - exclude
Volumes List<String> - List of excluded volumes.
- id String
- ID of the resource to be backed up.
- include
Volumes List<String> - List of included volumes.
- name String
- Resource name.
- protect
Status String - size Number
- Capacity, in GB. Minimum
1
, maximum10485760
- type String
- Type of the resource to be backed up. Possible values are
OS::Nova::Server
,OS::Cinder::Volume
andOS::Sfs::Turbo
.
Import
Volumes can be imported using the id
, e.g.
$ pulumi import opentelekomcloud:index/cbrVaultV3:CbrVaultV3 vault ea257959-eeb1-4c10-8d33-26f0409a766b
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloud
Terraform Provider.