getBackupVault

Use this data source to access information about an existing Backup Vault.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.dataprotection.DataprotectionFunctions;
import com.pulumi.azure.dataprotection.inputs.GetBackupVaultArgs;
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 example = DataprotectionFunctions.getBackupVault(GetBackupVaultArgs.builder()
.name("existing-backup-vault")
.resourceGroupName("existing-resource-group")
.build());
ctx.export("azurermDataProtectionBackupVaultId", data.azurerm_vpn_gateway().example().id());
ctx.export("azurermDataProtectionBackupVaultPrincipalId", example.applyValue(getBackupVaultResult -> getBackupVaultResult.identities()[0].principalId()));
}
}

Return

A collection of values returned by getBackupVault.

Parameters

argument

A collection of arguments for invoking getBackupVault.


suspend fun getBackupVault(name: String, resourceGroupName: String): GetBackupVaultResult

Return

A collection of values returned by getBackupVault.

See also

Parameters

name

Specifies the name of the Backup Vault.

resourceGroupName

The name of the Resource Group where the Backup Vault exists.


Return

A collection of values returned by getBackupVault.

See also

Parameters

argument

Builder for com.pulumi.azure.dataprotection.kotlin.inputs.GetBackupVaultPlainArgs.