GetVault
Use this data source to access information about an existing Recovery Services Vault.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var vault = Output.Create(Azure.RecoveryServices.GetVault.InvokeAsync(new Azure.RecoveryServices.GetVaultArgs
{
Name = "tfex-recovery_vault",
ResourceGroupName = "tfex-resource_group",
}));
}
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/recoveryservices"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := recoveryservices.LookupVault(ctx, &recoveryservices.LookupVaultArgs{
Name: "tfex-recovery_vault",
ResourceGroupName: "tfex-resource_group",
}, nil)
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_azure as azure
vault = azure.recoveryservices.get_vault(name="tfex-recovery_vault",
resource_group_name="tfex-resource_group")import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const vault = pulumi.output(azure.recoveryservices.getVault({
name: "tfex-recovery_vault",
resourceGroupName: "tfex-resource_group",
}, { async: true }));Using GetVault
function getVault(args: GetVaultArgs, opts?: InvokeOptions): Promise<GetVaultResult>function get_vault(name=None, resource_group_name=None, opts=None)func LookupVault(ctx *Context, args *LookupVaultArgs, opts ...InvokeOption) (*LookupVaultResult, error)Note: This function is named
LookupVaultin the Go SDK.
public static class GetVault {
public static Task<GetVaultResult> InvokeAsync(GetVaultArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Name string
Specifies the name of the Recovery Services Vault.
- Resource
Group stringName The name of the resource group in which the Recovery Services Vault resides.
- Name string
Specifies the name of the Recovery Services Vault.
- Resource
Group stringName The name of the resource group in which the Recovery Services Vault resides.
- name string
Specifies the name of the Recovery Services Vault.
- resource
Group stringName The name of the resource group in which the Recovery Services Vault resides.
- name str
Specifies the name of the Recovery Services Vault.
- resource_
group_ strname The name of the resource group in which the Recovery Services Vault resides.
GetVault Result
The following output properties are available:
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.