GetAccount
Use this data source to access information about an existing Storage Account.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Azure.Storage.GetAccount.InvokeAsync(new Azure.Storage.GetAccountArgs
{
Name = "packerimages",
ResourceGroupName = "packer-storage",
}));
this.StorageAccountTier = example.Apply(example => example.AccountTier);
}
[Output("storageAccountTier")]
public Output<string> StorageAccountTier { get; set; }
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/storage"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
opt0 := "packer-storage"
example, err := storage.LookupAccount(ctx, &storage.LookupAccountArgs{
Name: "packerimages",
ResourceGroupName: &opt0,
}, nil)
if err != nil {
return err
}
ctx.Export("storageAccountTier", example.AccountTier)
return nil
})
}import pulumi
import pulumi_azure as azure
example = azure.storage.get_account(name="packerimages",
resource_group_name="packer-storage")
pulumi.export("storageAccountTier", example.account_tier)import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.storage.getAccount({
name: "packerimages",
resourceGroupName: "packer-storage",
});
export const storageAccountTier = example.then(example => example.accountTier);Using GetAccount
function getAccount(args: GetAccountArgs, opts?: InvokeOptions): Promise<GetAccountResult>function get_account(name=None, resource_group_name=None, opts=None)func LookupAccount(ctx *Context, args *LookupAccountArgs, opts ...InvokeOption) (*LookupAccountResult, error)Note: This function is named
LookupAccountin the Go SDK.
public static class GetAccount {
public static Task<GetAccountResult> InvokeAsync(GetAccountArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Name string
Specifies the name of the Storage Account
- Resource
Group stringName Specifies the name of the resource group the Storage Account is located in.
- Name string
Specifies the name of the Storage Account
- Resource
Group stringName Specifies the name of the resource group the Storage Account is located in.
- name string
Specifies the name of the Storage Account
- resource
Group stringName Specifies the name of the resource group the Storage Account is located in.
- name str
Specifies the name of the Storage Account
- resource_
group_ strname Specifies the name of the resource group the Storage Account is located in.
GetAccount Result
The following output properties are available:
- Access
Tier string The access tier for
BlobStorageaccounts.- Account
Kind string The Kind of account.
- Account
Replication stringType The type of replication used for this storage account.
- Account
Tier string The Tier of this storage account.
- Custom
Domains List<GetAccount Custom Domain> A
custom_domainblock as documented below.- Enable
Https boolTraffic Only Is traffic only allowed via HTTPS? See here for more information.
- Id string
The provider-assigned unique ID for this managed resource.
- Is
Hns boolEnabled Is Hierarchical Namespace enabled?
- Location string
The Azure location where the Storage Account exists
- Name string
The Custom Domain Name used for the Storage Account.
- Primary
Access stringKey The primary access key for the Storage Account.
- Primary
Blob stringConnection String The connection string associated with the primary blob location
- Primary
Blob stringEndpoint The endpoint URL for blob storage in the primary location.
- Primary
Blob stringHost The hostname with port if applicable for blob storage in the primary location.
- Primary
Connection stringString The connection string associated with the primary location
- Primary
Dfs stringEndpoint The endpoint URL for DFS storage in the primary location.
- Primary
Dfs stringHost The hostname with port if applicable for DFS storage in the primary location.
- Primary
File stringEndpoint The endpoint URL for file storage in the primary location.
- Primary
File stringHost The hostname with port if applicable for file storage in the primary location.
- Primary
Location string The primary location of the Storage Account.
- Primary
Queue stringEndpoint The endpoint URL for queue storage in the primary location.
- Primary
Queue stringHost The hostname with port if applicable for queue storage in the primary location.
- Primary
Table stringEndpoint The endpoint URL for table storage in the primary location.
- Primary
Table stringHost The hostname with port if applicable for table storage in the primary location.
- Primary
Web stringEndpoint The endpoint URL for web storage in the primary location.
- Primary
Web stringHost The hostname with port if applicable for web storage in the primary location.
- Resource
Group stringName - Secondary
Access stringKey The secondary access key for the Storage Account.
- Secondary
Blob stringConnection String The connection string associated with the secondary blob location
- Secondary
Blob stringEndpoint The endpoint URL for blob storage in the secondary location.
- Secondary
Blob stringHost The hostname with port if applicable for blob storage in the secondary location.
- Secondary
Connection stringString The connection string associated with the secondary location
- Secondary
Dfs stringEndpoint The endpoint URL for DFS storage in the secondary location.
- Secondary
Dfs stringHost The hostname with port if applicable for DFS storage in the secondary location.
- Secondary
File stringEndpoint The endpoint URL for file storage in the secondary location.
- Secondary
File stringHost The hostname with port if applicable for file storage in the secondary location.
- Secondary
Location string The secondary location of the Storage Account.
- Secondary
Queue stringEndpoint The endpoint URL for queue storage in the secondary location.
- Secondary
Queue stringHost The hostname with port if applicable for queue storage in the secondary location.
- Secondary
Table stringEndpoint The endpoint URL for table storage in the secondary location.
- Secondary
Table stringHost The hostname with port if applicable for table storage in the secondary location.
- Secondary
Web stringEndpoint The endpoint URL for web storage in the secondary location.
- Secondary
Web stringHost The hostname with port if applicable for web storage in the secondary location.
- Dictionary<string, string>
A mapping of tags to assigned to the resource.
- Access
Tier string The access tier for
BlobStorageaccounts.- Account
Kind string The Kind of account.
- Account
Replication stringType The type of replication used for this storage account.
- Account
Tier string The Tier of this storage account.
- Custom
Domains []GetAccount Custom Domain A
custom_domainblock as documented below.- Enable
Https boolTraffic Only Is traffic only allowed via HTTPS? See here for more information.
- Id string
The provider-assigned unique ID for this managed resource.
- Is
Hns boolEnabled Is Hierarchical Namespace enabled?
- Location string
The Azure location where the Storage Account exists
- Name string
The Custom Domain Name used for the Storage Account.
- Primary
Access stringKey The primary access key for the Storage Account.
- Primary
Blob stringConnection String The connection string associated with the primary blob location
- Primary
Blob stringEndpoint The endpoint URL for blob storage in the primary location.
- Primary
Blob stringHost The hostname with port if applicable for blob storage in the primary location.
- Primary
Connection stringString The connection string associated with the primary location
- Primary
Dfs stringEndpoint The endpoint URL for DFS storage in the primary location.
- Primary
Dfs stringHost The hostname with port if applicable for DFS storage in the primary location.
- Primary
File stringEndpoint The endpoint URL for file storage in the primary location.
- Primary
File stringHost The hostname with port if applicable for file storage in the primary location.
- Primary
Location string The primary location of the Storage Account.
- Primary
Queue stringEndpoint The endpoint URL for queue storage in the primary location.
- Primary
Queue stringHost The hostname with port if applicable for queue storage in the primary location.
- Primary
Table stringEndpoint The endpoint URL for table storage in the primary location.
- Primary
Table stringHost The hostname with port if applicable for table storage in the primary location.
- Primary
Web stringEndpoint The endpoint URL for web storage in the primary location.
- Primary
Web stringHost The hostname with port if applicable for web storage in the primary location.
- Resource
Group stringName - Secondary
Access stringKey The secondary access key for the Storage Account.
- Secondary
Blob stringConnection String The connection string associated with the secondary blob location
- Secondary
Blob stringEndpoint The endpoint URL for blob storage in the secondary location.
- Secondary
Blob stringHost The hostname with port if applicable for blob storage in the secondary location.
- Secondary
Connection stringString The connection string associated with the secondary location
- Secondary
Dfs stringEndpoint The endpoint URL for DFS storage in the secondary location.
- Secondary
Dfs stringHost The hostname with port if applicable for DFS storage in the secondary location.
- Secondary
File stringEndpoint The endpoint URL for file storage in the secondary location.
- Secondary
File stringHost The hostname with port if applicable for file storage in the secondary location.
- Secondary
Location string The secondary location of the Storage Account.
- Secondary
Queue stringEndpoint The endpoint URL for queue storage in the secondary location.
- Secondary
Queue stringHost The hostname with port if applicable for queue storage in the secondary location.
- Secondary
Table stringEndpoint The endpoint URL for table storage in the secondary location.
- Secondary
Table stringHost The hostname with port if applicable for table storage in the secondary location.
- Secondary
Web stringEndpoint The endpoint URL for web storage in the secondary location.
- Secondary
Web stringHost The hostname with port if applicable for web storage in the secondary location.
- map[string]string
A mapping of tags to assigned to the resource.
- access
Tier string The access tier for
BlobStorageaccounts.- account
Kind string The Kind of account.
- account
Replication stringType The type of replication used for this storage account.
- account
Tier string The Tier of this storage account.
- custom
Domains GetAccount Custom Domain[] A
custom_domainblock as documented below.- enable
Https booleanTraffic Only Is traffic only allowed via HTTPS? See here for more information.
- id string
The provider-assigned unique ID for this managed resource.
- is
Hns booleanEnabled Is Hierarchical Namespace enabled?
- location string
The Azure location where the Storage Account exists
- name string
The Custom Domain Name used for the Storage Account.
- primary
Access stringKey The primary access key for the Storage Account.
- primary
Blob stringConnection String The connection string associated with the primary blob location
- primary
Blob stringEndpoint The endpoint URL for blob storage in the primary location.
- primary
Blob stringHost The hostname with port if applicable for blob storage in the primary location.
- primary
Connection stringString The connection string associated with the primary location
- primary
Dfs stringEndpoint The endpoint URL for DFS storage in the primary location.
- primary
Dfs stringHost The hostname with port if applicable for DFS storage in the primary location.
- primary
File stringEndpoint The endpoint URL for file storage in the primary location.
- primary
File stringHost The hostname with port if applicable for file storage in the primary location.
- primary
Location string The primary location of the Storage Account.
- primary
Queue stringEndpoint The endpoint URL for queue storage in the primary location.
- primary
Queue stringHost The hostname with port if applicable for queue storage in the primary location.
- primary
Table stringEndpoint The endpoint URL for table storage in the primary location.
- primary
Table stringHost The hostname with port if applicable for table storage in the primary location.
- primary
Web stringEndpoint The endpoint URL for web storage in the primary location.
- primary
Web stringHost The hostname with port if applicable for web storage in the primary location.
- resource
Group stringName - secondary
Access stringKey The secondary access key for the Storage Account.
- secondary
Blob stringConnection String The connection string associated with the secondary blob location
- secondary
Blob stringEndpoint The endpoint URL for blob storage in the secondary location.
- secondary
Blob stringHost The hostname with port if applicable for blob storage in the secondary location.
- secondary
Connection stringString The connection string associated with the secondary location
- secondary
Dfs stringEndpoint The endpoint URL for DFS storage in the secondary location.
- secondary
Dfs stringHost The hostname with port if applicable for DFS storage in the secondary location.
- secondary
File stringEndpoint The endpoint URL for file storage in the secondary location.
- secondary
File stringHost The hostname with port if applicable for file storage in the secondary location.
- secondary
Location string The secondary location of the Storage Account.
- secondary
Queue stringEndpoint The endpoint URL for queue storage in the secondary location.
- secondary
Queue stringHost The hostname with port if applicable for queue storage in the secondary location.
- secondary
Table stringEndpoint The endpoint URL for table storage in the secondary location.
- secondary
Table stringHost The hostname with port if applicable for table storage in the secondary location.
- secondary
Web stringEndpoint The endpoint URL for web storage in the secondary location.
- secondary
Web stringHost The hostname with port if applicable for web storage in the secondary location.
- {[key: string]: string}
A mapping of tags to assigned to the resource.
- access_
tier str The access tier for
BlobStorageaccounts.- account_
kind str The Kind of account.
- account_
replication_ strtype The type of replication used for this storage account.
- account_
tier str The Tier of this storage account.
- custom_
domains List[GetAccount Custom Domain] A
custom_domainblock as documented below.- enable_
https_ booltraffic_ only Is traffic only allowed via HTTPS? See here for more information.
- id str
The provider-assigned unique ID for this managed resource.
- is_
hns_ boolenabled Is Hierarchical Namespace enabled?
- location str
The Azure location where the Storage Account exists
- name str
The Custom Domain Name used for the Storage Account.
- primary_
access_ strkey The primary access key for the Storage Account.
- primary_
blob_ strconnection_ string The connection string associated with the primary blob location
- primary_
blob_ strendpoint The endpoint URL for blob storage in the primary location.
- primary_
blob_ strhost The hostname with port if applicable for blob storage in the primary location.
- primary_
connection_ strstring The connection string associated with the primary location
- primary_
dfs_ strendpoint The endpoint URL for DFS storage in the primary location.
- primary_
dfs_ strhost The hostname with port if applicable for DFS storage in the primary location.
- primary_
file_ strendpoint The endpoint URL for file storage in the primary location.
- primary_
file_ strhost The hostname with port if applicable for file storage in the primary location.
- primary_
location str The primary location of the Storage Account.
- primary_
queue_ strendpoint The endpoint URL for queue storage in the primary location.
- primary_
queue_ strhost The hostname with port if applicable for queue storage in the primary location.
- primary_
table_ strendpoint The endpoint URL for table storage in the primary location.
- primary_
table_ strhost The hostname with port if applicable for table storage in the primary location.
- primary_
web_ strendpoint The endpoint URL for web storage in the primary location.
- primary_
web_ strhost The hostname with port if applicable for web storage in the primary location.
- resource_
group_ strname - secondary_
access_ strkey The secondary access key for the Storage Account.
- secondary_
blob_ strconnection_ string The connection string associated with the secondary blob location
- secondary_
blob_ strendpoint The endpoint URL for blob storage in the secondary location.
- secondary_
blob_ strhost The hostname with port if applicable for blob storage in the secondary location.
- secondary_
connection_ strstring The connection string associated with the secondary location
- secondary_
dfs_ strendpoint The endpoint URL for DFS storage in the secondary location.
- secondary_
dfs_ strhost The hostname with port if applicable for DFS storage in the secondary location.
- secondary_
file_ strendpoint The endpoint URL for file storage in the secondary location.
- secondary_
file_ strhost The hostname with port if applicable for file storage in the secondary location.
- secondary_
location str The secondary location of the Storage Account.
- secondary_
queue_ strendpoint The endpoint URL for queue storage in the secondary location.
- secondary_
queue_ strhost The hostname with port if applicable for queue storage in the secondary location.
- secondary_
table_ strendpoint The endpoint URL for table storage in the secondary location.
- secondary_
table_ strhost The hostname with port if applicable for table storage in the secondary location.
- secondary_
web_ strendpoint The endpoint URL for web storage in the secondary location.
- secondary_
web_ strhost The hostname with port if applicable for web storage in the secondary location.
- Dict[str, str]
A mapping of tags to assigned to the resource.
Supporting Types
GetAccountCustomDomain
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.