getVault

suspend fun getVault(argument: GetVaultPlainArgs): GetVaultResult

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

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.recoveryservices.RecoveryservicesFunctions;
import com.pulumi.azure.recoveryservices.inputs.GetVaultArgs;
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 vault = RecoveryservicesFunctions.getVault(GetVaultArgs.builder()
.name("tfex-recovery_vault")
.resourceGroupName("tfex-resource_group")
.build());
}
}

Return

A collection of values returned by getVault.

Parameters

argument

A collection of arguments for invoking getVault.


suspend fun getVault(name: String, resourceGroupName: String): GetVaultResult

Return

A collection of values returned by getVault.

See also

Parameters

name

Specifies the name of the Recovery Services Vault.

resourceGroupName

The name of the resource group in which the Recovery Services Vault resides.


suspend fun getVault(argument: suspend GetVaultPlainArgsBuilder.() -> Unit): GetVaultResult

Return

A collection of values returned by getVault.

See also

Parameters

argument

Builder for com.pulumi.azure.recoveryservices.kotlin.inputs.GetVaultPlainArgs.