Alibaba Cloud v3.75.0 published on Friday, Mar 7, 2025 by Pulumi
alicloud.hbr.getVaults
Explore with Pulumi AI
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.applyValue(getVaultsResult -> getVaultsResult.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.
- NameRegex string
- A regex string to filter results by Vault name.
- OutputFile string
- File name where to save data source results (after running pulumi preview).
- Status string
- The status of Vault. Valid values: CREATED,ERROR,UNKNOWN.
- VaultType 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.
- NameRegex string
- A regex string to filter results by Vault name.
- OutputFile string
- File name where to save data source results (after running pulumi preview).
- Status string
- The status of Vault. Valid values: CREATED,ERROR,UNKNOWN.
- VaultType 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.
- nameRegex String
- A regex string to filter results by Vault name.
- outputFile String
- File name where to save data source results (after running pulumi preview).
- status String
- The status of Vault. Valid values: CREATED,ERROR,UNKNOWN.
- vaultType 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.
- nameRegex string
- A regex string to filter results by Vault name.
- outputFile string
- File name where to save data source results (after running pulumi preview).
- status string
- The status of Vault. Valid values: CREATED,ERROR,UNKNOWN.
- vaultType 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.
- nameRegex String
- A regex string to filter results by Vault name.
- outputFile String
- File name where to save data source results (after running pulumi preview).
- status String
- The status of Vault. Valid values: CREATED,ERROR,UNKNOWN.
- vaultType 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> 
- NameRegex string
- OutputFile string
- Status string
- VaultType string
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Names []string
- Vaults
[]GetVaults Vault 
- NameRegex string
- OutputFile string
- Status string
- VaultType string
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- vaults
List<GetVaults Vault> 
- nameRegex String
- outputFile String
- status String
- vaultType String
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- names string[]
- vaults
GetVaults Vault[] 
- nameRegex string
- outputFile string
- status string
- vaultType string
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- names Sequence[str]
- vaults
Sequence[GetVaults 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>
- nameRegex String
- outputFile String
- status String
- vaultType String
Supporting Types
GetVaultsVault  
- BucketName string
- The name of the OSS bucket of the Vault.
- BytesDone string
- The amount of backup data. The unit is Byte.
- CreatedTime 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.
- IndexAvailable bool
- Index available.
- IndexLevel string
- Index level.
- IndexUpdate stringTime 
- Index update time.
- LatestReplication stringTime 
- The time of the last remote backup synchronization.
- PaymentType string
- Billing model, possible values:- FREEis not billed
- V1common vault billing model, including back-end storage capacity, client licenses and other billing items
- V2new version of metering mode
- AEGISBilling method for cloud security use
- UNI_BACKUPthe backup of deduplication database
- ARCHIVEarchive library.
 
- Replication bool
- Whether it is a remote backup warehouse. It's a boolean value.
- ReplicationSource stringRegion Id 
- The region ID to which the remote backup Vault belongs.
- ReplicationSource stringVault Id 
- The source vault ID of the remote backup Vault.
- Retention string
- Warehouse-level data retention days, only valid for archive libraries.
- SearchEnabled bool
- Whether to enable the backup search function.
- SourceTypes List<string>
- Status string
- The status of Vault. Valid values: CREATED,ERROR,UNKNOWN.
- StorageSize string
- Backup vault storage usage. The unit is Byte.
- UpdatedTime string
- The update time of the Vault. UNIX time in seconds.
- VaultId string
- The ID of vault, same as id.
- VaultName string
- The name of vault.
- VaultStatus stringMessage 
- Error status information of Vault. Only valid for remote backup warehouses. Only the remote backup warehouse is valid.
- VaultStorage stringClass 
- The storage class of vault. Valid values: STANDARD.
- VaultType string
- The type of Vault. Valid values: STANDARD,OTS_BACKUP.
- BucketName string
- The name of the OSS bucket of the Vault.
- BytesDone string
- The amount of backup data. The unit is Byte.
- CreatedTime 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.
- IndexAvailable bool
- Index available.
- IndexLevel string
- Index level.
- IndexUpdate stringTime 
- Index update time.
- LatestReplication stringTime 
- The time of the last remote backup synchronization.
- PaymentType string
- Billing model, possible values:- FREEis not billed
- V1common vault billing model, including back-end storage capacity, client licenses and other billing items
- V2new version of metering mode
- AEGISBilling method for cloud security use
- UNI_BACKUPthe backup of deduplication database
- ARCHIVEarchive library.
 
- Replication bool
- Whether it is a remote backup warehouse. It's a boolean value.
- ReplicationSource stringRegion Id 
- The region ID to which the remote backup Vault belongs.
- ReplicationSource stringVault Id 
- The source vault ID of the remote backup Vault.
- Retention string
- Warehouse-level data retention days, only valid for archive libraries.
- SearchEnabled bool
- Whether to enable the backup search function.
- SourceTypes []string
- Status string
- The status of Vault. Valid values: CREATED,ERROR,UNKNOWN.
- StorageSize string
- Backup vault storage usage. The unit is Byte.
- UpdatedTime string
- The update time of the Vault. UNIX time in seconds.
- VaultId string
- The ID of vault, same as id.
- VaultName string
- The name of vault.
- VaultStatus stringMessage 
- Error status information of Vault. Only valid for remote backup warehouses. Only the remote backup warehouse is valid.
- VaultStorage stringClass 
- The storage class of vault. Valid values: STANDARD.
- VaultType string
- The type of Vault. Valid values: STANDARD,OTS_BACKUP.
- bucketName String
- The name of the OSS bucket of the Vault.
- bytesDone String
- The amount of backup data. The unit is Byte.
- createdTime 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.
- indexAvailable Boolean
- Index available.
- indexLevel String
- Index level.
- indexUpdate StringTime 
- Index update time.
- latestReplication StringTime 
- The time of the last remote backup synchronization.
- paymentType String
- Billing model, possible values:- FREEis not billed
- V1common vault billing model, including back-end storage capacity, client licenses and other billing items
- V2new version of metering mode
- AEGISBilling method for cloud security use
- UNI_BACKUPthe backup of deduplication database
- ARCHIVEarchive library.
 
- replication Boolean
- Whether it is a remote backup warehouse. It's a boolean value.
- replicationSource StringRegion Id 
- The region ID to which the remote backup Vault belongs.
- replicationSource StringVault Id 
- The source vault ID of the remote backup Vault.
- retention String
- Warehouse-level data retention days, only valid for archive libraries.
- searchEnabled Boolean
- Whether to enable the backup search function.
- sourceTypes List<String>
- status String
- The status of Vault. Valid values: CREATED,ERROR,UNKNOWN.
- storageSize String
- Backup vault storage usage. The unit is Byte.
- updatedTime String
- The update time of the Vault. UNIX time in seconds.
- vaultId String
- The ID of vault, same as id.
- vaultName String
- The name of vault.
- vaultStatus StringMessage 
- Error status information of Vault. Only valid for remote backup warehouses. Only the remote backup warehouse is valid.
- vaultStorage StringClass 
- The storage class of vault. Valid values: STANDARD.
- vaultType String
- The type of Vault. Valid values: STANDARD,OTS_BACKUP.
- bucketName string
- The name of the OSS bucket of the Vault.
- bytesDone string
- The amount of backup data. The unit is Byte.
- createdTime 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.
- indexAvailable boolean
- Index available.
- indexLevel string
- Index level.
- indexUpdate stringTime 
- Index update time.
- latestReplication stringTime 
- The time of the last remote backup synchronization.
- paymentType string
- Billing model, possible values:- FREEis not billed
- V1common vault billing model, including back-end storage capacity, client licenses and other billing items
- V2new version of metering mode
- AEGISBilling method for cloud security use
- UNI_BACKUPthe backup of deduplication database
- ARCHIVEarchive library.
 
- replication boolean
- Whether it is a remote backup warehouse. It's a boolean value.
- replicationSource stringRegion Id 
- The region ID to which the remote backup Vault belongs.
- replicationSource stringVault Id 
- The source vault ID of the remote backup Vault.
- retention string
- Warehouse-level data retention days, only valid for archive libraries.
- searchEnabled boolean
- Whether to enable the backup search function.
- sourceTypes string[]
- status string
- The status of Vault. Valid values: CREATED,ERROR,UNKNOWN.
- storageSize string
- Backup vault storage usage. The unit is Byte.
- updatedTime string
- The update time of the Vault. UNIX time in seconds.
- vaultId string
- The ID of vault, same as id.
- vaultName string
- The name of vault.
- vaultStatus stringMessage 
- Error status information of Vault. Only valid for remote backup warehouses. Only the remote backup warehouse is valid.
- vaultStorage stringClass 
- The storage class of vault. Valid values: STANDARD.
- vaultType 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 billed
- V1common vault billing model, including back-end storage capacity, client licenses and other billing items
- V2new version of metering mode
- AEGISBilling method for cloud security use
- UNI_BACKUPthe backup of deduplication database
- ARCHIVEarchive 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.
- bucketName String
- The name of the OSS bucket of the Vault.
- bytesDone String
- The amount of backup data. The unit is Byte.
- createdTime 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.
- indexAvailable Boolean
- Index available.
- indexLevel String
- Index level.
- indexUpdate StringTime 
- Index update time.
- latestReplication StringTime 
- The time of the last remote backup synchronization.
- paymentType String
- Billing model, possible values:- FREEis not billed
- V1common vault billing model, including back-end storage capacity, client licenses and other billing items
- V2new version of metering mode
- AEGISBilling method for cloud security use
- UNI_BACKUPthe backup of deduplication database
- ARCHIVEarchive library.
 
- replication Boolean
- Whether it is a remote backup warehouse. It's a boolean value.
- replicationSource StringRegion Id 
- The region ID to which the remote backup Vault belongs.
- replicationSource StringVault Id 
- The source vault ID of the remote backup Vault.
- retention String
- Warehouse-level data retention days, only valid for archive libraries.
- searchEnabled Boolean
- Whether to enable the backup search function.
- sourceTypes List<String>
- status String
- The status of Vault. Valid values: CREATED,ERROR,UNKNOWN.
- storageSize String
- Backup vault storage usage. The unit is Byte.
- updatedTime String
- The update time of the Vault. UNIX time in seconds.
- vaultId String
- The ID of vault, same as id.
- vaultName String
- The name of vault.
- vaultStatus StringMessage 
- Error status information of Vault. Only valid for remote backup warehouses. Only the remote backup warehouse is valid.
- vaultStorage StringClass 
- The storage class of vault. Valid values: STANDARD.
- vaultType 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.