1. Packages
  2. Azure Classic
  3. API Docs
  4. storage
  5. AccountQueueProperties

We recommend using Azure Native.

Azure v6.22.0 published on Tuesday, Apr 1, 2025 by Pulumi

azure.storage.AccountQueueProperties

Explore with Pulumi AI

Manages the Queue Properties of an Azure Storage Account.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const example = new azure.core.ResourceGroup("example", {
    name: "example-resources",
    location: "West Europe",
});
const exampleAccount = new azure.storage.Account("example", {
    name: "storageaccountname",
    resourceGroupName: example.name,
    location: example.location,
    accountTier: "Standard",
    accountReplicationType: "GRS",
    tags: {
        environment: "staging",
    },
});
const exampleAccountQueueProperties = new azure.storage.AccountQueueProperties("example", {
    storageAccountId: exampleAccount.id,
    corsRules: [{
        allowedOrigins: ["http://www.example.com"],
        exposedHeaders: ["x-tempo-*"],
        allowedHeaders: ["x-tempo-*"],
        allowedMethods: [
            "GET",
            "PUT",
        ],
        maxAgeInSeconds: 500,
    }],
    logging: {
        version: "1.0",
        "delete": true,
        read: true,
        write: true,
        retentionPolicyDays: 7,
    },
    hourMetrics: {
        version: "1.0",
        retentionPolicyDays: 7,
    },
    minuteMetrics: {
        version: "1.0",
        retentionPolicyDays: 7,
    },
});
Copy
import pulumi
import pulumi_azure as azure

example = azure.core.ResourceGroup("example",
    name="example-resources",
    location="West Europe")
example_account = azure.storage.Account("example",
    name="storageaccountname",
    resource_group_name=example.name,
    location=example.location,
    account_tier="Standard",
    account_replication_type="GRS",
    tags={
        "environment": "staging",
    })
example_account_queue_properties = azure.storage.AccountQueueProperties("example",
    storage_account_id=example_account.id,
    cors_rules=[{
        "allowed_origins": ["http://www.example.com"],
        "exposed_headers": ["x-tempo-*"],
        "allowed_headers": ["x-tempo-*"],
        "allowed_methods": [
            "GET",
            "PUT",
        ],
        "max_age_in_seconds": 500,
    }],
    logging={
        "version": "1.0",
        "delete": True,
        "read": True,
        "write": True,
        "retention_policy_days": 7,
    },
    hour_metrics={
        "version": "1.0",
        "retention_policy_days": 7,
    },
    minute_metrics={
        "version": "1.0",
        "retention_policy_days": 7,
    })
Copy
package main

import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/storage"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
			Name:     pulumi.String("example-resources"),
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{
			Name:                   pulumi.String("storageaccountname"),
			ResourceGroupName:      example.Name,
			Location:               example.Location,
			AccountTier:            pulumi.String("Standard"),
			AccountReplicationType: pulumi.String("GRS"),
			Tags: pulumi.StringMap{
				"environment": pulumi.String("staging"),
			},
		})
		if err != nil {
			return err
		}
		_, err = storage.NewAccountQueueProperties(ctx, "example", &storage.AccountQueuePropertiesArgs{
			StorageAccountId: exampleAccount.ID(),
			CorsRules: storage.AccountQueuePropertiesCorsRuleArray{
				&storage.AccountQueuePropertiesCorsRuleArgs{
					AllowedOrigins: pulumi.StringArray{
						pulumi.String("http://www.example.com"),
					},
					ExposedHeaders: pulumi.StringArray{
						pulumi.String("x-tempo-*"),
					},
					AllowedHeaders: pulumi.StringArray{
						pulumi.String("x-tempo-*"),
					},
					AllowedMethods: pulumi.StringArray{
						pulumi.String("GET"),
						pulumi.String("PUT"),
					},
					MaxAgeInSeconds: pulumi.Int(500),
				},
			},
			Logging: &storage.AccountQueuePropertiesLoggingArgs{
				Version:             pulumi.String("1.0"),
				Delete:              pulumi.Bool(true),
				Read:                pulumi.Bool(true),
				Write:               pulumi.Bool(true),
				RetentionPolicyDays: pulumi.Int(7),
			},
			HourMetrics: &storage.AccountQueuePropertiesHourMetricsArgs{
				Version:             pulumi.String("1.0"),
				RetentionPolicyDays: pulumi.Int(7),
			},
			MinuteMetrics: &storage.AccountQueuePropertiesMinuteMetricsArgs{
				Version:             pulumi.String("1.0"),
				RetentionPolicyDays: pulumi.Int(7),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;

return await Deployment.RunAsync(() => 
{
    var example = new Azure.Core.ResourceGroup("example", new()
    {
        Name = "example-resources",
        Location = "West Europe",
    });

    var exampleAccount = new Azure.Storage.Account("example", new()
    {
        Name = "storageaccountname",
        ResourceGroupName = example.Name,
        Location = example.Location,
        AccountTier = "Standard",
        AccountReplicationType = "GRS",
        Tags = 
        {
            { "environment", "staging" },
        },
    });

    var exampleAccountQueueProperties = new Azure.Storage.AccountQueueProperties("example", new()
    {
        StorageAccountId = exampleAccount.Id,
        CorsRules = new[]
        {
            new Azure.Storage.Inputs.AccountQueuePropertiesCorsRuleArgs
            {
                AllowedOrigins = new[]
                {
                    "http://www.example.com",
                },
                ExposedHeaders = new[]
                {
                    "x-tempo-*",
                },
                AllowedHeaders = new[]
                {
                    "x-tempo-*",
                },
                AllowedMethods = new[]
                {
                    "GET",
                    "PUT",
                },
                MaxAgeInSeconds = 500,
            },
        },
        Logging = new Azure.Storage.Inputs.AccountQueuePropertiesLoggingArgs
        {
            Version = "1.0",
            Delete = true,
            Read = true,
            Write = true,
            RetentionPolicyDays = 7,
        },
        HourMetrics = new Azure.Storage.Inputs.AccountQueuePropertiesHourMetricsArgs
        {
            Version = "1.0",
            RetentionPolicyDays = 7,
        },
        MinuteMetrics = new Azure.Storage.Inputs.AccountQueuePropertiesMinuteMetricsArgs
        {
            Version = "1.0",
            RetentionPolicyDays = 7,
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.storage.Account;
import com.pulumi.azure.storage.AccountArgs;
import com.pulumi.azure.storage.AccountQueueProperties;
import com.pulumi.azure.storage.AccountQueuePropertiesArgs;
import com.pulumi.azure.storage.inputs.AccountQueuePropertiesCorsRuleArgs;
import com.pulumi.azure.storage.inputs.AccountQueuePropertiesLoggingArgs;
import com.pulumi.azure.storage.inputs.AccountQueuePropertiesHourMetricsArgs;
import com.pulumi.azure.storage.inputs.AccountQueuePropertiesMinuteMetricsArgs;
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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
            .name("example-resources")
            .location("West Europe")
            .build());

        var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
            .name("storageaccountname")
            .resourceGroupName(example.name())
            .location(example.location())
            .accountTier("Standard")
            .accountReplicationType("GRS")
            .tags(Map.of("environment", "staging"))
            .build());

        var exampleAccountQueueProperties = new AccountQueueProperties("exampleAccountQueueProperties", AccountQueuePropertiesArgs.builder()
            .storageAccountId(exampleAccount.id())
            .corsRules(AccountQueuePropertiesCorsRuleArgs.builder()
                .allowedOrigins("http://www.example.com")
                .exposedHeaders("x-tempo-*")
                .allowedHeaders("x-tempo-*")
                .allowedMethods(                
                    "GET",
                    "PUT")
                .maxAgeInSeconds("500")
                .build())
            .logging(AccountQueuePropertiesLoggingArgs.builder()
                .version("1.0")
                .delete(true)
                .read(true)
                .write(true)
                .retentionPolicyDays(7)
                .build())
            .hourMetrics(AccountQueuePropertiesHourMetricsArgs.builder()
                .version("1.0")
                .retentionPolicyDays(7)
                .build())
            .minuteMetrics(AccountQueuePropertiesMinuteMetricsArgs.builder()
                .version("1.0")
                .retentionPolicyDays(7)
                .build())
            .build());

    }
}
Copy
resources:
  example:
    type: azure:core:ResourceGroup
    properties:
      name: example-resources
      location: West Europe
  exampleAccount:
    type: azure:storage:Account
    name: example
    properties:
      name: storageaccountname
      resourceGroupName: ${example.name}
      location: ${example.location}
      accountTier: Standard
      accountReplicationType: GRS
      tags:
        environment: staging
  exampleAccountQueueProperties:
    type: azure:storage:AccountQueueProperties
    name: example
    properties:
      storageAccountId: ${exampleAccount.id}
      corsRules:
        - allowedOrigins:
            - http://www.example.com
          exposedHeaders:
            - x-tempo-*
          allowedHeaders:
            - x-tempo-*
          allowedMethods:
            - GET
            - PUT
          maxAgeInSeconds: '500'
      logging:
        version: '1.0'
        delete: true
        read: true
        write: true
        retentionPolicyDays: 7
      hourMetrics:
        version: '1.0'
        retentionPolicyDays: 7
      minuteMetrics:
        version: '1.0'
        retentionPolicyDays: 7
Copy

Create AccountQueueProperties Resource

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

Constructor syntax

new AccountQueueProperties(name: string, args: AccountQueuePropertiesArgs, opts?: CustomResourceOptions);
@overload
def AccountQueueProperties(resource_name: str,
                           args: AccountQueuePropertiesInitArgs,
                           opts: Optional[ResourceOptions] = None)

@overload
def AccountQueueProperties(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           storage_account_id: Optional[str] = None,
                           cors_rules: Optional[Sequence[AccountQueuePropertiesCorsRuleArgs]] = None,
                           hour_metrics: Optional[AccountQueuePropertiesHourMetricsArgs] = None,
                           logging: Optional[AccountQueuePropertiesLoggingArgs] = None,
                           minute_metrics: Optional[AccountQueuePropertiesMinuteMetricsArgs] = None)
func NewAccountQueueProperties(ctx *Context, name string, args AccountQueuePropertiesArgs, opts ...ResourceOption) (*AccountQueueProperties, error)
public AccountQueueProperties(string name, AccountQueuePropertiesArgs args, CustomResourceOptions? opts = null)
public AccountQueueProperties(String name, AccountQueuePropertiesArgs args)
public AccountQueueProperties(String name, AccountQueuePropertiesArgs args, CustomResourceOptions options)
type: azure:storage:AccountQueueProperties
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. AccountQueuePropertiesArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. AccountQueuePropertiesInitArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. AccountQueuePropertiesArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. AccountQueuePropertiesArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. AccountQueuePropertiesArgs
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 accountQueuePropertiesResource = new Azure.Storage.AccountQueueProperties("accountQueuePropertiesResource", new()
{
    StorageAccountId = "string",
    CorsRules = new[]
    {
        new Azure.Storage.Inputs.AccountQueuePropertiesCorsRuleArgs
        {
            AllowedHeaders = new[]
            {
                "string",
            },
            AllowedMethods = new[]
            {
                "string",
            },
            AllowedOrigins = new[]
            {
                "string",
            },
            ExposedHeaders = new[]
            {
                "string",
            },
            MaxAgeInSeconds = 0,
        },
    },
    HourMetrics = new Azure.Storage.Inputs.AccountQueuePropertiesHourMetricsArgs
    {
        Version = "string",
        IncludeApis = false,
        RetentionPolicyDays = 0,
    },
    Logging = new Azure.Storage.Inputs.AccountQueuePropertiesLoggingArgs
    {
        Delete = false,
        Read = false,
        Version = "string",
        Write = false,
        RetentionPolicyDays = 0,
    },
    MinuteMetrics = new Azure.Storage.Inputs.AccountQueuePropertiesMinuteMetricsArgs
    {
        Version = "string",
        IncludeApis = false,
        RetentionPolicyDays = 0,
    },
});
Copy
example, err := storage.NewAccountQueueProperties(ctx, "accountQueuePropertiesResource", &storage.AccountQueuePropertiesArgs{
	StorageAccountId: pulumi.String("string"),
	CorsRules: storage.AccountQueuePropertiesCorsRuleArray{
		&storage.AccountQueuePropertiesCorsRuleArgs{
			AllowedHeaders: pulumi.StringArray{
				pulumi.String("string"),
			},
			AllowedMethods: pulumi.StringArray{
				pulumi.String("string"),
			},
			AllowedOrigins: pulumi.StringArray{
				pulumi.String("string"),
			},
			ExposedHeaders: pulumi.StringArray{
				pulumi.String("string"),
			},
			MaxAgeInSeconds: pulumi.Int(0),
		},
	},
	HourMetrics: &storage.AccountQueuePropertiesHourMetricsArgs{
		Version:             pulumi.String("string"),
		IncludeApis:         pulumi.Bool(false),
		RetentionPolicyDays: pulumi.Int(0),
	},
	Logging: &storage.AccountQueuePropertiesLoggingArgs{
		Delete:              pulumi.Bool(false),
		Read:                pulumi.Bool(false),
		Version:             pulumi.String("string"),
		Write:               pulumi.Bool(false),
		RetentionPolicyDays: pulumi.Int(0),
	},
	MinuteMetrics: &storage.AccountQueuePropertiesMinuteMetricsArgs{
		Version:             pulumi.String("string"),
		IncludeApis:         pulumi.Bool(false),
		RetentionPolicyDays: pulumi.Int(0),
	},
})
Copy
var accountQueuePropertiesResource = new AccountQueueProperties("accountQueuePropertiesResource", AccountQueuePropertiesArgs.builder()
    .storageAccountId("string")
    .corsRules(AccountQueuePropertiesCorsRuleArgs.builder()
        .allowedHeaders("string")
        .allowedMethods("string")
        .allowedOrigins("string")
        .exposedHeaders("string")
        .maxAgeInSeconds(0)
        .build())
    .hourMetrics(AccountQueuePropertiesHourMetricsArgs.builder()
        .version("string")
        .includeApis(false)
        .retentionPolicyDays(0)
        .build())
    .logging(AccountQueuePropertiesLoggingArgs.builder()
        .delete(false)
        .read(false)
        .version("string")
        .write(false)
        .retentionPolicyDays(0)
        .build())
    .minuteMetrics(AccountQueuePropertiesMinuteMetricsArgs.builder()
        .version("string")
        .includeApis(false)
        .retentionPolicyDays(0)
        .build())
    .build());
Copy
account_queue_properties_resource = azure.storage.AccountQueueProperties("accountQueuePropertiesResource",
    storage_account_id="string",
    cors_rules=[{
        "allowed_headers": ["string"],
        "allowed_methods": ["string"],
        "allowed_origins": ["string"],
        "exposed_headers": ["string"],
        "max_age_in_seconds": 0,
    }],
    hour_metrics={
        "version": "string",
        "include_apis": False,
        "retention_policy_days": 0,
    },
    logging={
        "delete": False,
        "read": False,
        "version": "string",
        "write": False,
        "retention_policy_days": 0,
    },
    minute_metrics={
        "version": "string",
        "include_apis": False,
        "retention_policy_days": 0,
    })
Copy
const accountQueuePropertiesResource = new azure.storage.AccountQueueProperties("accountQueuePropertiesResource", {
    storageAccountId: "string",
    corsRules: [{
        allowedHeaders: ["string"],
        allowedMethods: ["string"],
        allowedOrigins: ["string"],
        exposedHeaders: ["string"],
        maxAgeInSeconds: 0,
    }],
    hourMetrics: {
        version: "string",
        includeApis: false,
        retentionPolicyDays: 0,
    },
    logging: {
        "delete": false,
        read: false,
        version: "string",
        write: false,
        retentionPolicyDays: 0,
    },
    minuteMetrics: {
        version: "string",
        includeApis: false,
        retentionPolicyDays: 0,
    },
});
Copy
type: azure:storage:AccountQueueProperties
properties:
    corsRules:
        - allowedHeaders:
            - string
          allowedMethods:
            - string
          allowedOrigins:
            - string
          exposedHeaders:
            - string
          maxAgeInSeconds: 0
    hourMetrics:
        includeApis: false
        retentionPolicyDays: 0
        version: string
    logging:
        delete: false
        read: false
        retentionPolicyDays: 0
        version: string
        write: false
    minuteMetrics:
        includeApis: false
        retentionPolicyDays: 0
        version: string
    storageAccountId: string
Copy

AccountQueueProperties 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 AccountQueueProperties resource accepts the following input properties:

StorageAccountId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the Storage Account to set Queue Properties on. Changing this forces a new resource to be created.
CorsRules List<AccountQueuePropertiesCorsRule>
A cors_rule block as defined above.
HourMetrics AccountQueuePropertiesHourMetrics

A hour_metrics block as defined below.

NOTE: At least one of cors_rule, logging, minute_metrics, or hour_metrics must be specified.

Logging AccountQueuePropertiesLogging
A logging block as defined below.
MinuteMetrics AccountQueuePropertiesMinuteMetrics
A minute_metrics block as defined below.
StorageAccountId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the Storage Account to set Queue Properties on. Changing this forces a new resource to be created.
CorsRules []AccountQueuePropertiesCorsRuleArgs
A cors_rule block as defined above.
HourMetrics AccountQueuePropertiesHourMetricsArgs

A hour_metrics block as defined below.

NOTE: At least one of cors_rule, logging, minute_metrics, or hour_metrics must be specified.

Logging AccountQueuePropertiesLoggingArgs
A logging block as defined below.
MinuteMetrics AccountQueuePropertiesMinuteMetricsArgs
A minute_metrics block as defined below.
storageAccountId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the Storage Account to set Queue Properties on. Changing this forces a new resource to be created.
corsRules List<AccountQueuePropertiesCorsRule>
A cors_rule block as defined above.
hourMetrics AccountQueuePropertiesHourMetrics

A hour_metrics block as defined below.

NOTE: At least one of cors_rule, logging, minute_metrics, or hour_metrics must be specified.

logging AccountQueuePropertiesLogging
A logging block as defined below.
minuteMetrics AccountQueuePropertiesMinuteMetrics
A minute_metrics block as defined below.
storageAccountId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the Storage Account to set Queue Properties on. Changing this forces a new resource to be created.
corsRules AccountQueuePropertiesCorsRule[]
A cors_rule block as defined above.
hourMetrics AccountQueuePropertiesHourMetrics

A hour_metrics block as defined below.

NOTE: At least one of cors_rule, logging, minute_metrics, or hour_metrics must be specified.

logging AccountQueuePropertiesLogging
A logging block as defined below.
minuteMetrics AccountQueuePropertiesMinuteMetrics
A minute_metrics block as defined below.
storage_account_id
This property is required.
Changes to this property will trigger replacement.
str
The ID of the Storage Account to set Queue Properties on. Changing this forces a new resource to be created.
cors_rules Sequence[AccountQueuePropertiesCorsRuleArgs]
A cors_rule block as defined above.
hour_metrics AccountQueuePropertiesHourMetricsArgs

A hour_metrics block as defined below.

NOTE: At least one of cors_rule, logging, minute_metrics, or hour_metrics must be specified.

logging AccountQueuePropertiesLoggingArgs
A logging block as defined below.
minute_metrics AccountQueuePropertiesMinuteMetricsArgs
A minute_metrics block as defined below.
storageAccountId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the Storage Account to set Queue Properties on. Changing this forces a new resource to be created.
corsRules List<Property Map>
A cors_rule block as defined above.
hourMetrics Property Map

A hour_metrics block as defined below.

NOTE: At least one of cors_rule, logging, minute_metrics, or hour_metrics must be specified.

logging Property Map
A logging block as defined below.
minuteMetrics Property Map
A minute_metrics block as defined below.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing AccountQueueProperties Resource

Get an existing AccountQueueProperties resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: AccountQueuePropertiesState, opts?: CustomResourceOptions): AccountQueueProperties
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        cors_rules: Optional[Sequence[AccountQueuePropertiesCorsRuleArgs]] = None,
        hour_metrics: Optional[AccountQueuePropertiesHourMetricsArgs] = None,
        logging: Optional[AccountQueuePropertiesLoggingArgs] = None,
        minute_metrics: Optional[AccountQueuePropertiesMinuteMetricsArgs] = None,
        storage_account_id: Optional[str] = None) -> AccountQueueProperties
func GetAccountQueueProperties(ctx *Context, name string, id IDInput, state *AccountQueuePropertiesState, opts ...ResourceOption) (*AccountQueueProperties, error)
public static AccountQueueProperties Get(string name, Input<string> id, AccountQueuePropertiesState? state, CustomResourceOptions? opts = null)
public static AccountQueueProperties get(String name, Output<String> id, AccountQueuePropertiesState state, CustomResourceOptions options)
resources:  _:    type: azure:storage:AccountQueueProperties    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
CorsRules List<AccountQueuePropertiesCorsRule>
A cors_rule block as defined above.
HourMetrics AccountQueuePropertiesHourMetrics

A hour_metrics block as defined below.

NOTE: At least one of cors_rule, logging, minute_metrics, or hour_metrics must be specified.

Logging AccountQueuePropertiesLogging
A logging block as defined below.
MinuteMetrics AccountQueuePropertiesMinuteMetrics
A minute_metrics block as defined below.
StorageAccountId Changes to this property will trigger replacement. string
The ID of the Storage Account to set Queue Properties on. Changing this forces a new resource to be created.
CorsRules []AccountQueuePropertiesCorsRuleArgs
A cors_rule block as defined above.
HourMetrics AccountQueuePropertiesHourMetricsArgs

A hour_metrics block as defined below.

NOTE: At least one of cors_rule, logging, minute_metrics, or hour_metrics must be specified.

Logging AccountQueuePropertiesLoggingArgs
A logging block as defined below.
MinuteMetrics AccountQueuePropertiesMinuteMetricsArgs
A minute_metrics block as defined below.
StorageAccountId Changes to this property will trigger replacement. string
The ID of the Storage Account to set Queue Properties on. Changing this forces a new resource to be created.
corsRules List<AccountQueuePropertiesCorsRule>
A cors_rule block as defined above.
hourMetrics AccountQueuePropertiesHourMetrics

A hour_metrics block as defined below.

NOTE: At least one of cors_rule, logging, minute_metrics, or hour_metrics must be specified.

logging AccountQueuePropertiesLogging
A logging block as defined below.
minuteMetrics AccountQueuePropertiesMinuteMetrics
A minute_metrics block as defined below.
storageAccountId Changes to this property will trigger replacement. String
The ID of the Storage Account to set Queue Properties on. Changing this forces a new resource to be created.
corsRules AccountQueuePropertiesCorsRule[]
A cors_rule block as defined above.
hourMetrics AccountQueuePropertiesHourMetrics

A hour_metrics block as defined below.

NOTE: At least one of cors_rule, logging, minute_metrics, or hour_metrics must be specified.

logging AccountQueuePropertiesLogging
A logging block as defined below.
minuteMetrics AccountQueuePropertiesMinuteMetrics
A minute_metrics block as defined below.
storageAccountId Changes to this property will trigger replacement. string
The ID of the Storage Account to set Queue Properties on. Changing this forces a new resource to be created.
cors_rules Sequence[AccountQueuePropertiesCorsRuleArgs]
A cors_rule block as defined above.
hour_metrics AccountQueuePropertiesHourMetricsArgs

A hour_metrics block as defined below.

NOTE: At least one of cors_rule, logging, minute_metrics, or hour_metrics must be specified.

logging AccountQueuePropertiesLoggingArgs
A logging block as defined below.
minute_metrics AccountQueuePropertiesMinuteMetricsArgs
A minute_metrics block as defined below.
storage_account_id Changes to this property will trigger replacement. str
The ID of the Storage Account to set Queue Properties on. Changing this forces a new resource to be created.
corsRules List<Property Map>
A cors_rule block as defined above.
hourMetrics Property Map

A hour_metrics block as defined below.

NOTE: At least one of cors_rule, logging, minute_metrics, or hour_metrics must be specified.

logging Property Map
A logging block as defined below.
minuteMetrics Property Map
A minute_metrics block as defined below.
storageAccountId Changes to this property will trigger replacement. String
The ID of the Storage Account to set Queue Properties on. Changing this forces a new resource to be created.

Supporting Types

AccountQueuePropertiesCorsRule
, AccountQueuePropertiesCorsRuleArgs

AllowedHeaders This property is required. List<string>
A list of headers that are allowed to be a part of the cross-origin request.
AllowedMethods This property is required. List<string>
A list of HTTP methods that are allowed to be executed by the origin. Valid options are DELETE, GET, HEAD, MERGE, POST, OPTIONS, PUT or PATCH.
AllowedOrigins This property is required. List<string>
A list of origin domains that will be allowed by CORS.
ExposedHeaders This property is required. List<string>
A list of response headers that are exposed to CORS clients.
MaxAgeInSeconds This property is required. int
The number of seconds the client should cache a preflight response.
AllowedHeaders This property is required. []string
A list of headers that are allowed to be a part of the cross-origin request.
AllowedMethods This property is required. []string
A list of HTTP methods that are allowed to be executed by the origin. Valid options are DELETE, GET, HEAD, MERGE, POST, OPTIONS, PUT or PATCH.
AllowedOrigins This property is required. []string
A list of origin domains that will be allowed by CORS.
ExposedHeaders This property is required. []string
A list of response headers that are exposed to CORS clients.
MaxAgeInSeconds This property is required. int
The number of seconds the client should cache a preflight response.
allowedHeaders This property is required. List<String>
A list of headers that are allowed to be a part of the cross-origin request.
allowedMethods This property is required. List<String>
A list of HTTP methods that are allowed to be executed by the origin. Valid options are DELETE, GET, HEAD, MERGE, POST, OPTIONS, PUT or PATCH.
allowedOrigins This property is required. List<String>
A list of origin domains that will be allowed by CORS.
exposedHeaders This property is required. List<String>
A list of response headers that are exposed to CORS clients.
maxAgeInSeconds This property is required. Integer
The number of seconds the client should cache a preflight response.
allowedHeaders This property is required. string[]
A list of headers that are allowed to be a part of the cross-origin request.
allowedMethods This property is required. string[]
A list of HTTP methods that are allowed to be executed by the origin. Valid options are DELETE, GET, HEAD, MERGE, POST, OPTIONS, PUT or PATCH.
allowedOrigins This property is required. string[]
A list of origin domains that will be allowed by CORS.
exposedHeaders This property is required. string[]
A list of response headers that are exposed to CORS clients.
maxAgeInSeconds This property is required. number
The number of seconds the client should cache a preflight response.
allowed_headers This property is required. Sequence[str]
A list of headers that are allowed to be a part of the cross-origin request.
allowed_methods This property is required. Sequence[str]
A list of HTTP methods that are allowed to be executed by the origin. Valid options are DELETE, GET, HEAD, MERGE, POST, OPTIONS, PUT or PATCH.
allowed_origins This property is required. Sequence[str]
A list of origin domains that will be allowed by CORS.
exposed_headers This property is required. Sequence[str]
A list of response headers that are exposed to CORS clients.
max_age_in_seconds This property is required. int
The number of seconds the client should cache a preflight response.
allowedHeaders This property is required. List<String>
A list of headers that are allowed to be a part of the cross-origin request.
allowedMethods This property is required. List<String>
A list of HTTP methods that are allowed to be executed by the origin. Valid options are DELETE, GET, HEAD, MERGE, POST, OPTIONS, PUT or PATCH.
allowedOrigins This property is required. List<String>
A list of origin domains that will be allowed by CORS.
exposedHeaders This property is required. List<String>
A list of response headers that are exposed to CORS clients.
maxAgeInSeconds This property is required. Number
The number of seconds the client should cache a preflight response.

AccountQueuePropertiesHourMetrics
, AccountQueuePropertiesHourMetricsArgs

Version This property is required. string
The version of storage analytics to configure.
IncludeApis bool
Indicates whether metrics should generate summary statistics for called API operations.
RetentionPolicyDays int
Specifies the number of days that logs will be retained.
Version This property is required. string
The version of storage analytics to configure.
IncludeApis bool
Indicates whether metrics should generate summary statistics for called API operations.
RetentionPolicyDays int
Specifies the number of days that logs will be retained.
version This property is required. String
The version of storage analytics to configure.
includeApis Boolean
Indicates whether metrics should generate summary statistics for called API operations.
retentionPolicyDays Integer
Specifies the number of days that logs will be retained.
version This property is required. string
The version of storage analytics to configure.
includeApis boolean
Indicates whether metrics should generate summary statistics for called API operations.
retentionPolicyDays number
Specifies the number of days that logs will be retained.
version This property is required. str
The version of storage analytics to configure.
include_apis bool
Indicates whether metrics should generate summary statistics for called API operations.
retention_policy_days int
Specifies the number of days that logs will be retained.
version This property is required. String
The version of storage analytics to configure.
includeApis Boolean
Indicates whether metrics should generate summary statistics for called API operations.
retentionPolicyDays Number
Specifies the number of days that logs will be retained.

AccountQueuePropertiesLogging
, AccountQueuePropertiesLoggingArgs

Delete This property is required. bool
Indicates whether all delete requests should be logged.
Read This property is required. bool
Indicates whether all read requests should be logged.
Version This property is required. string
The version of storage analytics to configure.
Write This property is required. bool
Indicates whether all write requests should be logged.
RetentionPolicyDays int
Specifies the number of days that logs will be retained.
Delete This property is required. bool
Indicates whether all delete requests should be logged.
Read This property is required. bool
Indicates whether all read requests should be logged.
Version This property is required. string
The version of storage analytics to configure.
Write This property is required. bool
Indicates whether all write requests should be logged.
RetentionPolicyDays int
Specifies the number of days that logs will be retained.
delete This property is required. Boolean
Indicates whether all delete requests should be logged.
read This property is required. Boolean
Indicates whether all read requests should be logged.
version This property is required. String
The version of storage analytics to configure.
write This property is required. Boolean
Indicates whether all write requests should be logged.
retentionPolicyDays Integer
Specifies the number of days that logs will be retained.
delete This property is required. boolean
Indicates whether all delete requests should be logged.
read This property is required. boolean
Indicates whether all read requests should be logged.
version This property is required. string
The version of storage analytics to configure.
write This property is required. boolean
Indicates whether all write requests should be logged.
retentionPolicyDays number
Specifies the number of days that logs will be retained.
delete This property is required. bool
Indicates whether all delete requests should be logged.
read This property is required. bool
Indicates whether all read requests should be logged.
version This property is required. str
The version of storage analytics to configure.
write This property is required. bool
Indicates whether all write requests should be logged.
retention_policy_days int
Specifies the number of days that logs will be retained.
delete This property is required. Boolean
Indicates whether all delete requests should be logged.
read This property is required. Boolean
Indicates whether all read requests should be logged.
version This property is required. String
The version of storage analytics to configure.
write This property is required. Boolean
Indicates whether all write requests should be logged.
retentionPolicyDays Number
Specifies the number of days that logs will be retained.

AccountQueuePropertiesMinuteMetrics
, AccountQueuePropertiesMinuteMetricsArgs

Version This property is required. string
The version of storage analytics to configure.
IncludeApis bool
Indicates whether metrics should generate summary statistics for called API operations.
RetentionPolicyDays int
Specifies the number of days that logs will be retained.
Version This property is required. string
The version of storage analytics to configure.
IncludeApis bool
Indicates whether metrics should generate summary statistics for called API operations.
RetentionPolicyDays int
Specifies the number of days that logs will be retained.
version This property is required. String
The version of storage analytics to configure.
includeApis Boolean
Indicates whether metrics should generate summary statistics for called API operations.
retentionPolicyDays Integer
Specifies the number of days that logs will be retained.
version This property is required. string
The version of storage analytics to configure.
includeApis boolean
Indicates whether metrics should generate summary statistics for called API operations.
retentionPolicyDays number
Specifies the number of days that logs will be retained.
version This property is required. str
The version of storage analytics to configure.
include_apis bool
Indicates whether metrics should generate summary statistics for called API operations.
retention_policy_days int
Specifies the number of days that logs will be retained.
version This property is required. String
The version of storage analytics to configure.
includeApis Boolean
Indicates whether metrics should generate summary statistics for called API operations.
retentionPolicyDays Number
Specifies the number of days that logs will be retained.

Import

Storage Account Queue Properties can be imported using the resource id, e.g.

$ pulumi import azure:storage/accountQueueProperties:AccountQueueProperties queueprops /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Storage/storageAccounts/myaccount
Copy

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

Package Details

Repository
Azure Classic pulumi/pulumi-azure
License
Apache-2.0
Notes
This Pulumi package is based on the azurerm Terraform Provider.