published on Monday, Apr 14, 2025 by flexibleenginecloud
published on Monday, Apr 14, 2025 by flexibleenginecloud
Use this data source to get available CBR vaults within FlexibleEngine.
Example Usage
Get vaults for all server type
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const test = flexibleengine.getCbrVaults({
type: "server",
});
import pulumi
import pulumi_flexibleengine as flexibleengine
test = flexibleengine.get_cbr_vaults(type="server")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := flexibleengine.GetCbrVaults(ctx, &flexibleengine.GetCbrVaultsArgs{
Type: pulumi.StringRef("server"),
}, nil)
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 test = Flexibleengine.GetCbrVaults.Invoke(new()
{
Type = "server",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.FlexibleengineFunctions;
import com.pulumi.flexibleengine.inputs.GetCbrVaultsArgs;
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 test = FlexibleengineFunctions.getCbrVaults(GetCbrVaultsArgs.builder()
.type("server")
.build());
}
}
variables:
test:
fn::invoke:
function: flexibleengine:getCbrVaults
arguments:
type: server
Using getCbrVaults
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getCbrVaults(args: GetCbrVaultsArgs, opts?: InvokeOptions): Promise<GetCbrVaultsResult>
function getCbrVaultsOutput(args: GetCbrVaultsOutputArgs, opts?: InvokeOptions): Output<GetCbrVaultsResult>def get_cbr_vaults(auto_expand_enabled: Optional[bool] = None,
consistent_level: Optional[str] = None,
enterprise_project_id: Optional[str] = None,
id: Optional[str] = None,
name: Optional[str] = None,
policy_id: Optional[str] = None,
protection_type: Optional[str] = None,
region: Optional[str] = None,
size: Optional[float] = None,
status: Optional[str] = None,
type: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCbrVaultsResult
def get_cbr_vaults_output(auto_expand_enabled: Optional[pulumi.Input[bool]] = None,
consistent_level: Optional[pulumi.Input[str]] = None,
enterprise_project_id: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
policy_id: Optional[pulumi.Input[str]] = None,
protection_type: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
size: Optional[pulumi.Input[float]] = None,
status: Optional[pulumi.Input[str]] = None,
type: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCbrVaultsResult]func GetCbrVaults(ctx *Context, args *GetCbrVaultsArgs, opts ...InvokeOption) (*GetCbrVaultsResult, error)
func GetCbrVaultsOutput(ctx *Context, args *GetCbrVaultsOutputArgs, opts ...InvokeOption) GetCbrVaultsResultOutput> Note: This function is named GetCbrVaults in the Go SDK.
public static class GetCbrVaults
{
public static Task<GetCbrVaultsResult> InvokeAsync(GetCbrVaultsArgs args, InvokeOptions? opts = null)
public static Output<GetCbrVaultsResult> Invoke(GetCbrVaultsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCbrVaultsResult> getCbrVaults(GetCbrVaultsArgs args, InvokeOptions options)
public static Output<GetCbrVaultsResult> getCbrVaults(GetCbrVaultsArgs args, InvokeOptions options)
fn::invoke:
function: flexibleengine:index/getCbrVaults:getCbrVaults
arguments:
# arguments dictionaryThe following arguments are supported:
- Auto
Expand boolEnabled - Specifies whether to enable automatic expansion of the backup protection type vault. Defaults to false.
- Consistent
Level string Specifies the consistent level (specification) of the vault. The valid values are as follows:
Only server type vaults support application consistent.
- Enterprise
Project stringId - Specifies the ID of the enterprise project to which the vault belongs.
- Id string
- The vault ID in UUID format.
- Name string
- Specifies the vault name. This parameter can contain a maximum of 64 characters, which may consist of letters, digits, underscores(_) and hyphens (-).
- Policy
Id string - Specifies the ID of the policy associated with the vault.
The
policy_idcannot be used with the vault of replicate protection type. - Protection
Type string - Specifies the protection type of the vault. The valid values are backup and replication. Vaults of type disk don't support replication.
- Region string
- Specifies the region in which to query the vaults. If omitted, the provider-level region will be used.
- Size double
- Specifies the vault sapacity, in GB. The valid value range is
1to10,485,760. - Status string
- Specifies the vault status, including available, lock, frozen and error.
- Type string
- Specifies the object type of the vault. The vaild values are as follows:
- server (Cloud Servers)
- disk (EVS Disks)
- turbo (SFS Turbo file systems)
- Auto
Expand boolEnabled - Specifies whether to enable automatic expansion of the backup protection type vault. Defaults to false.
- Consistent
Level string Specifies the consistent level (specification) of the vault. The valid values are as follows:
Only server type vaults support application consistent.
- Enterprise
Project stringId - Specifies the ID of the enterprise project to which the vault belongs.
- Id string
- The vault ID in UUID format.
- Name string
- Specifies the vault name. This parameter can contain a maximum of 64 characters, which may consist of letters, digits, underscores(_) and hyphens (-).
- Policy
Id string - Specifies the ID of the policy associated with the vault.
The
policy_idcannot be used with the vault of replicate protection type. - Protection
Type string - Specifies the protection type of the vault. The valid values are backup and replication. Vaults of type disk don't support replication.
- Region string
- Specifies the region in which to query the vaults. If omitted, the provider-level region will be used.
- Size float64
- Specifies the vault sapacity, in GB. The valid value range is
1to10,485,760. - Status string
- Specifies the vault status, including available, lock, frozen and error.
- Type string
- Specifies the object type of the vault. The vaild values are as follows:
- server (Cloud Servers)
- disk (EVS Disks)
- turbo (SFS Turbo file systems)
- auto
Expand BooleanEnabled - Specifies whether to enable automatic expansion of the backup protection type vault. Defaults to false.
- consistent
Level String Specifies the consistent level (specification) of the vault. The valid values are as follows:
Only server type vaults support application consistent.
- enterprise
Project StringId - Specifies the ID of the enterprise project to which the vault belongs.
- id String
- The vault ID in UUID format.
- name String
- Specifies the vault name. This parameter can contain a maximum of 64 characters, which may consist of letters, digits, underscores(_) and hyphens (-).
- policy
Id String - Specifies the ID of the policy associated with the vault.
The
policy_idcannot be used with the vault of replicate protection type. - protection
Type String - Specifies the protection type of the vault. The valid values are backup and replication. Vaults of type disk don't support replication.
- region String
- Specifies the region in which to query the vaults. If omitted, the provider-level region will be used.
- size Double
- Specifies the vault sapacity, in GB. The valid value range is
1to10,485,760. - status String
- Specifies the vault status, including available, lock, frozen and error.
- type String
- Specifies the object type of the vault. The vaild values are as follows:
- server (Cloud Servers)
- disk (EVS Disks)
- turbo (SFS Turbo file systems)
- auto
Expand booleanEnabled - Specifies whether to enable automatic expansion of the backup protection type vault. Defaults to false.
- consistent
Level string Specifies the consistent level (specification) of the vault. The valid values are as follows:
Only server type vaults support application consistent.
- enterprise
Project stringId - Specifies the ID of the enterprise project to which the vault belongs.
- id string
- The vault ID in UUID format.
- name string
- Specifies the vault name. This parameter can contain a maximum of 64 characters, which may consist of letters, digits, underscores(_) and hyphens (-).
- policy
Id string - Specifies the ID of the policy associated with the vault.
The
policy_idcannot be used with the vault of replicate protection type. - protection
Type string - Specifies the protection type of the vault. The valid values are backup and replication. Vaults of type disk don't support replication.
- region string
- Specifies the region in which to query the vaults. If omitted, the provider-level region will be used.
- size number
- Specifies the vault sapacity, in GB. The valid value range is
1to10,485,760. - status string
- Specifies the vault status, including available, lock, frozen and error.
- type string
- Specifies the object type of the vault. The vaild values are as follows:
- server (Cloud Servers)
- disk (EVS Disks)
- turbo (SFS Turbo file systems)
- auto_
expand_ boolenabled - Specifies whether to enable automatic expansion of the backup protection type vault. Defaults to false.
- consistent_
level str Specifies the consistent level (specification) of the vault. The valid values are as follows:
Only server type vaults support application consistent.
- enterprise_
project_ strid - Specifies the ID of the enterprise project to which the vault belongs.
- id str
- The vault ID in UUID format.
- name str
- Specifies the vault name. This parameter can contain a maximum of 64 characters, which may consist of letters, digits, underscores(_) and hyphens (-).
- policy_
id str - Specifies the ID of the policy associated with the vault.
The
policy_idcannot be used with the vault of replicate protection type. - protection_
type str - Specifies the protection type of the vault. The valid values are backup and replication. Vaults of type disk don't support replication.
- region str
- Specifies the region in which to query the vaults. If omitted, the provider-level region will be used.
- size float
- Specifies the vault sapacity, in GB. The valid value range is
1to10,485,760. - status str
- Specifies the vault status, including available, lock, frozen and error.
- type str
- Specifies the object type of the vault. The vaild values are as follows:
- server (Cloud Servers)
- disk (EVS Disks)
- turbo (SFS Turbo file systems)
- auto
Expand BooleanEnabled - Specifies whether to enable automatic expansion of the backup protection type vault. Defaults to false.
- consistent
Level String Specifies the consistent level (specification) of the vault. The valid values are as follows:
Only server type vaults support application consistent.
- enterprise
Project StringId - Specifies the ID of the enterprise project to which the vault belongs.
- id String
- The vault ID in UUID format.
- name String
- Specifies the vault name. This parameter can contain a maximum of 64 characters, which may consist of letters, digits, underscores(_) and hyphens (-).
- policy
Id String - Specifies the ID of the policy associated with the vault.
The
policy_idcannot be used with the vault of replicate protection type. - protection
Type String - Specifies the protection type of the vault. The valid values are backup and replication. Vaults of type disk don't support replication.
- region String
- Specifies the region in which to query the vaults. If omitted, the provider-level region will be used.
- size Number
- Specifies the vault sapacity, in GB. The valid value range is
1to10,485,760. - status String
- Specifies the vault status, including available, lock, frozen and error.
- type String
- Specifies the object type of the vault. The vaild values are as follows:
- server (Cloud Servers)
- disk (EVS Disks)
- turbo (SFS Turbo file systems)
getCbrVaults Result
The following output properties are available:
- Id string
- The vault ID in UUID format.
- Vaults
List<Get
Cbr Vaults Vault> - List of vault details. The object structure of each vault is documented below.
- Auto
Expand boolEnabled - Whether to enable automatic expansion of the backup protection type vault.
- Consistent
Level string - The consistent level (specification) of the vault.
- Enterprise
Project stringId - The enterprise project ID.
- Name string
- The vault name.
- Policy
Id string - The ID of the policy associated with the vault.
- Protection
Type string - The protection type of the vault.
- Region string
- Size double
- The vault capacity, in GB.
- Status string
- The vault status.
- Type string
- The object type of the vault.
- Id string
- The vault ID in UUID format.
- Vaults
[]Get
Cbr Vaults Vault - List of vault details. The object structure of each vault is documented below.
- Auto
Expand boolEnabled - Whether to enable automatic expansion of the backup protection type vault.
- Consistent
Level string - The consistent level (specification) of the vault.
- Enterprise
Project stringId - The enterprise project ID.
- Name string
- The vault name.
- Policy
Id string - The ID of the policy associated with the vault.
- Protection
Type string - The protection type of the vault.
- Region string
- Size float64
- The vault capacity, in GB.
- Status string
- The vault status.
- Type string
- The object type of the vault.
- id String
- The vault ID in UUID format.
- vaults
List<Get
Cbr Vaults Vault> - List of vault details. The object structure of each vault is documented below.
- auto
Expand BooleanEnabled - Whether to enable automatic expansion of the backup protection type vault.
- consistent
Level String - The consistent level (specification) of the vault.
- enterprise
Project StringId - The enterprise project ID.
- name String
- The vault name.
- policy
Id String - The ID of the policy associated with the vault.
- protection
Type String - The protection type of the vault.
- region String
- size Double
- The vault capacity, in GB.
- status String
- The vault status.
- type String
- The object type of the vault.
- id string
- The vault ID in UUID format.
- vaults
Get
Cbr Vaults Vault[] - List of vault details. The object structure of each vault is documented below.
- auto
Expand booleanEnabled - Whether to enable automatic expansion of the backup protection type vault.
- consistent
Level string - The consistent level (specification) of the vault.
- enterprise
Project stringId - The enterprise project ID.
- name string
- The vault name.
- policy
Id string - The ID of the policy associated with the vault.
- protection
Type string - The protection type of the vault.
- region string
- size number
- The vault capacity, in GB.
- status string
- The vault status.
- type string
- The object type of the vault.
- id str
- The vault ID in UUID format.
- vaults
Sequence[Get
Cbr Vaults Vault] - List of vault details. The object structure of each vault is documented below.
- auto_
expand_ boolenabled - Whether to enable automatic expansion of the backup protection type vault.
- consistent_
level str - The consistent level (specification) of the vault.
- enterprise_
project_ strid - The enterprise project ID.
- name str
- The vault name.
- policy_
id str - The ID of the policy associated with the vault.
- protection_
type str - The protection type of the vault.
- region str
- size float
- The vault capacity, in GB.
- status str
- The vault status.
- type str
- The object type of the vault.
- id String
- The vault ID in UUID format.
- vaults List<Property Map>
- List of vault details. The object structure of each vault is documented below.
- auto
Expand BooleanEnabled - Whether to enable automatic expansion of the backup protection type vault.
- consistent
Level String - The consistent level (specification) of the vault.
- enterprise
Project StringId - The enterprise project ID.
- name String
- The vault name.
- policy
Id String - The ID of the policy associated with the vault.
- protection
Type String - The protection type of the vault.
- region String
- size Number
- The vault capacity, in GB.
- status String
- The vault status.
- type String
- The object type of the vault.
Supporting Types
GetCbrVaultsVault
- Allocated double
- The allocated capacity of the vault, in GB.
- Auto
Expand boolEnabled - Specifies whether to enable automatic expansion of the backup protection type vault. Defaults to false.
- Consistent
Level string Specifies the consistent level (specification) of the vault. The valid values are as follows:
Only server type vaults support application consistent.
- Enterprise
Project stringId - Specifies the ID of the enterprise project to which the vault belongs.
- Id string
- The vault ID in UUID format.
- Name string
- Specifies the vault name. This parameter can contain a maximum of 64 characters, which may consist of letters, digits, underscores(_) and hyphens (-).
- Policy
Id string - Specifies the ID of the policy associated with the vault.
The
policy_idcannot be used with the vault of replicate protection type. - Protection
Type string - Specifies the protection type of the vault. The valid values are backup and replication. Vaults of type disk don't support replication.
- Resources
List<Get
Cbr Vaults Vault Resource> - The array of one or more resources to attach to the vault. The object structure is documented below.
- Size double
- Specifies the vault sapacity, in GB. The valid value range is
1to10,485,760. - Spec
Code string - The specification code.
- Status string
- Specifies the vault status, including available, lock, frozen and error.
- Storage string
- The name of the bucket for the vault.
- Dictionary<string, string>
- The key/value pairs to associate with the vault.
- Type string
- Specifies the object type of the vault. The 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
Expand boolEnabled - Specifies whether to enable automatic expansion of the backup protection type vault. Defaults to false.
- Consistent
Level string Specifies the consistent level (specification) of the vault. The valid values are as follows:
Only server type vaults support application consistent.
- Enterprise
Project stringId - Specifies the ID of the enterprise project to which the vault belongs.
- Id string
- The vault ID in UUID format.
- Name string
- Specifies the vault name. This parameter can contain a maximum of 64 characters, which may consist of letters, digits, underscores(_) and hyphens (-).
- Policy
Id string - Specifies the ID of the policy associated with the vault.
The
policy_idcannot be used with the vault of replicate protection type. - Protection
Type string - Specifies the protection type of the vault. The valid values are backup and replication. Vaults of type disk don't support replication.
- Resources
[]Get
Cbr Vaults Vault Resource - The array of one or more resources to attach to the vault. The object structure is documented below.
- Size float64
- Specifies the vault sapacity, in GB. The valid value range is
1to10,485,760. - Spec
Code string - The specification code.
- Status string
- Specifies the vault status, including available, lock, frozen and error.
- Storage string
- The name of the bucket for the vault.
- map[string]string
- The key/value pairs to associate with the vault.
- Type string
- Specifies the object type of the vault. The 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
Expand BooleanEnabled - Specifies whether to enable automatic expansion of the backup protection type vault. Defaults to false.
- consistent
Level String Specifies the consistent level (specification) of the vault. The valid values are as follows:
Only server type vaults support application consistent.
- enterprise
Project StringId - Specifies the ID of the enterprise project to which the vault belongs.
- id String
- The vault ID in UUID format.
- name String
- Specifies the vault name. This parameter can contain a maximum of 64 characters, which may consist of letters, digits, underscores(_) and hyphens (-).
- policy
Id String - Specifies the ID of the policy associated with the vault.
The
policy_idcannot be used with the vault of replicate protection type. - protection
Type String - Specifies the protection type of the vault. The valid values are backup and replication. Vaults of type disk don't support replication.
- resources
List<Get
Cbr Vaults Vault Resource> - The array of one or more resources to attach to the vault. The object structure is documented below.
- size Double
- Specifies the vault sapacity, in GB. The valid value range is
1to10,485,760. - spec
Code String - The specification code.
- status String
- Specifies the vault status, including available, lock, frozen and error.
- storage String
- The name of the bucket for the vault.
- Map<String,String>
- The key/value pairs to associate with the vault.
- type String
- Specifies the object type of the vault. The 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
Expand booleanEnabled - Specifies whether to enable automatic expansion of the backup protection type vault. Defaults to false.
- consistent
Level string Specifies the consistent level (specification) of the vault. The valid values are as follows:
Only server type vaults support application consistent.
- enterprise
Project stringId - Specifies the ID of the enterprise project to which the vault belongs.
- id string
- The vault ID in UUID format.
- name string
- Specifies the vault name. This parameter can contain a maximum of 64 characters, which may consist of letters, digits, underscores(_) and hyphens (-).
- policy
Id string - Specifies the ID of the policy associated with the vault.
The
policy_idcannot be used with the vault of replicate protection type. - protection
Type string - Specifies the protection type of the vault. The valid values are backup and replication. Vaults of type disk don't support replication.
- resources
Get
Cbr Vaults Vault Resource[] - The array of one or more resources to attach to the vault. The object structure is documented below.
- size number
- Specifies the vault sapacity, in GB. The valid value range is
1to10,485,760. - spec
Code string - The specification code.
- status string
- Specifies the vault status, including available, lock, frozen and error.
- storage string
- The name of the bucket for the vault.
- {[key: string]: string}
- The key/value pairs to associate with the vault.
- type string
- Specifies the object type of the vault. The 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_
expand_ boolenabled - Specifies whether to enable automatic expansion of the backup protection type vault. Defaults to false.
- consistent_
level str Specifies the consistent level (specification) of the vault. The valid values are as follows:
Only server type vaults support application consistent.
- enterprise_
project_ strid - Specifies the ID of the enterprise project to which the vault belongs.
- id str
- The vault ID in UUID format.
- name str
- Specifies the vault name. This parameter can contain a maximum of 64 characters, which may consist of letters, digits, underscores(_) and hyphens (-).
- policy_
id str - Specifies the ID of the policy associated with the vault.
The
policy_idcannot be used with the vault of replicate protection type. - protection_
type str - Specifies the protection type of the vault. The valid values are backup and replication. Vaults of type disk don't support replication.
- resources
Sequence[Get
Cbr Vaults Vault Resource] - The array of one or more resources to attach to the vault. The object structure is documented below.
- size float
- Specifies the vault sapacity, in GB. The valid value range is
1to10,485,760. - spec_
code str - The specification code.
- status str
- Specifies the vault status, including available, lock, frozen and error.
- storage str
- The name of the bucket for the vault.
- Mapping[str, str]
- The key/value pairs to associate with the vault.
- type str
- Specifies the object type of the vault. The 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
Expand BooleanEnabled - Specifies whether to enable automatic expansion of the backup protection type vault. Defaults to false.
- consistent
Level String Specifies the consistent level (specification) of the vault. The valid values are as follows:
Only server type vaults support application consistent.
- enterprise
Project StringId - Specifies the ID of the enterprise project to which the vault belongs.
- id String
- The vault ID in UUID format.
- name String
- Specifies the vault name. This parameter can contain a maximum of 64 characters, which may consist of letters, digits, underscores(_) and hyphens (-).
- policy
Id String - Specifies the ID of the policy associated with the vault.
The
policy_idcannot be used with the vault of replicate protection type. - protection
Type String - Specifies the protection type of the vault. The valid values are backup and replication. Vaults of type disk don't support replication.
- resources List<Property Map>
- The array of one or more resources to attach to the vault. The object structure is documented below.
- size Number
- Specifies the vault sapacity, in GB. The valid value range is
1to10,485,760. - spec
Code String - The specification code.
- status String
- Specifies the vault status, including available, lock, frozen and error.
- storage String
- The name of the bucket for the vault.
- Map<String>
- The key/value pairs to associate with the vault.
- type String
- Specifies the object type of the vault. The vaild values are as follows:
- server (Cloud Servers)
- disk (EVS Disks)
- turbo (SFS Turbo file systems)
- used Number
- The used capacity, in GB.
GetCbrVaultsVaultResource
Package Details
- Repository
- flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
- License
- Notes
- This Pulumi package is based on the
flexibleengineTerraform Provider.
published on Monday, Apr 14, 2025 by flexibleenginecloud
