azure-native.databoxedge.StorageAccount
Explore with Pulumi AI
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 (
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.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.
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: 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:
- Data
Policy string | Pulumi.Azure Native. Data Box Edge. Data Policy - Data policy of the storage Account.
- Device
Name string - The device name.
- Resource
Group stringName - The resource group name.
- Description string
- Description for the storage Account.
- Storage
Account stringCredential Id - Storage Account Credential Id
- Storage
Account stringName - The StorageAccount name.
- Storage
Account string | Pulumi.Status Azure Native. Data Box Edge. Storage Account Status - Current status of the storage account
- Data
Policy string | DataPolicy - Data policy of the storage Account.
- Device
Name string - The device name.
- Resource
Group stringName - The resource group name.
- Description string
- Description for the storage Account.
- Storage
Account stringCredential Id - Storage Account Credential Id
- Storage
Account stringName - The StorageAccount name.
- Storage
Account string | StorageStatus Account Status - Current status of the storage account
- data
Policy String | DataPolicy - Data policy of the storage Account.
- device
Name String - The device name.
- resource
Group StringName - The resource group name.
- description String
- Description for the storage Account.
- storage
Account StringCredential Id - Storage Account Credential Id
- storage
Account StringName - The StorageAccount name.
- storage
Account String | StorageStatus Account Status - Current status of the storage account
- data
Policy string | DataPolicy - Data policy of the storage Account.
- device
Name string - The device name.
- resource
Group stringName - The resource group name.
- description string
- Description for the storage Account.
- storage
Account stringCredential Id - Storage Account Credential Id
- storage
Account stringName - The StorageAccount name.
- storage
Account string | StorageStatus Account Status - Current status of the storage account
- data_
policy str | DataPolicy - Data policy of the storage Account.
- device_
name str - The device name.
- resource_
group_ strname - The resource group name.
- description str
- Description for the storage Account.
- storage_
account_ strcredential_ id - Storage Account Credential Id
- storage_
account_ strname - The StorageAccount name.
- storage_
account_ str | Storagestatus Account Status - Current status of the storage account
- data
Policy String | "Cloud" | "Local" - Data policy of the storage Account.
- device
Name String - The device name.
- resource
Group StringName - The resource group name.
- description String
- Description for the storage Account.
- storage
Account StringCredential Id - Storage Account Credential Id
- storage
Account StringName - The StorageAccount name.
- storage
Account String | "OK" | "Offline" | "Unknown" | "Updating" | "NeedsStatus Attention" - 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:
- Blob
Endpoint string - BlobEndpoint of Storage Account
- Container
Count 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.
- System
Data Pulumi.Azure Native. Data Box Edge. Outputs. System Data Response - Metadata pertaining to creation and last modification of StorageAccount
- Type string
- The hierarchical type of the object.
- Blob
Endpoint string - BlobEndpoint of Storage Account
- Container
Count 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.
- System
Data SystemData Response - Metadata pertaining to creation and last modification of StorageAccount
- Type string
- The hierarchical type of the object.
- blob
Endpoint String - BlobEndpoint of Storage Account
- container
Count 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.
- system
Data SystemData Response - Metadata pertaining to creation and last modification of StorageAccount
- type String
- The hierarchical type of the object.
- blob
Endpoint string - BlobEndpoint of Storage Account
- container
Count 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.
- system
Data SystemData Response - 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 SystemData Response - Metadata pertaining to creation and last modification of StorageAccount
- type str
- The hierarchical type of the object.
- blob
Endpoint String - BlobEndpoint of Storage Account
- container
Count 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.
- system
Data 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
- Data
Policy Cloud - Cloud
- Data
Policy Local - 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
- Needs
Attention - NeedsAttention
- Storage
Account Status OK - OK
- Storage
Account Status Offline - Offline
- Storage
Account Status Unknown - Unknown
- Storage
Account Status Updating - Updating
- Storage
Account Status Needs Attention - NeedsAttention
- OK
- OK
- Offline
- Offline
- Unknown
- Unknown
- Updating
- Updating
- Needs
Attention - NeedsAttention
- OK
- OK
- Offline
- Offline
- Unknown
- Unknown
- Updating
- Updating
- Needs
Attention - NeedsAttention
- OK
- OK
- OFFLINE
- Offline
- UNKNOWN
- Unknown
- UPDATING
- Updating
- NEEDS_ATTENTION
- NeedsAttention
- "OK"
- OK
- "Offline"
- Offline
- "Unknown"
- Unknown
- "Updating"
- Updating
- "Needs
Attention" - NeedsAttention
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - 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_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - 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