We recommend using Azure Native.
Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi
azure.netapp.getBackupVault
Explore with Pulumi AI
Use this data source to access information about an existing NetApp Backup Vault.
NetApp Backup Vault Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.netapp.getBackupVault({
resourceGroupName: "example-resource-group",
accountName: "example-netappaccount",
name: "example-backupvault",
});
export const backupVaultId = example.then(example => example.id);
import pulumi
import pulumi_azure as azure
example = azure.netapp.get_backup_vault(resource_group_name="example-resource-group",
account_name="example-netappaccount",
name="example-backupvault")
pulumi.export("backupVaultId", example.id)
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/netapp"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := netapp.LookupBackupVault(ctx, &netapp.LookupBackupVaultArgs{
ResourceGroupName: "example-resource-group",
AccountName: "example-netappaccount",
Name: "example-backupvault",
}, nil)
if err != nil {
return err
}
ctx.Export("backupVaultId", example.Id)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = Azure.NetApp.GetBackupVault.Invoke(new()
{
ResourceGroupName = "example-resource-group",
AccountName = "example-netappaccount",
Name = "example-backupvault",
});
return new Dictionary<string, object?>
{
["backupVaultId"] = example.Apply(getBackupVaultResult => getBackupVaultResult.Id),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.netapp.NetappFunctions;
import com.pulumi.azure.netapp.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 = NetappFunctions.getBackupVault(GetBackupVaultArgs.builder()
.resourceGroupName("example-resource-group")
.accountName("example-netappaccount")
.name("example-backupvault")
.build());
ctx.export("backupVaultId", example.applyValue(getBackupVaultResult -> getBackupVaultResult.id()));
}
}
variables:
example:
fn::invoke:
Function: azure:netapp:getBackupVault
Arguments:
resourceGroupName: example-resource-group
accountName: example-netappaccount
name: example-backupvault
outputs:
backupVaultId: ${example.id}
Using getBackupVault
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 getBackupVault(args: GetBackupVaultArgs, opts?: InvokeOptions): Promise<GetBackupVaultResult>
function getBackupVaultOutput(args: GetBackupVaultOutputArgs, opts?: InvokeOptions): Output<GetBackupVaultResult>
def get_backup_vault(account_name: Optional[str] = None,
name: Optional[str] = None,
resource_group_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetBackupVaultResult
def get_backup_vault_output(account_name: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetBackupVaultResult]
func LookupBackupVault(ctx *Context, args *LookupBackupVaultArgs, opts ...InvokeOption) (*LookupBackupVaultResult, error)
func LookupBackupVaultOutput(ctx *Context, args *LookupBackupVaultOutputArgs, opts ...InvokeOption) LookupBackupVaultResultOutput
> Note: This function is named LookupBackupVault
in the Go SDK.
public static class GetBackupVault
{
public static Task<GetBackupVaultResult> InvokeAsync(GetBackupVaultArgs args, InvokeOptions? opts = null)
public static Output<GetBackupVaultResult> Invoke(GetBackupVaultInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetBackupVaultResult> getBackupVault(GetBackupVaultArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: azure:netapp/getBackupVault:getBackupVault
arguments:
# arguments dictionary
The following arguments are supported:
- Account
Name string - The name of the NetApp Account in which the NetApp Vault exists.
- Name string
- The name of the NetApp Backup Vault.
- Resource
Group stringName - The name of the resource group where the NetApp Backup Vault exists.
- Account
Name string - The name of the NetApp Account in which the NetApp Vault exists.
- Name string
- The name of the NetApp Backup Vault.
- Resource
Group stringName - The name of the resource group where the NetApp Backup Vault exists.
- account
Name String - The name of the NetApp Account in which the NetApp Vault exists.
- name String
- The name of the NetApp Backup Vault.
- resource
Group StringName - The name of the resource group where the NetApp Backup Vault exists.
- account
Name string - The name of the NetApp Account in which the NetApp Vault exists.
- name string
- The name of the NetApp Backup Vault.
- resource
Group stringName - The name of the resource group where the NetApp Backup Vault exists.
- account_
name str - The name of the NetApp Account in which the NetApp Vault exists.
- name str
- The name of the NetApp Backup Vault.
- resource_
group_ strname - The name of the resource group where the NetApp Backup Vault exists.
- account
Name String - The name of the NetApp Account in which the NetApp Vault exists.
- name String
- The name of the NetApp Backup Vault.
- resource
Group StringName - The name of the resource group where the NetApp Backup Vault exists.
getBackupVault Result
The following output properties are available:
- Account
Name string - Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- Name string
- Resource
Group stringName - Dictionary<string, string>
- Account
Name string - Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- Name string
- Resource
Group stringName - map[string]string
- account
Name String - id String
- The provider-assigned unique ID for this managed resource.
- location String
- name String
- resource
Group StringName - Map<String,String>
- account
Name string - id string
- The provider-assigned unique ID for this managed resource.
- location string
- name string
- resource
Group stringName - {[key: string]: string}
- account_
name str - id str
- The provider-assigned unique ID for this managed resource.
- location str
- name str
- resource_
group_ strname - Mapping[str, str]
- account
Name String - id String
- The provider-assigned unique ID for this managed resource.
- location String
- name String
- resource
Group StringName - Map<String>
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.