StorageAccountCredentialArgs

data class StorageAccountCredentialArgs(val accountKey: Output<AsymmetricEncryptedSecretArgs>? = null, val accountType: Output<Either<String, AccountType>>? = null, val alias: Output<String>? = null, val blobDomainName: Output<String>? = null, val connectionString: Output<String>? = null, val deviceName: Output<String>? = null, val name: Output<String>? = null, val resourceGroupName: Output<String>? = null, val sslStatus: Output<Either<String, SSLStatus>>? = null, val storageAccountId: Output<String>? = null, val userName: Output<String>? = null) : ConvertibleToJava<StorageAccountCredentialArgs>

The storage account credential. Uses Azure REST API version 2023-07-01. In version 2.x of the Azure Native provider, it used API version 2022-03-01. Other available API versions: 2022-03-01, 2022-04-01-preview, 2022-12-01-preview, 2023-01-01-preview, 2023-12-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native databoxedge [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

SACPut

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var storageAccountCredential = new AzureNative.DataBoxEdge.StorageAccountCredential("storageAccountCredential", new()
{
AccountKey = new AzureNative.DataBoxEdge.Inputs.AsymmetricEncryptedSecretArgs
{
EncryptionAlgorithm = AzureNative.DataBoxEdge.EncryptionAlgorithm.AES256,
EncryptionCertThumbprint = "2A9D8D6BE51574B5461230AEF02F162C5F01AD31",
Value = "lAeZEYi6rNP1/EyNaVUYmTSZEYyaIaWmwUsGwek0+xiZj54GM9Ue9/UA2ed/ClC03wuSit2XzM/cLRU5eYiFBwks23rGwiQOr3sruEL2a74EjPD050xYjA6M1I2hu/w2yjVHhn5j+DbXS4Xzi+rHHNZK3DgfDO3PkbECjPck+PbpSBjy9+6Mrjcld5DIZhUAeMlMHrFlg+WKRKB14o/og56u5/xX6WKlrMLEQ+y6E18dUwvWs2elTNoVO8PBE8SM/CfooX4AMNvaNdSObNBPdP+F6Lzc556nFNWXrBLRt0vC7s9qTiVRO4x/qCNaK/B4y7IqXMllwQFf4Np9UQ2ECA==",
},
AccountType = AzureNative.DataBoxEdge.AccountType.BlobStorage,
Alias = "sac1",
DeviceName = "testedgedevice",
Name = "sac1",
ResourceGroupName = "GroupForEdgeAutomation",
SslStatus = AzureNative.DataBoxEdge.SSLStatus.Disabled,
UserName = "cisbvt",
});
});
package main
import (
databoxedge "github.com/pulumi/pulumi-azure-native-sdk/databoxedge/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := databoxedge.NewStorageAccountCredential(ctx, "storageAccountCredential", &databoxedge.StorageAccountCredentialArgs{
AccountKey: &databoxedge.AsymmetricEncryptedSecretArgs{
EncryptionAlgorithm: pulumi.String(databoxedge.EncryptionAlgorithmAES256),
EncryptionCertThumbprint: pulumi.String("2A9D8D6BE51574B5461230AEF02F162C5F01AD31"),
Value: pulumi.String("lAeZEYi6rNP1/EyNaVUYmTSZEYyaIaWmwUsGwek0+xiZj54GM9Ue9/UA2ed/ClC03wuSit2XzM/cLRU5eYiFBwks23rGwiQOr3sruEL2a74EjPD050xYjA6M1I2hu/w2yjVHhn5j+DbXS4Xzi+rHHNZK3DgfDO3PkbECjPck+PbpSBjy9+6Mrjcld5DIZhUAeMlMHrFlg+WKRKB14o/og56u5/xX6WKlrMLEQ+y6E18dUwvWs2elTNoVO8PBE8SM/CfooX4AMNvaNdSObNBPdP+F6Lzc556nFNWXrBLRt0vC7s9qTiVRO4x/qCNaK/B4y7IqXMllwQFf4Np9UQ2ECA=="),
},
AccountType: pulumi.String(databoxedge.AccountTypeBlobStorage),
Alias: pulumi.String("sac1"),
DeviceName: pulumi.String("testedgedevice"),
Name: pulumi.String("sac1"),
ResourceGroupName: pulumi.String("GroupForEdgeAutomation"),
SslStatus: pulumi.String(databoxedge.SSLStatusDisabled),
UserName: pulumi.String("cisbvt"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.databoxedge.StorageAccountCredential;
import com.pulumi.azurenative.databoxedge.StorageAccountCredentialArgs;
import com.pulumi.azurenative.databoxedge.inputs.AsymmetricEncryptedSecretArgs;
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) {
var storageAccountCredential = new StorageAccountCredential("storageAccountCredential", StorageAccountCredentialArgs.builder()
.accountKey(AsymmetricEncryptedSecretArgs.builder()
.encryptionAlgorithm("AES256")
.encryptionCertThumbprint("2A9D8D6BE51574B5461230AEF02F162C5F01AD31")
.value("lAeZEYi6rNP1/EyNaVUYmTSZEYyaIaWmwUsGwek0+xiZj54GM9Ue9/UA2ed/ClC03wuSit2XzM/cLRU5eYiFBwks23rGwiQOr3sruEL2a74EjPD050xYjA6M1I2hu/w2yjVHhn5j+DbXS4Xzi+rHHNZK3DgfDO3PkbECjPck+PbpSBjy9+6Mrjcld5DIZhUAeMlMHrFlg+WKRKB14o/og56u5/xX6WKlrMLEQ+y6E18dUwvWs2elTNoVO8PBE8SM/CfooX4AMNvaNdSObNBPdP+F6Lzc556nFNWXrBLRt0vC7s9qTiVRO4x/qCNaK/B4y7IqXMllwQFf4Np9UQ2ECA==")
.build())
.accountType("BlobStorage")
.alias("sac1")
.deviceName("testedgedevice")
.name("sac1")
.resourceGroupName("GroupForEdgeAutomation")
.sslStatus("Disabled")
.userName("cisbvt")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:databoxedge:StorageAccountCredential sac1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/storageAccountCredentials/{name}

Constructors

Link copied to clipboard
constructor(accountKey: Output<AsymmetricEncryptedSecretArgs>? = null, accountType: Output<Either<String, AccountType>>? = null, alias: Output<String>? = null, blobDomainName: Output<String>? = null, connectionString: Output<String>? = null, deviceName: Output<String>? = null, name: Output<String>? = null, resourceGroupName: Output<String>? = null, sslStatus: Output<Either<String, SSLStatus>>? = null, storageAccountId: Output<String>? = null, userName: Output<String>? = null)

Properties

Link copied to clipboard

Encrypted storage key.

Link copied to clipboard
val accountType: Output<Either<String, AccountType>>? = null

Type of storage accessed on the storage account.

Link copied to clipboard
val alias: Output<String>? = null

Alias for the storage account.

Link copied to clipboard
val blobDomainName: Output<String>? = null

Blob end point for private clouds.

Link copied to clipboard
val connectionString: Output<String>? = null

Connection string for the storage account. Use this string if username and account key are not specified.

Link copied to clipboard
val deviceName: Output<String>? = null

The device name.

Link copied to clipboard
val name: Output<String>? = null

The storage account credential name.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The resource group name.

Link copied to clipboard
val sslStatus: Output<Either<String, SSLStatus>>? = null

Signifies whether SSL needs to be enabled or not.

Link copied to clipboard
val storageAccountId: Output<String>? = null

Id of the storage account.

Link copied to clipboard
val userName: Output<String>? = null

Username for the storage account.

Functions

Link copied to clipboard
open override fun toJava(): StorageAccountCredentialArgs