We recommend using Azure Native.
Azure Classic v6.2.0 published on Friday, Sep 27, 2024 by Pulumi
azure.netapp.getAccountEncryption
Explore with Pulumi AI
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(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:
- Netapp
Account stringId - The ID of the NetApp account where customer managed keys-based encryption is enabled.
- Encryption
Key string - The key vault encryption key.
- System
Assigned stringIdentity Principal Id - The ID of the System Assigned Manged Identity.
- User
Assigned stringIdentity Id - The ID of the User Assigned Managed Identity.
- Netapp
Account stringId - The ID of the NetApp account where customer managed keys-based encryption is enabled.
- Encryption
Key string - The key vault encryption key.
- System
Assigned stringIdentity Principal Id - The ID of the System Assigned Manged Identity.
- User
Assigned stringIdentity Id - The ID of the User Assigned Managed Identity.
- netapp
Account StringId - The ID of the NetApp account where customer managed keys-based encryption is enabled.
- encryption
Key String - The key vault encryption key.
- system
Assigned StringIdentity Principal Id - The ID of the System Assigned Manged Identity.
- user
Assigned StringIdentity Id - The ID of the User Assigned Managed Identity.
- netapp
Account stringId - The ID of the NetApp account where customer managed keys-based encryption is enabled.
- encryption
Key string - The key vault encryption key.
- system
Assigned stringIdentity Principal Id - The ID of the System Assigned Manged Identity.
- user
Assigned stringIdentity Id - The ID of the User Assigned Managed Identity.
- netapp_
account_ strid - The ID of the NetApp account where customer managed keys-based encryption is enabled.
- encryption_
key str - The key vault encryption key.
- system_
assigned_ stridentity_ principal_ id - The ID of the System Assigned Manged Identity.
- user_
assigned_ stridentity_ id - The ID of the User Assigned Managed Identity.
- netapp
Account StringId - The ID of the NetApp account where customer managed keys-based encryption is enabled.
- encryption
Key String - The key vault encryption key.
- system
Assigned StringIdentity Principal Id - The ID of the System Assigned Manged Identity.
- user
Assigned StringIdentity Id - 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.
- Netapp
Account stringId - Encryption
Key string - System
Assigned stringIdentity Principal Id - User
Assigned stringIdentity Id
- Id string
- The provider-assigned unique ID for this managed resource.
- Netapp
Account stringId - Encryption
Key string - System
Assigned stringIdentity Principal Id - User
Assigned stringIdentity Id
- id String
- The provider-assigned unique ID for this managed resource.
- netapp
Account StringId - encryption
Key String - system
Assigned StringIdentity Principal Id - user
Assigned StringIdentity Id
- id string
- The provider-assigned unique ID for this managed resource.
- netapp
Account stringId - encryption
Key string - system
Assigned stringIdentity Principal Id - user
Assigned stringIdentity Id
- id str
- The provider-assigned unique ID for this managed resource.
- netapp_
account_ strid - encryption_
key str - system_
assigned_ stridentity_ principal_ id - user_
assigned_ stridentity_ id
- id String
- The provider-assigned unique ID for this managed resource.
- netapp
Account StringId - encryption
Key String - system
Assigned StringIdentity Principal Id - user
Assigned StringIdentity Id
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.