Alibaba Cloud v3.88.1 published on Saturday, Nov 8, 2025 by Pulumi
Alibaba Cloud v3.88.1 published on Saturday, Nov 8, 2025 by Pulumi
This data source provides the Hbr Vaults of the current Alibaba Cloud user.
NOTE: Available in v1.129.0+.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const ids = alicloud.hbr.getVaults({
nameRegex: "^my-Vault",
});
export const hbrVaultId1 = ids.then(ids => ids.vaults?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
ids = alicloud.hbr.get_vaults(name_regex="^my-Vault")
pulumi.export("hbrVaultId1", ids.vaults[0].id)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/hbr"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
ids, err := hbr.GetVaults(ctx, &hbr.GetVaultsArgs{
NameRegex: pulumi.StringRef("^my-Vault"),
}, nil)
if err != nil {
return err
}
ctx.Export("hbrVaultId1", ids.Vaults[0].Id)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var ids = AliCloud.Hbr.GetVaults.Invoke(new()
{
NameRegex = "^my-Vault",
});
return new Dictionary<string, object?>
{
["hbrVaultId1"] = ids.Apply(getVaultsResult => getVaultsResult.Vaults[0]?.Id),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.hbr.HbrFunctions;
import com.pulumi.alicloud.hbr.inputs.GetVaultsArgs;
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 ids = HbrFunctions.getVaults(GetVaultsArgs.builder()
.nameRegex("^my-Vault")
.build());
ctx.export("hbrVaultId1", ids.vaults()[0].id());
}
}
variables:
ids:
fn::invoke:
function: alicloud:hbr:getVaults
arguments:
nameRegex: ^my-Vault
outputs:
hbrVaultId1: ${ids.vaults[0].id}
Using getVaults
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 getVaults(args: GetVaultsArgs, opts?: InvokeOptions): Promise<GetVaultsResult>
function getVaultsOutput(args: GetVaultsOutputArgs, opts?: InvokeOptions): Output<GetVaultsResult>def get_vaults(ids: Optional[Sequence[str]] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
status: Optional[str] = None,
vault_type: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetVaultsResult
def get_vaults_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
status: Optional[pulumi.Input[str]] = None,
vault_type: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetVaultsResult]func GetVaults(ctx *Context, args *GetVaultsArgs, opts ...InvokeOption) (*GetVaultsResult, error)
func GetVaultsOutput(ctx *Context, args *GetVaultsOutputArgs, opts ...InvokeOption) GetVaultsResultOutput> Note: This function is named GetVaults in the Go SDK.
public static class GetVaults
{
public static Task<GetVaultsResult> InvokeAsync(GetVaultsArgs args, InvokeOptions? opts = null)
public static Output<GetVaultsResult> Invoke(GetVaultsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetVaultsResult> getVaults(GetVaultsArgs args, InvokeOptions options)
public static Output<GetVaultsResult> getVaults(GetVaultsArgs args, InvokeOptions options)
fn::invoke:
function: alicloud:hbr/getVaults:getVaults
arguments:
# arguments dictionaryThe following arguments are supported:
- Ids List<string>
- A list of Vault IDs.
- Name
Regex string - A regex string to filter results by Vault name.
- Output
File string - File name where to save data source results (after running
pulumi preview). - Status string
- The status of Vault. Valid values:
CREATED,ERROR,UNKNOWN. - Vault
Type string - VaultType. Valid values:
STANDARD,OTS_BACKUP.STANDARD- used in OSS, NAS and ECS File backup.OTS_BACKUP- used in OTS backup.
- Ids []string
- A list of Vault IDs.
- Name
Regex string - A regex string to filter results by Vault name.
- Output
File string - File name where to save data source results (after running
pulumi preview). - Status string
- The status of Vault. Valid values:
CREATED,ERROR,UNKNOWN. - Vault
Type string - VaultType. Valid values:
STANDARD,OTS_BACKUP.STANDARD- used in OSS, NAS and ECS File backup.OTS_BACKUP- used in OTS backup.
- ids List<String>
- A list of Vault IDs.
- name
Regex String - A regex string to filter results by Vault name.
- output
File String - File name where to save data source results (after running
pulumi preview). - status String
- The status of Vault. Valid values:
CREATED,ERROR,UNKNOWN. - vault
Type String - VaultType. Valid values:
STANDARD,OTS_BACKUP.STANDARD- used in OSS, NAS and ECS File backup.OTS_BACKUP- used in OTS backup.
- ids string[]
- A list of Vault IDs.
- name
Regex string - A regex string to filter results by Vault name.
- output
File string - File name where to save data source results (after running
pulumi preview). - status string
- The status of Vault. Valid values:
CREATED,ERROR,UNKNOWN. - vault
Type string - VaultType. Valid values:
STANDARD,OTS_BACKUP.STANDARD- used in OSS, NAS and ECS File backup.OTS_BACKUP- used in OTS backup.
- ids Sequence[str]
- A list of Vault IDs.
- name_
regex str - A regex string to filter results by Vault name.
- output_
file str - File name where to save data source results (after running
pulumi preview). - status str
- The status of Vault. Valid values:
CREATED,ERROR,UNKNOWN. - vault_
type str - VaultType. Valid values:
STANDARD,OTS_BACKUP.STANDARD- used in OSS, NAS and ECS File backup.OTS_BACKUP- used in OTS backup.
- ids List<String>
- A list of Vault IDs.
- name
Regex String - A regex string to filter results by Vault name.
- output
File String - File name where to save data source results (after running
pulumi preview). - status String
- The status of Vault. Valid values:
CREATED,ERROR,UNKNOWN. - vault
Type String - VaultType. Valid values:
STANDARD,OTS_BACKUP.STANDARD- used in OSS, NAS and ECS File backup.OTS_BACKUP- used in OTS backup.
getVaults Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Names List<string>
- Vaults
List<Pulumi.
Ali Cloud. Hbr. Outputs. Get Vaults Vault> - Name
Regex string - Output
File string - Status string
- Vault
Type string
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Names []string
- Vaults
[]Get
Vaults Vault - Name
Regex string - Output
File string - Status string
- Vault
Type string
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- vaults
List<Get
Vaults Vault> - name
Regex String - output
File String - status String
- vault
Type String
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- names string[]
- vaults
Get
Vaults Vault[] - name
Regex string - output
File string - status string
- vault
Type string
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- names Sequence[str]
- vaults
Sequence[Get
Vaults Vault] - name_
regex str - output_
file str - status str
- vault_
type str
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- vaults List<Property Map>
- name
Regex String - output
File String - status String
- vault
Type String
Supporting Types
GetVaultsVault
- Bucket
Name string - The name of the OSS bucket of the Vault.
- Bytes
Done string - The amount of backup data. The unit is Byte.
- Created
Time string - The creation time of the Vault. UNIX time in seconds.
- Dedup bool
- Whether to enable the deduplication function for the database backup Vault.
- Description string
- The description of the vault.
- Id string
- The ID of vault.
- Index
Available bool - Index available.
- Index
Level string - Index level.
- Index
Update stringTime - Index update time.
- Latest
Replication stringTime - The time of the last remote backup synchronization.
- Payment
Type string - Billing model, possible values:
FREEis not billedV1common vault billing model, including back-end storage capacity, client licenses and other billing itemsV2new version of metering modeAEGISBilling method for cloud security useUNI_BACKUPthe backup of deduplication databaseARCHIVEarchive library.
- Replication bool
- Whether it is a remote backup warehouse. It's a boolean value.
- Replication
Source stringRegion Id - The region ID to which the remote backup Vault belongs.
- Replication
Source stringVault Id - The source vault ID of the remote backup Vault.
- Retention string
- Warehouse-level data retention days, only valid for archive libraries.
- Search
Enabled bool - Whether to enable the backup search function.
- Source
Types List<string> - Status string
- The status of Vault. Valid values:
CREATED,ERROR,UNKNOWN. - Storage
Size string - Backup vault storage usage. The unit is Byte.
- Updated
Time string - The update time of the Vault. UNIX time in seconds.
- Vault
Id string - The ID of vault, same as
id. - Vault
Name string - The name of vault.
- Vault
Status stringMessage - Error status information of Vault. Only valid for remote backup warehouses. Only the remote backup warehouse is valid.
- Vault
Storage stringClass - The storage class of vault. Valid values:
STANDARD. - Vault
Type string - The type of Vault. Valid values:
STANDARD,OTS_BACKUP.
- Bucket
Name string - The name of the OSS bucket of the Vault.
- Bytes
Done string - The amount of backup data. The unit is Byte.
- Created
Time string - The creation time of the Vault. UNIX time in seconds.
- Dedup bool
- Whether to enable the deduplication function for the database backup Vault.
- Description string
- The description of the vault.
- Id string
- The ID of vault.
- Index
Available bool - Index available.
- Index
Level string - Index level.
- Index
Update stringTime - Index update time.
- Latest
Replication stringTime - The time of the last remote backup synchronization.
- Payment
Type string - Billing model, possible values:
FREEis not billedV1common vault billing model, including back-end storage capacity, client licenses and other billing itemsV2new version of metering modeAEGISBilling method for cloud security useUNI_BACKUPthe backup of deduplication databaseARCHIVEarchive library.
- Replication bool
- Whether it is a remote backup warehouse. It's a boolean value.
- Replication
Source stringRegion Id - The region ID to which the remote backup Vault belongs.
- Replication
Source stringVault Id - The source vault ID of the remote backup Vault.
- Retention string
- Warehouse-level data retention days, only valid for archive libraries.
- Search
Enabled bool - Whether to enable the backup search function.
- Source
Types []string - Status string
- The status of Vault. Valid values:
CREATED,ERROR,UNKNOWN. - Storage
Size string - Backup vault storage usage. The unit is Byte.
- Updated
Time string - The update time of the Vault. UNIX time in seconds.
- Vault
Id string - The ID of vault, same as
id. - Vault
Name string - The name of vault.
- Vault
Status stringMessage - Error status information of Vault. Only valid for remote backup warehouses. Only the remote backup warehouse is valid.
- Vault
Storage stringClass - The storage class of vault. Valid values:
STANDARD. - Vault
Type string - The type of Vault. Valid values:
STANDARD,OTS_BACKUP.
- bucket
Name String - The name of the OSS bucket of the Vault.
- bytes
Done String - The amount of backup data. The unit is Byte.
- created
Time String - The creation time of the Vault. UNIX time in seconds.
- dedup Boolean
- Whether to enable the deduplication function for the database backup Vault.
- description String
- The description of the vault.
- id String
- The ID of vault.
- index
Available Boolean - Index available.
- index
Level String - Index level.
- index
Update StringTime - Index update time.
- latest
Replication StringTime - The time of the last remote backup synchronization.
- payment
Type String - Billing model, possible values:
FREEis not billedV1common vault billing model, including back-end storage capacity, client licenses and other billing itemsV2new version of metering modeAEGISBilling method for cloud security useUNI_BACKUPthe backup of deduplication databaseARCHIVEarchive library.
- replication Boolean
- Whether it is a remote backup warehouse. It's a boolean value.
- replication
Source StringRegion Id - The region ID to which the remote backup Vault belongs.
- replication
Source StringVault Id - The source vault ID of the remote backup Vault.
- retention String
- Warehouse-level data retention days, only valid for archive libraries.
- search
Enabled Boolean - Whether to enable the backup search function.
- source
Types List<String> - status String
- The status of Vault. Valid values:
CREATED,ERROR,UNKNOWN. - storage
Size String - Backup vault storage usage. The unit is Byte.
- updated
Time String - The update time of the Vault. UNIX time in seconds.
- vault
Id String - The ID of vault, same as
id. - vault
Name String - The name of vault.
- vault
Status StringMessage - Error status information of Vault. Only valid for remote backup warehouses. Only the remote backup warehouse is valid.
- vault
Storage StringClass - The storage class of vault. Valid values:
STANDARD. - vault
Type String - The type of Vault. Valid values:
STANDARD,OTS_BACKUP.
- bucket
Name string - The name of the OSS bucket of the Vault.
- bytes
Done string - The amount of backup data. The unit is Byte.
- created
Time string - The creation time of the Vault. UNIX time in seconds.
- dedup boolean
- Whether to enable the deduplication function for the database backup Vault.
- description string
- The description of the vault.
- id string
- The ID of vault.
- index
Available boolean - Index available.
- index
Level string - Index level.
- index
Update stringTime - Index update time.
- latest
Replication stringTime - The time of the last remote backup synchronization.
- payment
Type string - Billing model, possible values:
FREEis not billedV1common vault billing model, including back-end storage capacity, client licenses and other billing itemsV2new version of metering modeAEGISBilling method for cloud security useUNI_BACKUPthe backup of deduplication databaseARCHIVEarchive library.
- replication boolean
- Whether it is a remote backup warehouse. It's a boolean value.
- replication
Source stringRegion Id - The region ID to which the remote backup Vault belongs.
- replication
Source stringVault Id - The source vault ID of the remote backup Vault.
- retention string
- Warehouse-level data retention days, only valid for archive libraries.
- search
Enabled boolean - Whether to enable the backup search function.
- source
Types string[] - status string
- The status of Vault. Valid values:
CREATED,ERROR,UNKNOWN. - storage
Size string - Backup vault storage usage. The unit is Byte.
- updated
Time string - The update time of the Vault. UNIX time in seconds.
- vault
Id string - The ID of vault, same as
id. - vault
Name string - The name of vault.
- vault
Status stringMessage - Error status information of Vault. Only valid for remote backup warehouses. Only the remote backup warehouse is valid.
- vault
Storage stringClass - The storage class of vault. Valid values:
STANDARD. - vault
Type string - The type of Vault. Valid values:
STANDARD,OTS_BACKUP.
- bucket_
name str - The name of the OSS bucket of the Vault.
- bytes_
done str - The amount of backup data. The unit is Byte.
- created_
time str - The creation time of the Vault. UNIX time in seconds.
- dedup bool
- Whether to enable the deduplication function for the database backup Vault.
- description str
- The description of the vault.
- id str
- The ID of vault.
- index_
available bool - Index available.
- index_
level str - Index level.
- index_
update_ strtime - Index update time.
- latest_
replication_ strtime - The time of the last remote backup synchronization.
- payment_
type str - Billing model, possible values:
FREEis not billedV1common vault billing model, including back-end storage capacity, client licenses and other billing itemsV2new version of metering modeAEGISBilling method for cloud security useUNI_BACKUPthe backup of deduplication databaseARCHIVEarchive library.
- replication bool
- Whether it is a remote backup warehouse. It's a boolean value.
- replication_
source_ strregion_ id - The region ID to which the remote backup Vault belongs.
- replication_
source_ strvault_ id - The source vault ID of the remote backup Vault.
- retention str
- Warehouse-level data retention days, only valid for archive libraries.
- search_
enabled bool - Whether to enable the backup search function.
- source_
types Sequence[str] - status str
- The status of Vault. Valid values:
CREATED,ERROR,UNKNOWN. - storage_
size str - Backup vault storage usage. The unit is Byte.
- updated_
time str - The update time of the Vault. UNIX time in seconds.
- vault_
id str - The ID of vault, same as
id. - vault_
name str - The name of vault.
- vault_
status_ strmessage - Error status information of Vault. Only valid for remote backup warehouses. Only the remote backup warehouse is valid.
- vault_
storage_ strclass - The storage class of vault. Valid values:
STANDARD. - vault_
type str - The type of Vault. Valid values:
STANDARD,OTS_BACKUP.
- bucket
Name String - The name of the OSS bucket of the Vault.
- bytes
Done String - The amount of backup data. The unit is Byte.
- created
Time String - The creation time of the Vault. UNIX time in seconds.
- dedup Boolean
- Whether to enable the deduplication function for the database backup Vault.
- description String
- The description of the vault.
- id String
- The ID of vault.
- index
Available Boolean - Index available.
- index
Level String - Index level.
- index
Update StringTime - Index update time.
- latest
Replication StringTime - The time of the last remote backup synchronization.
- payment
Type String - Billing model, possible values:
FREEis not billedV1common vault billing model, including back-end storage capacity, client licenses and other billing itemsV2new version of metering modeAEGISBilling method for cloud security useUNI_BACKUPthe backup of deduplication databaseARCHIVEarchive library.
- replication Boolean
- Whether it is a remote backup warehouse. It's a boolean value.
- replication
Source StringRegion Id - The region ID to which the remote backup Vault belongs.
- replication
Source StringVault Id - The source vault ID of the remote backup Vault.
- retention String
- Warehouse-level data retention days, only valid for archive libraries.
- search
Enabled Boolean - Whether to enable the backup search function.
- source
Types List<String> - status String
- The status of Vault. Valid values:
CREATED,ERROR,UNKNOWN. - storage
Size String - Backup vault storage usage. The unit is Byte.
- updated
Time String - The update time of the Vault. UNIX time in seconds.
- vault
Id String - The ID of vault, same as
id. - vault
Name String - The name of vault.
- vault
Status StringMessage - Error status information of Vault. Only valid for remote backup warehouses. Only the remote backup warehouse is valid.
- vault
Storage StringClass - The storage class of vault. Valid values:
STANDARD. - vault
Type String - The type of Vault. Valid values:
STANDARD,OTS_BACKUP.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.
Alibaba Cloud v3.88.1 published on Saturday, Nov 8, 2025 by Pulumi
