1. Packages
  2. Azure Native
  3. API Docs
  4. databoxedge
  5. StorageAccount
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.37.0 published on Monday, Apr 15, 2024 by Pulumi

azure-native.databoxedge.StorageAccount

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.37.0 published on Monday, Apr 15, 2024 by Pulumi

    Represents a Storage Account on the Data Box Edge/Gateway device. Azure REST API version: 2022-03-01. Prior API version in Azure Native 1.x: 2020-12-01.

    Other available API versions: 2020-05-01-preview, 2023-01-01-preview, 2023-07-01, 2023-12-01.

    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 (
    	"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.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 pulumi
    import pulumi_azure_native as azure_native
    
    storage_account = azure_native.databoxedge.StorageAccount("storageAccount",
        data_policy=azure_native.databoxedge.DataPolicy.CLOUD,
        description="It's an awesome storage account",
        device_name="testedgedevice",
        resource_group_name="GroupForEdgeAutomation",
        storage_account_credential_id="/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/GroupForDataBoxEdgeAutomation/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/storageAccountCredentials/cisbvt",
        storage_account_name="blobstorageaccount1",
        storage_account_status=azure_native.databoxedge.StorageAccountStatus.OK)
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const storageAccount = new azure_native.databoxedge.StorageAccount("storageAccount", {
        dataPolicy: azure_native.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: azure_native.databoxedge.StorageAccountStatus.OK,
    });
    
    resources:
      storageAccount:
        type: azure-native:databoxedge:StorageAccount
        properties:
          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
    

    Create StorageAccount Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new StorageAccount(name: string, args: StorageAccountArgs, opts?: CustomResourceOptions);
    @overload
    def StorageAccount(resource_name: str,
                       args: StorageAccountArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def StorageAccount(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       data_policy: Optional[Union[str, DataPolicy]] = None,
                       device_name: Optional[str] = None,
                       resource_group_name: Optional[str] = None,
                       description: Optional[str] = None,
                       storage_account_credential_id: Optional[str] = None,
                       storage_account_name: Optional[str] = None,
                       storage_account_status: Optional[Union[str, StorageAccountStatus]] = None)
    func NewStorageAccount(ctx *Context, name string, args StorageAccountArgs, opts ...ResourceOption) (*StorageAccount, error)
    public StorageAccount(string name, StorageAccountArgs args, CustomResourceOptions? opts = null)
    public StorageAccount(String name, StorageAccountArgs args)
    public StorageAccount(String name, StorageAccountArgs args, CustomResourceOptions options)
    
    type: azure-native:databoxedge:StorageAccount
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args StorageAccountArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args StorageAccountArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args StorageAccountArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args StorageAccountArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args StorageAccountArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var storageAccountResource = new AzureNative.DataBoxEdge.StorageAccount("storageAccountResource", new()
    {
        DataPolicy = "string",
        DeviceName = "string",
        ResourceGroupName = "string",
        Description = "string",
        StorageAccountCredentialId = "string",
        StorageAccountName = "string",
        StorageAccountStatus = "string",
    });
    
    example, err := databoxedge.NewStorageAccount(ctx, "storageAccountResource", &databoxedge.StorageAccountArgs{
    DataPolicy: pulumi.String("string"),
    DeviceName: pulumi.String("string"),
    ResourceGroupName: pulumi.String("string"),
    Description: pulumi.String("string"),
    StorageAccountCredentialId: pulumi.String("string"),
    StorageAccountName: pulumi.String("string"),
    StorageAccountStatus: pulumi.String("string"),
    })
    
    var storageAccountResource = new StorageAccount("storageAccountResource", StorageAccountArgs.builder()        
        .dataPolicy("string")
        .deviceName("string")
        .resourceGroupName("string")
        .description("string")
        .storageAccountCredentialId("string")
        .storageAccountName("string")
        .storageAccountStatus("string")
        .build());
    
    storage_account_resource = azure_native.databoxedge.StorageAccount("storageAccountResource",
        data_policy="string",
        device_name="string",
        resource_group_name="string",
        description="string",
        storage_account_credential_id="string",
        storage_account_name="string",
        storage_account_status="string")
    
    const storageAccountResource = new azure_native.databoxedge.StorageAccount("storageAccountResource", {
        dataPolicy: "string",
        deviceName: "string",
        resourceGroupName: "string",
        description: "string",
        storageAccountCredentialId: "string",
        storageAccountName: "string",
        storageAccountStatus: "string",
    });
    
    type: azure-native:databoxedge:StorageAccount
    properties:
        dataPolicy: string
        description: string
        deviceName: string
        resourceGroupName: string
        storageAccountCredentialId: string
        storageAccountName: string
        storageAccountStatus: string
    

    StorageAccount Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The StorageAccount resource accepts the following input properties:

    DataPolicy string | Pulumi.AzureNative.DataBoxEdge.DataPolicy
    Data policy of the storage Account.
    DeviceName string
    The device name.
    ResourceGroupName string
    The resource group name.
    Description string
    Description for the storage Account.
    StorageAccountCredentialId string
    Storage Account Credential Id
    StorageAccountName string
    The StorageAccount name.
    StorageAccountStatus string | Pulumi.AzureNative.DataBoxEdge.StorageAccountStatus
    Current status of the storage account
    DataPolicy string | DataPolicy
    Data policy of the storage Account.
    DeviceName string
    The device name.
    ResourceGroupName string
    The resource group name.
    Description string
    Description for the storage Account.
    StorageAccountCredentialId string
    Storage Account Credential Id
    StorageAccountName string
    The StorageAccount name.
    StorageAccountStatus string | StorageAccountStatus
    Current status of the storage account
    dataPolicy String | DataPolicy
    Data policy of the storage Account.
    deviceName String
    The device name.
    resourceGroupName String
    The resource group name.
    description String
    Description for the storage Account.
    storageAccountCredentialId String
    Storage Account Credential Id
    storageAccountName String
    The StorageAccount name.
    storageAccountStatus String | StorageAccountStatus
    Current status of the storage account
    dataPolicy string | DataPolicy
    Data policy of the storage Account.
    deviceName string
    The device name.
    resourceGroupName string
    The resource group name.
    description string
    Description for the storage Account.
    storageAccountCredentialId string
    Storage Account Credential Id
    storageAccountName string
    The StorageAccount name.
    storageAccountStatus string | StorageAccountStatus
    Current status of the storage account
    data_policy str | DataPolicy
    Data policy of the storage Account.
    device_name str
    The device name.
    resource_group_name str
    The resource group name.
    description str
    Description for the storage Account.
    storage_account_credential_id str
    Storage Account Credential Id
    storage_account_name str
    The StorageAccount name.
    storage_account_status str | StorageAccountStatus
    Current status of the storage account
    dataPolicy String | "Cloud" | "Local"
    Data policy of the storage Account.
    deviceName String
    The device name.
    resourceGroupName String
    The resource group name.
    description String
    Description for the storage Account.
    storageAccountCredentialId String
    Storage Account Credential Id
    storageAccountName String
    The StorageAccount name.
    storageAccountStatus String | "OK" | "Offline" | "Unknown" | "Updating" | "NeedsAttention"
    Current status of the storage account

    Outputs

    All input properties are implicitly available as output properties. Additionally, the StorageAccount resource produces the following output properties:

    BlobEndpoint string
    BlobEndpoint of Storage Account
    ContainerCount int
    The Container Count. Present only for Storage Accounts with DataPolicy set to Cloud.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The object name.
    SystemData Pulumi.AzureNative.DataBoxEdge.Outputs.SystemDataResponse
    Metadata pertaining to creation and last modification of StorageAccount
    Type string
    The hierarchical type of the object.
    BlobEndpoint string
    BlobEndpoint of Storage Account
    ContainerCount int
    The Container Count. Present only for Storage Accounts with DataPolicy set to Cloud.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The object name.
    SystemData SystemDataResponse
    Metadata pertaining to creation and last modification of StorageAccount
    Type string
    The hierarchical type of the object.
    blobEndpoint String
    BlobEndpoint of Storage Account
    containerCount Integer
    The Container Count. Present only for Storage Accounts with DataPolicy set to Cloud.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The object name.
    systemData SystemDataResponse
    Metadata pertaining to creation and last modification of StorageAccount
    type String
    The hierarchical type of the object.
    blobEndpoint string
    BlobEndpoint of Storage Account
    containerCount number
    The Container Count. Present only for Storage Accounts with DataPolicy set to Cloud.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The object name.
    systemData SystemDataResponse
    Metadata pertaining to creation and last modification of StorageAccount
    type string
    The hierarchical type of the object.
    blob_endpoint str
    BlobEndpoint of Storage Account
    container_count int
    The Container Count. Present only for Storage Accounts with DataPolicy set to Cloud.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The object name.
    system_data SystemDataResponse
    Metadata pertaining to creation and last modification of StorageAccount
    type str
    The hierarchical type of the object.
    blobEndpoint String
    BlobEndpoint of Storage Account
    containerCount Number
    The Container Count. Present only for Storage Accounts with DataPolicy set to Cloud.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The object name.
    systemData Property Map
    Metadata pertaining to creation and last modification of StorageAccount
    type String
    The hierarchical type of the object.

    Supporting Types

    DataPolicy, DataPolicyArgs

    Cloud
    Cloud
    Local
    Local
    DataPolicyCloud
    Cloud
    DataPolicyLocal
    Local
    Cloud
    Cloud
    Local
    Local
    Cloud
    Cloud
    Local
    Local
    CLOUD
    Cloud
    LOCAL
    Local
    "Cloud"
    Cloud
    "Local"
    Local

    StorageAccountStatus, StorageAccountStatusArgs

    OK
    OK
    Offline
    Offline
    Unknown
    Unknown
    Updating
    Updating
    NeedsAttention
    NeedsAttention
    StorageAccountStatusOK
    OK
    StorageAccountStatusOffline
    Offline
    StorageAccountStatusUnknown
    Unknown
    StorageAccountStatusUpdating
    Updating
    StorageAccountStatusNeedsAttention
    NeedsAttention
    OK
    OK
    Offline
    Offline
    Unknown
    Unknown
    Updating
    Updating
    NeedsAttention
    NeedsAttention
    OK
    OK
    Offline
    Offline
    Unknown
    Unknown
    Updating
    Updating
    NeedsAttention
    NeedsAttention
    OK
    OK
    OFFLINE
    Offline
    UNKNOWN
    Unknown
    UPDATING
    Updating
    NEEDS_ATTENTION
    NeedsAttention
    "OK"
    OK
    "Offline"
    Offline
    "Unknown"
    Unknown
    "Updating"
    Updating
    "NeedsAttention"
    NeedsAttention

    SystemDataResponse, SystemDataResponseArgs

    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.
    createdAt string
    The timestamp of resource creation (UTC).
    createdBy string
    The identity that created the resource.
    createdByType string
    The type of identity that created the resource.
    lastModifiedAt string
    The timestamp of resource last modification (UTC)
    lastModifiedBy string
    The identity that last modified the resource.
    lastModifiedByType string
    The type of identity that last modified the resource.
    created_at str
    The timestamp of resource creation (UTC).
    created_by str
    The identity that created the resource.
    created_by_type str
    The type of identity that created the resource.
    last_modified_at str
    The timestamp of resource last modification (UTC)
    last_modified_by str
    The identity that last modified the resource.
    last_modified_by_type str
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.

    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} 
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.37.0 published on Monday, Apr 15, 2024 by Pulumi