We recommend using Azure Native.
Azure v6.10.0 published on Tuesday, Nov 19, 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(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:
- Netapp
Account stringId - The ID of the NetApp account where customer managed keys-based encryption is enabled.
- Netapp
Account stringId - The ID of the NetApp account where customer managed keys-based encryption is enabled.
- netapp
Account StringId - The ID of the NetApp account where customer managed keys-based encryption is enabled.
- netapp
Account stringId - The ID of the NetApp account where customer managed keys-based encryption is enabled.
- netapp_
account_ strid - The ID of the NetApp account where customer managed keys-based encryption is enabled.
- netapp
Account StringId - The ID of the NetApp account where customer managed keys-based encryption is enabled.
getAccountEncryption Result
The following output properties are available:
- Encryption
Key string - Id string
- The provider-assigned unique ID for this managed resource.
- Netapp
Account stringId - System
Assigned stringIdentity Principal Id - User
Assigned stringIdentity Id
- Encryption
Key string - Id string
- The provider-assigned unique ID for this managed resource.
- Netapp
Account stringId - System
Assigned stringIdentity Principal Id - User
Assigned stringIdentity Id
- encryption
Key String - id String
- The provider-assigned unique ID for this managed resource.
- netapp
Account StringId - system
Assigned StringIdentity Principal Id - user
Assigned StringIdentity Id
- encryption
Key string - id string
- The provider-assigned unique ID for this managed resource.
- netapp
Account stringId - system
Assigned stringIdentity Principal Id - user
Assigned stringIdentity Id
- encryption_
key str - id str
- The provider-assigned unique ID for this managed resource.
- netapp_
account_ strid - system_
assigned_ stridentity_ principal_ id - user_
assigned_ stridentity_ id
- encryption
Key String - id String
- The provider-assigned unique ID for this managed resource.
- netapp
Account StringId - 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.