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

We recommend using Azure Native.

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

azure.netapp.getAccountEncryption

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 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/v6/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(netapp_account_id: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetAccountEncryptionResult
    def get_account_encryption_output(netapp_account_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.
    NetappAccountId string
    The ID of the NetApp account where customer managed keys-based encryption is enabled.
    netappAccountId String
    The ID of the NetApp account where customer managed keys-based encryption is enabled.
    netappAccountId string
    The ID of the NetApp account where customer managed keys-based encryption is enabled.
    netapp_account_id str
    The ID of the NetApp account where customer managed keys-based encryption is enabled.
    netappAccountId String
    The ID of the NetApp account where customer managed keys-based encryption is enabled.

    getAccountEncryption Result

    The following output properties are available:

    EncryptionKey string
    Id string
    The provider-assigned unique ID for this managed resource.
    NetappAccountId string
    SystemAssignedIdentityPrincipalId string
    UserAssignedIdentityId string
    EncryptionKey string
    Id string
    The provider-assigned unique ID for this managed resource.
    NetappAccountId string
    SystemAssignedIdentityPrincipalId string
    UserAssignedIdentityId string
    encryptionKey String
    id String
    The provider-assigned unique ID for this managed resource.
    netappAccountId String
    systemAssignedIdentityPrincipalId String
    userAssignedIdentityId String
    encryptionKey string
    id string
    The provider-assigned unique ID for this managed resource.
    netappAccountId string
    systemAssignedIdentityPrincipalId string
    userAssignedIdentityId string
    encryption_key str
    id str
    The provider-assigned unique ID for this managed resource.
    netapp_account_id str
    system_assigned_identity_principal_id str
    user_assigned_identity_id str
    encryptionKey String
    id String
    The provider-assigned unique ID for this managed resource.
    netappAccountId 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 v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi