1. Packages
  2. Azure Classic
  3. API Docs
  4. netapp
  5. getBackupVault

We recommend using Azure Native.

Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi

azure.netapp.getBackupVault

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi

    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:

    AccountName string
    The name of the NetApp Account in which the NetApp Vault exists.
    Name string
    The name of the NetApp Backup Vault.
    ResourceGroupName string
    The name of the resource group where the NetApp Backup Vault exists.
    AccountName string
    The name of the NetApp Account in which the NetApp Vault exists.
    Name string
    The name of the NetApp Backup Vault.
    ResourceGroupName string
    The name of the resource group where the NetApp Backup Vault exists.
    accountName String
    The name of the NetApp Account in which the NetApp Vault exists.
    name String
    The name of the NetApp Backup Vault.
    resourceGroupName String
    The name of the resource group where the NetApp Backup Vault exists.
    accountName string
    The name of the NetApp Account in which the NetApp Vault exists.
    name string
    The name of the NetApp Backup Vault.
    resourceGroupName string
    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_name str
    The name of the resource group where the NetApp Backup Vault exists.
    accountName String
    The name of the NetApp Account in which the NetApp Vault exists.
    name String
    The name of the NetApp Backup Vault.
    resourceGroupName String
    The name of the resource group where the NetApp Backup Vault exists.

    getBackupVault Result

    The following output properties are available:

    AccountName string
    Id string
    The provider-assigned unique ID for this managed resource.
    Location string
    Name string
    ResourceGroupName string
    Tags Dictionary<string, string>
    AccountName string
    Id string
    The provider-assigned unique ID for this managed resource.
    Location string
    Name string
    ResourceGroupName string
    Tags map[string]string
    accountName String
    id String
    The provider-assigned unique ID for this managed resource.
    location String
    name String
    resourceGroupName String
    tags Map<String,String>
    accountName string
    id string
    The provider-assigned unique ID for this managed resource.
    location string
    name string
    resourceGroupName string
    tags {[key: string]: string}
    account_name str
    id str
    The provider-assigned unique ID for this managed resource.
    location str
    name str
    resource_group_name str
    tags Mapping[str, str]
    accountName String
    id String
    The provider-assigned unique ID for this managed resource.
    location String
    name String
    resourceGroupName String
    tags 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.
    azure logo

    We recommend using Azure Native.

    Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi