1. Packages
  2. Azure Native v1
  3. API Docs
  4. databoxedge
  5. StorageAccount
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.databoxedge.StorageAccount

Explore with Pulumi AI

azure-native-v1 logo
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

    Represents a Storage Account on the Data Box Edge/Gateway device. API Version: 2020-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 = "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",
        });
    
    });
    
    package main
    
    import (
    	databoxedge "github.com/pulumi/pulumi-azure-native-sdk/databoxedge"
    	"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("Cloud"),
    			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("OK"),
    		})
    		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="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="OK")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const storageAccount = new azure_native.databoxedge.StorageAccount("storageAccount", {
        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",
    });
    
    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.

    Constructor 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:                 "string",
    	DeviceName:                 "string",
    	ResourceGroupName:          "string",
    	Description:                "string",
    	StorageAccountCredentialId: "string",
    	StorageAccountName:         "string",
    	StorageAccountStatus:       "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

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    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
    StorageAccount object on ASE device
    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
    StorageAccount object on ASE device
    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
    StorageAccount object on ASE device
    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
    StorageAccount object on ASE device
    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
    StorageAccount object on ASE device
    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
    StorageAccount object on ASE device
    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 type of identity that last modified the resource.
    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 type of identity that last modified the resource.
    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 type of identity that last modified the resource.
    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 type of identity that last modified the resource.
    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 type of identity that last modified the resource.
    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 type of identity that last modified the resource.
    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/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/GroupForDataBoxEdgeAutomation/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/storageAccounts/blobstorageaccount1 
    

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

    Package Details

    Repository
    azure-native-v1 pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native-v1 logo
    These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
    Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi