StorageAccount

class StorageAccount : KotlinCustomResource

Represents a Storage Account on the Data Box Edge/Gateway device. 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

StorageAccountPut

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var storageAccount = new AzureNative.DataBoxEdge.StorageAccount("storageAccount", new()
{
DataPolicy = AzureNative.DataBoxEdge.DataPolicy.Cloud,
Description = "It's an awesome storage account",
DeviceName = "testedgedevice",
ResourceGroupName = "GroupForEdgeAutomation",
StorageAccountCredentialId = "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/GroupForDataBoxEdgeAutomation/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/storageAccountCredentials/cisbvt",
StorageAccountName = "blobstorageaccount1",
StorageAccountStatus = AzureNative.DataBoxEdge.StorageAccountStatus.OK,
});
});
package main
import (
databoxedge "github.com/pulumi/pulumi-azure-native-sdk/databoxedge/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := databoxedge.NewStorageAccount(ctx, "storageAccount", &databoxedge.StorageAccountArgs{
DataPolicy: pulumi.String(databoxedge.DataPolicyCloud),
Description: pulumi.String("It's an awesome storage account"),
DeviceName: pulumi.String("testedgedevice"),
ResourceGroupName: pulumi.String("GroupForEdgeAutomation"),
StorageAccountCredentialId: pulumi.String("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/GroupForDataBoxEdgeAutomation/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/storageAccountCredentials/cisbvt"),
StorageAccountName: pulumi.String("blobstorageaccount1"),
StorageAccountStatus: pulumi.String(databoxedge.StorageAccountStatusOK),
})
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.StorageAccount;
import com.pulumi.azurenative.databoxedge.StorageAccountArgs;
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 storageAccount = new StorageAccount("storageAccount", StorageAccountArgs.builder()
.dataPolicy("Cloud")
.description("It's an awesome storage account")
.deviceName("testedgedevice")
.resourceGroupName("GroupForEdgeAutomation")
.storageAccountCredentialId("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/GroupForDataBoxEdgeAutomation/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/storageAccountCredentials/cisbvt")
.storageAccountName("blobstorageaccount1")
.storageAccountStatus("OK")
.build());
}
}

Import

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

$ pulumi import azure-native:databoxedge:StorageAccount blobstorageaccount1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/storageAccounts/{storageAccountName}

Properties

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

Link copied to clipboard
val blobEndpoint: Output<String>

BlobEndpoint of Storage Account

Link copied to clipboard
val containerCount: Output<Int>

The Container Count. Present only for Storage Accounts with DataPolicy set to Cloud.

Link copied to clipboard
val dataPolicy: Output<String>

Data policy of the storage Account.

Link copied to clipboard
val description: Output<String>?

Description for the storage Account.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

The object name.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Storage Account Credential Id

Link copied to clipboard

Current status of the storage account

Link copied to clipboard

Metadata pertaining to creation and last modification of StorageAccount

Link copied to clipboard
val type: Output<String>

The hierarchical type of the object.

Link copied to clipboard
val urn: Output<String>