get Account Encryption
suspend fun getAccountEncryption(argument: GetAccountEncryptionPlainArgs): GetAccountEncryptionResult
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);
Content copied to clipboard
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)
Content copied to clipboard
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),
};
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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()));
}
}
Content copied to clipboard
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}
Content copied to clipboard
Return
A collection of values returned by getAccountEncryption.
Parameters
argument
A collection of arguments for invoking getAccountEncryption.
suspend fun getAccountEncryption(encryptionKey: String? = null, netappAccountId: String, systemAssignedIdentityPrincipalId: String? = null, userAssignedIdentityId: String? = null): GetAccountEncryptionResult
Return
A collection of values returned by getAccountEncryption.
Parameters
encryption Key
The key vault encryption key.
netapp Account Id
The ID of the NetApp account where customer managed keys-based encryption is enabled.
system Assigned Identity Principal Id
The ID of the System Assigned Manged Identity.
user Assigned Identity Id
The ID of the User Assigned Managed Identity.
See also
suspend fun getAccountEncryption(argument: suspend GetAccountEncryptionPlainArgsBuilder.() -> Unit): GetAccountEncryptionResult
Return
A collection of values returned by getAccountEncryption.
Parameters
argument
Builder for com.pulumi.azure.netapp.kotlin.inputs.GetAccountEncryptionPlainArgs.