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

We recommend using Azure Native.

Azure Classic v5.72.0 published on Monday, Apr 15, 2024 by Pulumi

azure.netapp.getAccountEncryption

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v5.72.0 published on Monday, Apr 15, 2024 by Pulumi

    Use this data source to access information about an existing NetApp Account Encryption Resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = azure.netapp.getAccountEncryption({
        netappAccountId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.NetApp/netAppAccounts/account1",
    });
    export const id = example.then(example => example.id);
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.netapp.get_account_encryption(netapp_account_id="/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.NetApp/netAppAccounts/account1")
    pulumi.export("id", example.id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/netapp"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := netapp.LookupAccountEncryption(ctx, &netapp.LookupAccountEncryptionArgs{
    			NetappAccountId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.NetApp/netAppAccounts/account1",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("id", 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.GetAccountEncryption.Invoke(new()
        {
            NetappAccountId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.NetApp/netAppAccounts/account1",
        });
    
        return new Dictionary<string, object?>
        {
            ["id"] = example.Apply(getAccountEncryptionResult => getAccountEncryptionResult.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.GetAccountEncryptionArgs;
    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.getAccountEncryption(GetAccountEncryptionArgs.builder()
                .netappAccountId("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.NetApp/netAppAccounts/account1")
                .build());
    
            ctx.export("id", example.applyValue(getAccountEncryptionResult -> getAccountEncryptionResult.id()));
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: azure:netapp:getAccountEncryption
          Arguments:
            netappAccountId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.NetApp/netAppAccounts/account1
    outputs:
      id: ${example.id}
    

    Using getAccountEncryption

    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 getAccountEncryption(args: GetAccountEncryptionArgs, opts?: InvokeOptions): Promise<GetAccountEncryptionResult>
    function getAccountEncryptionOutput(args: GetAccountEncryptionOutputArgs, opts?: InvokeOptions): Output<GetAccountEncryptionResult>
    def get_account_encryption(encryption_key: Optional[str] = None,
                               netapp_account_id: Optional[str] = None,
                               system_assigned_identity_principal_id: Optional[str] = None,
                               user_assigned_identity_id: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetAccountEncryptionResult
    def get_account_encryption_output(encryption_key: Optional[pulumi.Input[str]] = None,
                               netapp_account_id: Optional[pulumi.Input[str]] = None,
                               system_assigned_identity_principal_id: Optional[pulumi.Input[str]] = None,
                               user_assigned_identity_id: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetAccountEncryptionResult]
    func LookupAccountEncryption(ctx *Context, args *LookupAccountEncryptionArgs, opts ...InvokeOption) (*LookupAccountEncryptionResult, error)
    func LookupAccountEncryptionOutput(ctx *Context, args *LookupAccountEncryptionOutputArgs, opts ...InvokeOption) LookupAccountEncryptionResultOutput

    > Note: This function is named LookupAccountEncryption in the Go SDK.

    public static class GetAccountEncryption 
    {
        public static Task<GetAccountEncryptionResult> InvokeAsync(GetAccountEncryptionArgs args, InvokeOptions? opts = null)
        public static Output<GetAccountEncryptionResult> Invoke(GetAccountEncryptionInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAccountEncryptionResult> getAccountEncryption(GetAccountEncryptionArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: azure:netapp/getAccountEncryption:getAccountEncryption
      arguments:
        # arguments dictionary

    The following arguments are supported:

    NetappAccountId string
    The ID of the NetApp account where customer managed keys-based encryption is enabled.
    EncryptionKey string
    The key vault encryption key.
    SystemAssignedIdentityPrincipalId string
    The ID of the System Assigned Manged Identity.
    UserAssignedIdentityId string
    The ID of the User Assigned Managed Identity.
    NetappAccountId string
    The ID of the NetApp account where customer managed keys-based encryption is enabled.
    EncryptionKey string
    The key vault encryption key.
    SystemAssignedIdentityPrincipalId string
    The ID of the System Assigned Manged Identity.
    UserAssignedIdentityId string
    The ID of the User Assigned Managed Identity.
    netappAccountId String
    The ID of the NetApp account where customer managed keys-based encryption is enabled.
    encryptionKey String
    The key vault encryption key.
    systemAssignedIdentityPrincipalId String
    The ID of the System Assigned Manged Identity.
    userAssignedIdentityId String
    The ID of the User Assigned Managed Identity.
    netappAccountId string
    The ID of the NetApp account where customer managed keys-based encryption is enabled.
    encryptionKey string
    The key vault encryption key.
    systemAssignedIdentityPrincipalId string
    The ID of the System Assigned Manged Identity.
    userAssignedIdentityId string
    The ID of the User Assigned Managed Identity.
    netapp_account_id str
    The ID of the NetApp account where customer managed keys-based encryption is enabled.
    encryption_key str
    The key vault encryption key.
    system_assigned_identity_principal_id str
    The ID of the System Assigned Manged Identity.
    user_assigned_identity_id str
    The ID of the User Assigned Managed Identity.
    netappAccountId String
    The ID of the NetApp account where customer managed keys-based encryption is enabled.
    encryptionKey String
    The key vault encryption key.
    systemAssignedIdentityPrincipalId String
    The ID of the System Assigned Manged Identity.
    userAssignedIdentityId String
    The ID of the User Assigned Managed Identity.

    getAccountEncryption Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    NetappAccountId string
    EncryptionKey string
    SystemAssignedIdentityPrincipalId string
    UserAssignedIdentityId string
    Id string
    The provider-assigned unique ID for this managed resource.
    NetappAccountId string
    EncryptionKey string
    SystemAssignedIdentityPrincipalId string
    UserAssignedIdentityId string
    id String
    The provider-assigned unique ID for this managed resource.
    netappAccountId String
    encryptionKey String
    systemAssignedIdentityPrincipalId String
    userAssignedIdentityId String
    id string
    The provider-assigned unique ID for this managed resource.
    netappAccountId string
    encryptionKey string
    systemAssignedIdentityPrincipalId string
    userAssignedIdentityId string
    id str
    The provider-assigned unique ID for this managed resource.
    netapp_account_id str
    encryption_key str
    system_assigned_identity_principal_id str
    user_assigned_identity_id str
    id String
    The provider-assigned unique ID for this managed resource.
    netappAccountId String
    encryptionKey String
    systemAssignedIdentityPrincipalId String
    userAssignedIdentityId 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 Classic v5.72.0 published on Monday, Apr 15, 2024 by Pulumi