azure-native.storage.BlobServiceProperties
Explore with Pulumi AI
The properties of a storage account’s Blob service. Azure REST API version: 2022-09-01. Prior API version in Azure Native 1.x: 2021-02-01.
Other available API versions: 2023-01-01, 2023-04-01, 2023-05-01.
Example Usage
BlobServicesPutAllowPermanentDelete
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var blobServiceProperties = new AzureNative.Storage.BlobServiceProperties("blobServiceProperties", new()
{
AccountName = "sto8607",
BlobServicesName = "default",
DeleteRetentionPolicy = new AzureNative.Storage.Inputs.DeleteRetentionPolicyArgs
{
AllowPermanentDelete = true,
Days = 300,
Enabled = true,
},
IsVersioningEnabled = true,
ResourceGroupName = "res4410",
});
});
package main
import (
storage "github.com/pulumi/pulumi-azure-native-sdk/storage/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := storage.NewBlobServiceProperties(ctx, "blobServiceProperties", &storage.BlobServicePropertiesArgs{
AccountName: pulumi.String("sto8607"),
BlobServicesName: pulumi.String("default"),
DeleteRetentionPolicy: &storage.DeleteRetentionPolicyArgs{
AllowPermanentDelete: pulumi.Bool(true),
Days: pulumi.Int(300),
Enabled: pulumi.Bool(true),
},
IsVersioningEnabled: pulumi.Bool(true),
ResourceGroupName: pulumi.String("res4410"),
})
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.storage.BlobServiceProperties;
import com.pulumi.azurenative.storage.BlobServicePropertiesArgs;
import com.pulumi.azurenative.storage.inputs.DeleteRetentionPolicyArgs;
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 blobServiceProperties = new BlobServiceProperties("blobServiceProperties", BlobServicePropertiesArgs.builder()
.accountName("sto8607")
.blobServicesName("default")
.deleteRetentionPolicy(DeleteRetentionPolicyArgs.builder()
.allowPermanentDelete(true)
.days(300)
.enabled(true)
.build())
.isVersioningEnabled(true)
.resourceGroupName("res4410")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
blob_service_properties = azure_native.storage.BlobServiceProperties("blobServiceProperties",
account_name="sto8607",
blob_services_name="default",
delete_retention_policy={
"allow_permanent_delete": True,
"days": 300,
"enabled": True,
},
is_versioning_enabled=True,
resource_group_name="res4410")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const blobServiceProperties = new azure_native.storage.BlobServiceProperties("blobServiceProperties", {
accountName: "sto8607",
blobServicesName: "default",
deleteRetentionPolicy: {
allowPermanentDelete: true,
days: 300,
enabled: true,
},
isVersioningEnabled: true,
resourceGroupName: "res4410",
});
resources:
blobServiceProperties:
type: azure-native:storage:BlobServiceProperties
properties:
accountName: sto8607
blobServicesName: default
deleteRetentionPolicy:
allowPermanentDelete: true
days: 300
enabled: true
isVersioningEnabled: true
resourceGroupName: res4410
BlobServicesPutLastAccessTimeBasedTracking
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var blobServiceProperties = new AzureNative.Storage.BlobServiceProperties("blobServiceProperties", new()
{
AccountName = "sto8607",
BlobServicesName = "default",
LastAccessTimeTrackingPolicy = new AzureNative.Storage.Inputs.LastAccessTimeTrackingPolicyArgs
{
BlobType = new[]
{
"blockBlob",
},
Enable = true,
Name = AzureNative.Storage.Name.AccessTimeTracking,
TrackingGranularityInDays = 1,
},
ResourceGroupName = "res4410",
});
});
package main
import (
storage "github.com/pulumi/pulumi-azure-native-sdk/storage/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := storage.NewBlobServiceProperties(ctx, "blobServiceProperties", &storage.BlobServicePropertiesArgs{
AccountName: pulumi.String("sto8607"),
BlobServicesName: pulumi.String("default"),
LastAccessTimeTrackingPolicy: &storage.LastAccessTimeTrackingPolicyArgs{
BlobType: pulumi.StringArray{
pulumi.String("blockBlob"),
},
Enable: pulumi.Bool(true),
Name: pulumi.String(storage.NameAccessTimeTracking),
TrackingGranularityInDays: pulumi.Int(1),
},
ResourceGroupName: pulumi.String("res4410"),
})
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.storage.BlobServiceProperties;
import com.pulumi.azurenative.storage.BlobServicePropertiesArgs;
import com.pulumi.azurenative.storage.inputs.LastAccessTimeTrackingPolicyArgs;
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 blobServiceProperties = new BlobServiceProperties("blobServiceProperties", BlobServicePropertiesArgs.builder()
.accountName("sto8607")
.blobServicesName("default")
.lastAccessTimeTrackingPolicy(LastAccessTimeTrackingPolicyArgs.builder()
.blobType("blockBlob")
.enable(true)
.name("AccessTimeTracking")
.trackingGranularityInDays(1)
.build())
.resourceGroupName("res4410")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
blob_service_properties = azure_native.storage.BlobServiceProperties("blobServiceProperties",
account_name="sto8607",
blob_services_name="default",
last_access_time_tracking_policy={
"blob_type": ["blockBlob"],
"enable": True,
"name": azure_native.storage.Name.ACCESS_TIME_TRACKING,
"tracking_granularity_in_days": 1,
},
resource_group_name="res4410")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const blobServiceProperties = new azure_native.storage.BlobServiceProperties("blobServiceProperties", {
accountName: "sto8607",
blobServicesName: "default",
lastAccessTimeTrackingPolicy: {
blobType: ["blockBlob"],
enable: true,
name: azure_native.storage.Name.AccessTimeTracking,
trackingGranularityInDays: 1,
},
resourceGroupName: "res4410",
});
resources:
blobServiceProperties:
type: azure-native:storage:BlobServiceProperties
properties:
accountName: sto8607
blobServicesName: default
lastAccessTimeTrackingPolicy:
blobType:
- blockBlob
enable: true
name: AccessTimeTracking
trackingGranularityInDays: 1
resourceGroupName: res4410
PutBlobServices
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var blobServiceProperties = new AzureNative.Storage.BlobServiceProperties("blobServiceProperties", new()
{
AccountName = "sto8607",
BlobServicesName = "default",
ChangeFeed = new AzureNative.Storage.Inputs.ChangeFeedArgs
{
Enabled = true,
RetentionInDays = 7,
},
Cors = new AzureNative.Storage.Inputs.CorsRulesArgs
{
CorsRules = new[]
{
new AzureNative.Storage.Inputs.CorsRuleArgs
{
AllowedHeaders = new[]
{
"x-ms-meta-abc",
"x-ms-meta-data*",
"x-ms-meta-target*",
},
AllowedMethods = new[]
{
AzureNative.Storage.AllowedMethods.GET,
AzureNative.Storage.AllowedMethods.HEAD,
AzureNative.Storage.AllowedMethods.POST,
AzureNative.Storage.AllowedMethods.OPTIONS,
AzureNative.Storage.AllowedMethods.MERGE,
AzureNative.Storage.AllowedMethods.PUT,
},
AllowedOrigins = new[]
{
"http://www.contoso.com",
"http://www.fabrikam.com",
},
ExposedHeaders = new[]
{
"x-ms-meta-*",
},
MaxAgeInSeconds = 100,
},
new AzureNative.Storage.Inputs.CorsRuleArgs
{
AllowedHeaders = new[]
{
"*",
},
AllowedMethods = new[]
{
AzureNative.Storage.AllowedMethods.GET,
},
AllowedOrigins = new[]
{
"*",
},
ExposedHeaders = new[]
{
"*",
},
MaxAgeInSeconds = 2,
},
new AzureNative.Storage.Inputs.CorsRuleArgs
{
AllowedHeaders = new[]
{
"x-ms-meta-12345675754564*",
},
AllowedMethods = new[]
{
AzureNative.Storage.AllowedMethods.GET,
AzureNative.Storage.AllowedMethods.PUT,
},
AllowedOrigins = new[]
{
"http://www.abc23.com",
"https://www.fabrikam.com/*",
},
ExposedHeaders = new[]
{
"x-ms-meta-abc",
"x-ms-meta-data*",
"x -ms-meta-target*",
},
MaxAgeInSeconds = 2000,
},
},
},
DefaultServiceVersion = "2017-07-29",
DeleteRetentionPolicy = new AzureNative.Storage.Inputs.DeleteRetentionPolicyArgs
{
Days = 300,
Enabled = true,
},
IsVersioningEnabled = true,
ResourceGroupName = "res4410",
});
});
package main
import (
storage "github.com/pulumi/pulumi-azure-native-sdk/storage/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := storage.NewBlobServiceProperties(ctx, "blobServiceProperties", &storage.BlobServicePropertiesArgs{
AccountName: pulumi.String("sto8607"),
BlobServicesName: pulumi.String("default"),
ChangeFeed: &storage.ChangeFeedArgs{
Enabled: pulumi.Bool(true),
RetentionInDays: pulumi.Int(7),
},
Cors: &storage.CorsRulesArgs{
CorsRules: storage.CorsRuleArray{
&storage.CorsRuleArgs{
AllowedHeaders: pulumi.StringArray{
pulumi.String("x-ms-meta-abc"),
pulumi.String("x-ms-meta-data*"),
pulumi.String("x-ms-meta-target*"),
},
AllowedMethods: pulumi.StringArray{
pulumi.String(storage.AllowedMethodsGET),
pulumi.String(storage.AllowedMethodsHEAD),
pulumi.String(storage.AllowedMethodsPOST),
pulumi.String(storage.AllowedMethodsOPTIONS),
pulumi.String(storage.AllowedMethodsMERGE),
pulumi.String(storage.AllowedMethodsPUT),
},
AllowedOrigins: pulumi.StringArray{
pulumi.String("http://www.contoso.com"),
pulumi.String("http://www.fabrikam.com"),
},
ExposedHeaders: pulumi.StringArray{
pulumi.String("x-ms-meta-*"),
},
MaxAgeInSeconds: pulumi.Int(100),
},
&storage.CorsRuleArgs{
AllowedHeaders: pulumi.StringArray{
pulumi.String("*"),
},
AllowedMethods: pulumi.StringArray{
pulumi.String(storage.AllowedMethodsGET),
},
AllowedOrigins: pulumi.StringArray{
pulumi.String("*"),
},
ExposedHeaders: pulumi.StringArray{
pulumi.String("*"),
},
MaxAgeInSeconds: pulumi.Int(2),
},
&storage.CorsRuleArgs{
AllowedHeaders: pulumi.StringArray{
pulumi.String("x-ms-meta-12345675754564*"),
},
AllowedMethods: pulumi.StringArray{
pulumi.String(storage.AllowedMethodsGET),
pulumi.String(storage.AllowedMethodsPUT),
},
AllowedOrigins: pulumi.StringArray{
pulumi.String("http://www.abc23.com"),
pulumi.String("https://www.fabrikam.com/*"),
},
ExposedHeaders: pulumi.StringArray{
pulumi.String("x-ms-meta-abc"),
pulumi.String("x-ms-meta-data*"),
pulumi.String("x -ms-meta-target*"),
},
MaxAgeInSeconds: pulumi.Int(2000),
},
},
},
DefaultServiceVersion: pulumi.String("2017-07-29"),
DeleteRetentionPolicy: &storage.DeleteRetentionPolicyArgs{
Days: pulumi.Int(300),
Enabled: pulumi.Bool(true),
},
IsVersioningEnabled: pulumi.Bool(true),
ResourceGroupName: pulumi.String("res4410"),
})
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.storage.BlobServiceProperties;
import com.pulumi.azurenative.storage.BlobServicePropertiesArgs;
import com.pulumi.azurenative.storage.inputs.ChangeFeedArgs;
import com.pulumi.azurenative.storage.inputs.CorsRulesArgs;
import com.pulumi.azurenative.storage.inputs.DeleteRetentionPolicyArgs;
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 blobServiceProperties = new BlobServiceProperties("blobServiceProperties", BlobServicePropertiesArgs.builder()
.accountName("sto8607")
.blobServicesName("default")
.changeFeed(ChangeFeedArgs.builder()
.enabled(true)
.retentionInDays(7)
.build())
.cors(CorsRulesArgs.builder()
.corsRules(
CorsRuleArgs.builder()
.allowedHeaders(
"x-ms-meta-abc",
"x-ms-meta-data*",
"x-ms-meta-target*")
.allowedMethods(
"GET",
"HEAD",
"POST",
"OPTIONS",
"MERGE",
"PUT")
.allowedOrigins(
"http://www.contoso.com",
"http://www.fabrikam.com")
.exposedHeaders("x-ms-meta-*")
.maxAgeInSeconds(100)
.build(),
CorsRuleArgs.builder()
.allowedHeaders("*")
.allowedMethods("GET")
.allowedOrigins("*")
.exposedHeaders("*")
.maxAgeInSeconds(2)
.build(),
CorsRuleArgs.builder()
.allowedHeaders("x-ms-meta-12345675754564*")
.allowedMethods(
"GET",
"PUT")
.allowedOrigins(
"http://www.abc23.com",
"https://www.fabrikam.com/*")
.exposedHeaders(
"x-ms-meta-abc",
"x-ms-meta-data*",
"x -ms-meta-target*")
.maxAgeInSeconds(2000)
.build())
.build())
.defaultServiceVersion("2017-07-29")
.deleteRetentionPolicy(DeleteRetentionPolicyArgs.builder()
.days(300)
.enabled(true)
.build())
.isVersioningEnabled(true)
.resourceGroupName("res4410")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
blob_service_properties = azure_native.storage.BlobServiceProperties("blobServiceProperties",
account_name="sto8607",
blob_services_name="default",
change_feed={
"enabled": True,
"retention_in_days": 7,
},
cors={
"cors_rules": [
{
"allowed_headers": [
"x-ms-meta-abc",
"x-ms-meta-data*",
"x-ms-meta-target*",
],
"allowed_methods": [
azure_native.storage.AllowedMethods.GET,
azure_native.storage.AllowedMethods.HEAD,
azure_native.storage.AllowedMethods.POST,
azure_native.storage.AllowedMethods.OPTIONS,
azure_native.storage.AllowedMethods.MERGE,
azure_native.storage.AllowedMethods.PUT,
],
"allowed_origins": [
"http://www.contoso.com",
"http://www.fabrikam.com",
],
"exposed_headers": ["x-ms-meta-*"],
"max_age_in_seconds": 100,
},
{
"allowed_headers": ["*"],
"allowed_methods": [azure_native.storage.AllowedMethods.GET],
"allowed_origins": ["*"],
"exposed_headers": ["*"],
"max_age_in_seconds": 2,
},
{
"allowed_headers": ["x-ms-meta-12345675754564*"],
"allowed_methods": [
azure_native.storage.AllowedMethods.GET,
azure_native.storage.AllowedMethods.PUT,
],
"allowed_origins": [
"http://www.abc23.com",
"https://www.fabrikam.com/*",
],
"exposed_headers": [
"x-ms-meta-abc",
"x-ms-meta-data*",
"x -ms-meta-target*",
],
"max_age_in_seconds": 2000,
},
],
},
default_service_version="2017-07-29",
delete_retention_policy={
"days": 300,
"enabled": True,
},
is_versioning_enabled=True,
resource_group_name="res4410")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const blobServiceProperties = new azure_native.storage.BlobServiceProperties("blobServiceProperties", {
accountName: "sto8607",
blobServicesName: "default",
changeFeed: {
enabled: true,
retentionInDays: 7,
},
cors: {
corsRules: [
{
allowedHeaders: [
"x-ms-meta-abc",
"x-ms-meta-data*",
"x-ms-meta-target*",
],
allowedMethods: [
azure_native.storage.AllowedMethods.GET,
azure_native.storage.AllowedMethods.HEAD,
azure_native.storage.AllowedMethods.POST,
azure_native.storage.AllowedMethods.OPTIONS,
azure_native.storage.AllowedMethods.MERGE,
azure_native.storage.AllowedMethods.PUT,
],
allowedOrigins: [
"http://www.contoso.com",
"http://www.fabrikam.com",
],
exposedHeaders: ["x-ms-meta-*"],
maxAgeInSeconds: 100,
},
{
allowedHeaders: ["*"],
allowedMethods: [azure_native.storage.AllowedMethods.GET],
allowedOrigins: ["*"],
exposedHeaders: ["*"],
maxAgeInSeconds: 2,
},
{
allowedHeaders: ["x-ms-meta-12345675754564*"],
allowedMethods: [
azure_native.storage.AllowedMethods.GET,
azure_native.storage.AllowedMethods.PUT,
],
allowedOrigins: [
"http://www.abc23.com",
"https://www.fabrikam.com/*",
],
exposedHeaders: [
"x-ms-meta-abc",
"x-ms-meta-data*",
"x -ms-meta-target*",
],
maxAgeInSeconds: 2000,
},
],
},
defaultServiceVersion: "2017-07-29",
deleteRetentionPolicy: {
days: 300,
enabled: true,
},
isVersioningEnabled: true,
resourceGroupName: "res4410",
});
resources:
blobServiceProperties:
type: azure-native:storage:BlobServiceProperties
properties:
accountName: sto8607
blobServicesName: default
changeFeed:
enabled: true
retentionInDays: 7
cors:
corsRules:
- allowedHeaders:
- x-ms-meta-abc
- x-ms-meta-data*
- x-ms-meta-target*
allowedMethods:
- GET
- HEAD
- POST
- OPTIONS
- MERGE
- PUT
allowedOrigins:
- http://www.contoso.com
- http://www.fabrikam.com
exposedHeaders:
- x-ms-meta-*
maxAgeInSeconds: 100
- allowedHeaders:
- '*'
allowedMethods:
- GET
allowedOrigins:
- '*'
exposedHeaders:
- '*'
maxAgeInSeconds: 2
- allowedHeaders:
- x-ms-meta-12345675754564*
allowedMethods:
- GET
- PUT
allowedOrigins:
- http://www.abc23.com
- https://www.fabrikam.com/*
exposedHeaders:
- x-ms-meta-abc
- x-ms-meta-data*
- x -ms-meta-target*
maxAgeInSeconds: 2000
defaultServiceVersion: 2017-07-29
deleteRetentionPolicy:
days: 300
enabled: true
isVersioningEnabled: true
resourceGroupName: res4410
Create BlobServiceProperties Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new BlobServiceProperties(name: string, args: BlobServicePropertiesArgs, opts?: CustomResourceOptions);
@overload
def BlobServiceProperties(resource_name: str,
args: BlobServicePropertiesArgs,
opts: Optional[ResourceOptions] = None)
@overload
def BlobServiceProperties(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
automatic_snapshot_policy_enabled: Optional[bool] = None,
blob_services_name: Optional[str] = None,
change_feed: Optional[ChangeFeedArgs] = None,
container_delete_retention_policy: Optional[DeleteRetentionPolicyArgs] = None,
cors: Optional[CorsRulesArgs] = None,
default_service_version: Optional[str] = None,
delete_retention_policy: Optional[DeleteRetentionPolicyArgs] = None,
is_versioning_enabled: Optional[bool] = None,
last_access_time_tracking_policy: Optional[LastAccessTimeTrackingPolicyArgs] = None,
restore_policy: Optional[RestorePolicyPropertiesArgs] = None)
func NewBlobServiceProperties(ctx *Context, name string, args BlobServicePropertiesArgs, opts ...ResourceOption) (*BlobServiceProperties, error)
public BlobServiceProperties(string name, BlobServicePropertiesArgs args, CustomResourceOptions? opts = null)
public BlobServiceProperties(String name, BlobServicePropertiesArgs args)
public BlobServiceProperties(String name, BlobServicePropertiesArgs args, CustomResourceOptions options)
type: azure-native:storage:BlobServiceProperties
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 BlobServicePropertiesArgs
- 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 BlobServicePropertiesArgs
- 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 BlobServicePropertiesArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BlobServicePropertiesArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BlobServicePropertiesArgs
- 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 blobServicePropertiesResource = new AzureNative.Storage.BlobServiceProperties("blobServicePropertiesResource", new()
{
AccountName = "string",
ResourceGroupName = "string",
AutomaticSnapshotPolicyEnabled = false,
BlobServicesName = "string",
ChangeFeed = new AzureNative.Storage.Inputs.ChangeFeedArgs
{
Enabled = false,
RetentionInDays = 0,
},
ContainerDeleteRetentionPolicy = new AzureNative.Storage.Inputs.DeleteRetentionPolicyArgs
{
AllowPermanentDelete = false,
Days = 0,
Enabled = false,
},
Cors = new AzureNative.Storage.Inputs.CorsRulesArgs
{
CorsRules = new[]
{
new AzureNative.Storage.Inputs.CorsRuleArgs
{
AllowedHeaders = new[]
{
"string",
},
AllowedMethods = new[]
{
"string",
},
AllowedOrigins = new[]
{
"string",
},
ExposedHeaders = new[]
{
"string",
},
MaxAgeInSeconds = 0,
},
},
},
DefaultServiceVersion = "string",
DeleteRetentionPolicy = new AzureNative.Storage.Inputs.DeleteRetentionPolicyArgs
{
AllowPermanentDelete = false,
Days = 0,
Enabled = false,
},
IsVersioningEnabled = false,
LastAccessTimeTrackingPolicy = new AzureNative.Storage.Inputs.LastAccessTimeTrackingPolicyArgs
{
Enable = false,
BlobType = new[]
{
"string",
},
Name = "string",
TrackingGranularityInDays = 0,
},
RestorePolicy = new AzureNative.Storage.Inputs.RestorePolicyPropertiesArgs
{
Enabled = false,
Days = 0,
},
});
example, err := storage.NewBlobServiceProperties(ctx, "blobServicePropertiesResource", &storage.BlobServicePropertiesArgs{
AccountName: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
AutomaticSnapshotPolicyEnabled: pulumi.Bool(false),
BlobServicesName: pulumi.String("string"),
ChangeFeed: &storage.ChangeFeedArgs{
Enabled: pulumi.Bool(false),
RetentionInDays: pulumi.Int(0),
},
ContainerDeleteRetentionPolicy: &storage.DeleteRetentionPolicyArgs{
AllowPermanentDelete: pulumi.Bool(false),
Days: pulumi.Int(0),
Enabled: pulumi.Bool(false),
},
Cors: &storage.CorsRulesArgs{
CorsRules: storage.CorsRuleArray{
&storage.CorsRuleArgs{
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),
},
},
},
DefaultServiceVersion: pulumi.String("string"),
DeleteRetentionPolicy: &storage.DeleteRetentionPolicyArgs{
AllowPermanentDelete: pulumi.Bool(false),
Days: pulumi.Int(0),
Enabled: pulumi.Bool(false),
},
IsVersioningEnabled: pulumi.Bool(false),
LastAccessTimeTrackingPolicy: &storage.LastAccessTimeTrackingPolicyArgs{
Enable: pulumi.Bool(false),
BlobType: pulumi.StringArray{
pulumi.String("string"),
},
Name: pulumi.String("string"),
TrackingGranularityInDays: pulumi.Int(0),
},
RestorePolicy: &storage.RestorePolicyPropertiesArgs{
Enabled: pulumi.Bool(false),
Days: pulumi.Int(0),
},
})
var blobServicePropertiesResource = new BlobServiceProperties("blobServicePropertiesResource", BlobServicePropertiesArgs.builder()
.accountName("string")
.resourceGroupName("string")
.automaticSnapshotPolicyEnabled(false)
.blobServicesName("string")
.changeFeed(ChangeFeedArgs.builder()
.enabled(false)
.retentionInDays(0)
.build())
.containerDeleteRetentionPolicy(DeleteRetentionPolicyArgs.builder()
.allowPermanentDelete(false)
.days(0)
.enabled(false)
.build())
.cors(CorsRulesArgs.builder()
.corsRules(CorsRuleArgs.builder()
.allowedHeaders("string")
.allowedMethods("string")
.allowedOrigins("string")
.exposedHeaders("string")
.maxAgeInSeconds(0)
.build())
.build())
.defaultServiceVersion("string")
.deleteRetentionPolicy(DeleteRetentionPolicyArgs.builder()
.allowPermanentDelete(false)
.days(0)
.enabled(false)
.build())
.isVersioningEnabled(false)
.lastAccessTimeTrackingPolicy(LastAccessTimeTrackingPolicyArgs.builder()
.enable(false)
.blobType("string")
.name("string")
.trackingGranularityInDays(0)
.build())
.restorePolicy(RestorePolicyPropertiesArgs.builder()
.enabled(false)
.days(0)
.build())
.build());
blob_service_properties_resource = azure_native.storage.BlobServiceProperties("blobServicePropertiesResource",
account_name="string",
resource_group_name="string",
automatic_snapshot_policy_enabled=False,
blob_services_name="string",
change_feed={
"enabled": False,
"retention_in_days": 0,
},
container_delete_retention_policy={
"allow_permanent_delete": False,
"days": 0,
"enabled": False,
},
cors={
"cors_rules": [{
"allowed_headers": ["string"],
"allowed_methods": ["string"],
"allowed_origins": ["string"],
"exposed_headers": ["string"],
"max_age_in_seconds": 0,
}],
},
default_service_version="string",
delete_retention_policy={
"allow_permanent_delete": False,
"days": 0,
"enabled": False,
},
is_versioning_enabled=False,
last_access_time_tracking_policy={
"enable": False,
"blob_type": ["string"],
"name": "string",
"tracking_granularity_in_days": 0,
},
restore_policy={
"enabled": False,
"days": 0,
})
const blobServicePropertiesResource = new azure_native.storage.BlobServiceProperties("blobServicePropertiesResource", {
accountName: "string",
resourceGroupName: "string",
automaticSnapshotPolicyEnabled: false,
blobServicesName: "string",
changeFeed: {
enabled: false,
retentionInDays: 0,
},
containerDeleteRetentionPolicy: {
allowPermanentDelete: false,
days: 0,
enabled: false,
},
cors: {
corsRules: [{
allowedHeaders: ["string"],
allowedMethods: ["string"],
allowedOrigins: ["string"],
exposedHeaders: ["string"],
maxAgeInSeconds: 0,
}],
},
defaultServiceVersion: "string",
deleteRetentionPolicy: {
allowPermanentDelete: false,
days: 0,
enabled: false,
},
isVersioningEnabled: false,
lastAccessTimeTrackingPolicy: {
enable: false,
blobType: ["string"],
name: "string",
trackingGranularityInDays: 0,
},
restorePolicy: {
enabled: false,
days: 0,
},
});
type: azure-native:storage:BlobServiceProperties
properties:
accountName: string
automaticSnapshotPolicyEnabled: false
blobServicesName: string
changeFeed:
enabled: false
retentionInDays: 0
containerDeleteRetentionPolicy:
allowPermanentDelete: false
days: 0
enabled: false
cors:
corsRules:
- allowedHeaders:
- string
allowedMethods:
- string
allowedOrigins:
- string
exposedHeaders:
- string
maxAgeInSeconds: 0
defaultServiceVersion: string
deleteRetentionPolicy:
allowPermanentDelete: false
days: 0
enabled: false
isVersioningEnabled: false
lastAccessTimeTrackingPolicy:
blobType:
- string
enable: false
name: string
trackingGranularityInDays: 0
resourceGroupName: string
restorePolicy:
days: 0
enabled: false
BlobServiceProperties 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 BlobServiceProperties resource accepts the following input properties:
- Account
Name string - The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
- Resource
Group stringName - The name of the resource group within the user's subscription. The name is case insensitive.
- Automatic
Snapshot boolPolicy Enabled - Deprecated in favor of isVersioningEnabled property.
- Blob
Services stringName - The name of the blob Service within the specified storage account. Blob Service Name must be 'default'
- Change
Feed Pulumi.Azure Native. Storage. Inputs. Change Feed - The blob service properties for change feed events.
- Container
Delete Pulumi.Retention Policy Azure Native. Storage. Inputs. Delete Retention Policy - The blob service properties for container soft delete.
- Cors
Pulumi.
Azure Native. Storage. Inputs. Cors Rules - Specifies CORS rules for the Blob service. You can include up to five CorsRule elements in the request. If no CorsRule elements are included in the request body, all CORS rules will be deleted, and CORS will be disabled for the Blob service.
- Default
Service stringVersion - DefaultServiceVersion indicates the default version to use for requests to the Blob service if an incoming request’s version is not specified. Possible values include version 2008-10-27 and all more recent versions.
- Delete
Retention Pulumi.Policy Azure Native. Storage. Inputs. Delete Retention Policy - The blob service properties for blob soft delete.
- Is
Versioning boolEnabled - Versioning is enabled if set to true.
- Last
Access Pulumi.Time Tracking Policy Azure Native. Storage. Inputs. Last Access Time Tracking Policy - The blob service property to configure last access time based tracking policy.
- Restore
Policy Pulumi.Azure Native. Storage. Inputs. Restore Policy Properties - The blob service properties for blob restore policy.
- Account
Name string - The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
- Resource
Group stringName - The name of the resource group within the user's subscription. The name is case insensitive.
- Automatic
Snapshot boolPolicy Enabled - Deprecated in favor of isVersioningEnabled property.
- Blob
Services stringName - The name of the blob Service within the specified storage account. Blob Service Name must be 'default'
- Change
Feed ChangeFeed Args - The blob service properties for change feed events.
- Container
Delete DeleteRetention Policy Retention Policy Args - The blob service properties for container soft delete.
- Cors
Cors
Rules Args - Specifies CORS rules for the Blob service. You can include up to five CorsRule elements in the request. If no CorsRule elements are included in the request body, all CORS rules will be deleted, and CORS will be disabled for the Blob service.
- Default
Service stringVersion - DefaultServiceVersion indicates the default version to use for requests to the Blob service if an incoming request’s version is not specified. Possible values include version 2008-10-27 and all more recent versions.
- Delete
Retention DeletePolicy Retention Policy Args - The blob service properties for blob soft delete.
- Is
Versioning boolEnabled - Versioning is enabled if set to true.
- Last
Access LastTime Tracking Policy Access Time Tracking Policy Args - The blob service property to configure last access time based tracking policy.
- Restore
Policy RestorePolicy Properties Args - The blob service properties for blob restore policy.
- account
Name String - The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
- resource
Group StringName - The name of the resource group within the user's subscription. The name is case insensitive.
- automatic
Snapshot BooleanPolicy Enabled - Deprecated in favor of isVersioningEnabled property.
- blob
Services StringName - The name of the blob Service within the specified storage account. Blob Service Name must be 'default'
- change
Feed ChangeFeed - The blob service properties for change feed events.
- container
Delete DeleteRetention Policy Retention Policy - The blob service properties for container soft delete.
- cors
Cors
Rules - Specifies CORS rules for the Blob service. You can include up to five CorsRule elements in the request. If no CorsRule elements are included in the request body, all CORS rules will be deleted, and CORS will be disabled for the Blob service.
- default
Service StringVersion - DefaultServiceVersion indicates the default version to use for requests to the Blob service if an incoming request’s version is not specified. Possible values include version 2008-10-27 and all more recent versions.
- delete
Retention DeletePolicy Retention Policy - The blob service properties for blob soft delete.
- is
Versioning BooleanEnabled - Versioning is enabled if set to true.
- last
Access LastTime Tracking Policy Access Time Tracking Policy - The blob service property to configure last access time based tracking policy.
- restore
Policy RestorePolicy Properties - The blob service properties for blob restore policy.
- account
Name string - The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
- resource
Group stringName - The name of the resource group within the user's subscription. The name is case insensitive.
- automatic
Snapshot booleanPolicy Enabled - Deprecated in favor of isVersioningEnabled property.
- blob
Services stringName - The name of the blob Service within the specified storage account. Blob Service Name must be 'default'
- change
Feed ChangeFeed - The blob service properties for change feed events.
- container
Delete DeleteRetention Policy Retention Policy - The blob service properties for container soft delete.
- cors
Cors
Rules - Specifies CORS rules for the Blob service. You can include up to five CorsRule elements in the request. If no CorsRule elements are included in the request body, all CORS rules will be deleted, and CORS will be disabled for the Blob service.
- default
Service stringVersion - DefaultServiceVersion indicates the default version to use for requests to the Blob service if an incoming request’s version is not specified. Possible values include version 2008-10-27 and all more recent versions.
- delete
Retention DeletePolicy Retention Policy - The blob service properties for blob soft delete.
- is
Versioning booleanEnabled - Versioning is enabled if set to true.
- last
Access LastTime Tracking Policy Access Time Tracking Policy - The blob service property to configure last access time based tracking policy.
- restore
Policy RestorePolicy Properties - The blob service properties for blob restore policy.
- account_
name str - The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
- resource_
group_ strname - The name of the resource group within the user's subscription. The name is case insensitive.
- automatic_
snapshot_ boolpolicy_ enabled - Deprecated in favor of isVersioningEnabled property.
- blob_
services_ strname - The name of the blob Service within the specified storage account. Blob Service Name must be 'default'
- change_
feed ChangeFeed Args - The blob service properties for change feed events.
- container_
delete_ Deleteretention_ policy Retention Policy Args - The blob service properties for container soft delete.
- cors
Cors
Rules Args - Specifies CORS rules for the Blob service. You can include up to five CorsRule elements in the request. If no CorsRule elements are included in the request body, all CORS rules will be deleted, and CORS will be disabled for the Blob service.
- default_
service_ strversion - DefaultServiceVersion indicates the default version to use for requests to the Blob service if an incoming request’s version is not specified. Possible values include version 2008-10-27 and all more recent versions.
- delete_
retention_ Deletepolicy Retention Policy Args - The blob service properties for blob soft delete.
- is_
versioning_ boolenabled - Versioning is enabled if set to true.
- last_
access_ Lasttime_ tracking_ policy Access Time Tracking Policy Args - The blob service property to configure last access time based tracking policy.
- restore_
policy RestorePolicy Properties Args - The blob service properties for blob restore policy.
- account
Name String - The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
- resource
Group StringName - The name of the resource group within the user's subscription. The name is case insensitive.
- automatic
Snapshot BooleanPolicy Enabled - Deprecated in favor of isVersioningEnabled property.
- blob
Services StringName - The name of the blob Service within the specified storage account. Blob Service Name must be 'default'
- change
Feed Property Map - The blob service properties for change feed events.
- container
Delete Property MapRetention Policy - The blob service properties for container soft delete.
- cors Property Map
- Specifies CORS rules for the Blob service. You can include up to five CorsRule elements in the request. If no CorsRule elements are included in the request body, all CORS rules will be deleted, and CORS will be disabled for the Blob service.
- default
Service StringVersion - DefaultServiceVersion indicates the default version to use for requests to the Blob service if an incoming request’s version is not specified. Possible values include version 2008-10-27 and all more recent versions.
- delete
Retention Property MapPolicy - The blob service properties for blob soft delete.
- is
Versioning BooleanEnabled - Versioning is enabled if set to true.
- last
Access Property MapTime Tracking Policy - The blob service property to configure last access time based tracking policy.
- restore
Policy Property Map - The blob service properties for blob restore policy.
Outputs
All input properties are implicitly available as output properties. Additionally, the BlobServiceProperties resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Sku
Pulumi.
Azure Native. Storage. Outputs. Sku Response - Sku name and tier.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Sku
Sku
Response - Sku name and tier.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- sku
Sku
Response - Sku name and tier.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- sku
Sku
Response - Sku name and tier.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource
- sku
Sku
Response - Sku name and tier.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- sku Property Map
- Sku name and tier.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
AllowedMethods, AllowedMethodsArgs
- DELETE
- DELETE
- GET
- GET
- HEAD
- HEAD
- MERGE
- MERGE
- POST
- POST
- OPTIONS
- OPTIONS
- PUT
- PUT
- PATCH
- PATCH
- Allowed
Methods DELETE - DELETE
- Allowed
Methods GET - GET
- Allowed
Methods HEAD - HEAD
- Allowed
Methods MERGE - MERGE
- Allowed
Methods POST - POST
- Allowed
Methods OPTIONS - OPTIONS
- Allowed
Methods PUT - PUT
- Allowed
Methods PATCH - PATCH
- DELETE
- DELETE
- GET
- GET
- HEAD
- HEAD
- MERGE
- MERGE
- POST
- POST
- OPTIONS
- OPTIONS
- PUT
- PUT
- PATCH
- PATCH
- DELETE
- DELETE
- GET
- GET
- HEAD
- HEAD
- MERGE
- MERGE
- POST
- POST
- OPTIONS
- OPTIONS
- PUT
- PUT
- PATCH
- PATCH
- DELETE
- DELETE
- GET
- GET
- HEAD
- HEAD
- MERGE
- MERGE
- POST
- POST
- OPTIONS
- OPTIONS
- PUT
- PUT
- PATCH
- PATCH
- "DELETE"
- DELETE
- "GET"
- GET
- "HEAD"
- HEAD
- "MERGE"
- MERGE
- "POST"
- POST
- "OPTIONS"
- OPTIONS
- "PUT"
- PUT
- "PATCH"
- PATCH
ChangeFeed, ChangeFeedArgs
- Enabled bool
- Indicates whether change feed event logging is enabled for the Blob service.
- Retention
In intDays - Indicates the duration of changeFeed retention in days. Minimum value is 1 day and maximum value is 146000 days (400 years). A null value indicates an infinite retention of the change feed.
- Enabled bool
- Indicates whether change feed event logging is enabled for the Blob service.
- Retention
In intDays - Indicates the duration of changeFeed retention in days. Minimum value is 1 day and maximum value is 146000 days (400 years). A null value indicates an infinite retention of the change feed.
- enabled Boolean
- Indicates whether change feed event logging is enabled for the Blob service.
- retention
In IntegerDays - Indicates the duration of changeFeed retention in days. Minimum value is 1 day and maximum value is 146000 days (400 years). A null value indicates an infinite retention of the change feed.
- enabled boolean
- Indicates whether change feed event logging is enabled for the Blob service.
- retention
In numberDays - Indicates the duration of changeFeed retention in days. Minimum value is 1 day and maximum value is 146000 days (400 years). A null value indicates an infinite retention of the change feed.
- enabled bool
- Indicates whether change feed event logging is enabled for the Blob service.
- retention_
in_ intdays - Indicates the duration of changeFeed retention in days. Minimum value is 1 day and maximum value is 146000 days (400 years). A null value indicates an infinite retention of the change feed.
- enabled Boolean
- Indicates whether change feed event logging is enabled for the Blob service.
- retention
In NumberDays - Indicates the duration of changeFeed retention in days. Minimum value is 1 day and maximum value is 146000 days (400 years). A null value indicates an infinite retention of the change feed.
ChangeFeedResponse, ChangeFeedResponseArgs
- Enabled bool
- Indicates whether change feed event logging is enabled for the Blob service.
- Retention
In intDays - Indicates the duration of changeFeed retention in days. Minimum value is 1 day and maximum value is 146000 days (400 years). A null value indicates an infinite retention of the change feed.
- Enabled bool
- Indicates whether change feed event logging is enabled for the Blob service.
- Retention
In intDays - Indicates the duration of changeFeed retention in days. Minimum value is 1 day and maximum value is 146000 days (400 years). A null value indicates an infinite retention of the change feed.
- enabled Boolean
- Indicates whether change feed event logging is enabled for the Blob service.
- retention
In IntegerDays - Indicates the duration of changeFeed retention in days. Minimum value is 1 day and maximum value is 146000 days (400 years). A null value indicates an infinite retention of the change feed.
- enabled boolean
- Indicates whether change feed event logging is enabled for the Blob service.
- retention
In numberDays - Indicates the duration of changeFeed retention in days. Minimum value is 1 day and maximum value is 146000 days (400 years). A null value indicates an infinite retention of the change feed.
- enabled bool
- Indicates whether change feed event logging is enabled for the Blob service.
- retention_
in_ intdays - Indicates the duration of changeFeed retention in days. Minimum value is 1 day and maximum value is 146000 days (400 years). A null value indicates an infinite retention of the change feed.
- enabled Boolean
- Indicates whether change feed event logging is enabled for the Blob service.
- retention
In NumberDays - Indicates the duration of changeFeed retention in days. Minimum value is 1 day and maximum value is 146000 days (400 years). A null value indicates an infinite retention of the change feed.
CorsRule, CorsRuleArgs
- Allowed
Headers List<string> - Required if CorsRule element is present. A list of headers allowed to be part of the cross-origin request.
- Allowed
Methods List<Union<string, Pulumi.Azure Native. Storage. Allowed Methods>> - Required if CorsRule element is present. A list of HTTP methods that are allowed to be executed by the origin.
- Allowed
Origins List<string> - Required if CorsRule element is present. A list of origin domains that will be allowed via CORS, or "*" to allow all domains
- Exposed
Headers List<string> - Required if CorsRule element is present. A list of response headers to expose to CORS clients.
- Max
Age intIn Seconds - Required if CorsRule element is present. The number of seconds that the client/browser should cache a preflight response.
- Allowed
Headers []string - Required if CorsRule element is present. A list of headers allowed to be part of the cross-origin request.
- Allowed
Methods []string - Required if CorsRule element is present. A list of HTTP methods that are allowed to be executed by the origin.
- Allowed
Origins []string - Required if CorsRule element is present. A list of origin domains that will be allowed via CORS, or "*" to allow all domains
- Exposed
Headers []string - Required if CorsRule element is present. A list of response headers to expose to CORS clients.
- Max
Age intIn Seconds - Required if CorsRule element is present. The number of seconds that the client/browser should cache a preflight response.
- allowed
Headers List<String> - Required if CorsRule element is present. A list of headers allowed to be part of the cross-origin request.
- allowed
Methods List<Either<String,AllowedMethods>> - Required if CorsRule element is present. A list of HTTP methods that are allowed to be executed by the origin.
- allowed
Origins List<String> - Required if CorsRule element is present. A list of origin domains that will be allowed via CORS, or "*" to allow all domains
- exposed
Headers List<String> - Required if CorsRule element is present. A list of response headers to expose to CORS clients.
- max
Age IntegerIn Seconds - Required if CorsRule element is present. The number of seconds that the client/browser should cache a preflight response.
- allowed
Headers string[] - Required if CorsRule element is present. A list of headers allowed to be part of the cross-origin request.
- allowed
Methods (string | AllowedMethods)[] - Required if CorsRule element is present. A list of HTTP methods that are allowed to be executed by the origin.
- allowed
Origins string[] - Required if CorsRule element is present. A list of origin domains that will be allowed via CORS, or "*" to allow all domains
- exposed
Headers string[] - Required if CorsRule element is present. A list of response headers to expose to CORS clients.
- max
Age numberIn Seconds - Required if CorsRule element is present. The number of seconds that the client/browser should cache a preflight response.
- allowed_
headers Sequence[str] - Required if CorsRule element is present. A list of headers allowed to be part of the cross-origin request.
- allowed_
methods Sequence[Union[str, AllowedMethods]] - Required if CorsRule element is present. A list of HTTP methods that are allowed to be executed by the origin.
- allowed_
origins Sequence[str] - Required if CorsRule element is present. A list of origin domains that will be allowed via CORS, or "*" to allow all domains
- exposed_
headers Sequence[str] - Required if CorsRule element is present. A list of response headers to expose to CORS clients.
- max_
age_ intin_ seconds - Required if CorsRule element is present. The number of seconds that the client/browser should cache a preflight response.
- allowed
Headers List<String> - Required if CorsRule element is present. A list of headers allowed to be part of the cross-origin request.
- allowed
Methods List<String | "DELETE" | "GET" | "HEAD" | "MERGE" | "POST" | "OPTIONS" | "PUT" | "PATCH"> - Required if CorsRule element is present. A list of HTTP methods that are allowed to be executed by the origin.
- allowed
Origins List<String> - Required if CorsRule element is present. A list of origin domains that will be allowed via CORS, or "*" to allow all domains
- exposed
Headers List<String> - Required if CorsRule element is present. A list of response headers to expose to CORS clients.
- max
Age NumberIn Seconds - Required if CorsRule element is present. The number of seconds that the client/browser should cache a preflight response.
CorsRuleResponse, CorsRuleResponseArgs
- Allowed
Headers List<string> - Required if CorsRule element is present. A list of headers allowed to be part of the cross-origin request.
- Allowed
Methods List<string> - Required if CorsRule element is present. A list of HTTP methods that are allowed to be executed by the origin.
- Allowed
Origins List<string> - Required if CorsRule element is present. A list of origin domains that will be allowed via CORS, or "*" to allow all domains
- Exposed
Headers List<string> - Required if CorsRule element is present. A list of response headers to expose to CORS clients.
- Max
Age intIn Seconds - Required if CorsRule element is present. The number of seconds that the client/browser should cache a preflight response.
- Allowed
Headers []string - Required if CorsRule element is present. A list of headers allowed to be part of the cross-origin request.
- Allowed
Methods []string - Required if CorsRule element is present. A list of HTTP methods that are allowed to be executed by the origin.
- Allowed
Origins []string - Required if CorsRule element is present. A list of origin domains that will be allowed via CORS, or "*" to allow all domains
- Exposed
Headers []string - Required if CorsRule element is present. A list of response headers to expose to CORS clients.
- Max
Age intIn Seconds - Required if CorsRule element is present. The number of seconds that the client/browser should cache a preflight response.
- allowed
Headers List<String> - Required if CorsRule element is present. A list of headers allowed to be part of the cross-origin request.
- allowed
Methods List<String> - Required if CorsRule element is present. A list of HTTP methods that are allowed to be executed by the origin.
- allowed
Origins List<String> - Required if CorsRule element is present. A list of origin domains that will be allowed via CORS, or "*" to allow all domains
- exposed
Headers List<String> - Required if CorsRule element is present. A list of response headers to expose to CORS clients.
- max
Age IntegerIn Seconds - Required if CorsRule element is present. The number of seconds that the client/browser should cache a preflight response.
- allowed
Headers string[] - Required if CorsRule element is present. A list of headers allowed to be part of the cross-origin request.
- allowed
Methods string[] - Required if CorsRule element is present. A list of HTTP methods that are allowed to be executed by the origin.
- allowed
Origins string[] - Required if CorsRule element is present. A list of origin domains that will be allowed via CORS, or "*" to allow all domains
- exposed
Headers string[] - Required if CorsRule element is present. A list of response headers to expose to CORS clients.
- max
Age numberIn Seconds - Required if CorsRule element is present. The number of seconds that the client/browser should cache a preflight response.
- allowed_
headers Sequence[str] - Required if CorsRule element is present. A list of headers allowed to be part of the cross-origin request.
- allowed_
methods Sequence[str] - Required if CorsRule element is present. A list of HTTP methods that are allowed to be executed by the origin.
- allowed_
origins Sequence[str] - Required if CorsRule element is present. A list of origin domains that will be allowed via CORS, or "*" to allow all domains
- exposed_
headers Sequence[str] - Required if CorsRule element is present. A list of response headers to expose to CORS clients.
- max_
age_ intin_ seconds - Required if CorsRule element is present. The number of seconds that the client/browser should cache a preflight response.
- allowed
Headers List<String> - Required if CorsRule element is present. A list of headers allowed to be part of the cross-origin request.
- allowed
Methods List<String> - Required if CorsRule element is present. A list of HTTP methods that are allowed to be executed by the origin.
- allowed
Origins List<String> - Required if CorsRule element is present. A list of origin domains that will be allowed via CORS, or "*" to allow all domains
- exposed
Headers List<String> - Required if CorsRule element is present. A list of response headers to expose to CORS clients.
- max
Age NumberIn Seconds - Required if CorsRule element is present. The number of seconds that the client/browser should cache a preflight response.
CorsRules, CorsRulesArgs
- Cors
Rules List<Pulumi.Azure Native. Storage. Inputs. Cors Rule> - The List of CORS rules. You can include up to five CorsRule elements in the request.
- Cors
Rules []CorsRule - The List of CORS rules. You can include up to five CorsRule elements in the request.
- cors
Rules List<CorsRule> - The List of CORS rules. You can include up to five CorsRule elements in the request.
- cors
Rules CorsRule[] - The List of CORS rules. You can include up to five CorsRule elements in the request.
- cors_
rules Sequence[CorsRule] - The List of CORS rules. You can include up to five CorsRule elements in the request.
- cors
Rules List<Property Map> - The List of CORS rules. You can include up to five CorsRule elements in the request.
CorsRulesResponse, CorsRulesResponseArgs
- Cors
Rules List<Pulumi.Azure Native. Storage. Inputs. Cors Rule Response> - The List of CORS rules. You can include up to five CorsRule elements in the request.
- Cors
Rules []CorsRule Response - The List of CORS rules. You can include up to five CorsRule elements in the request.
- cors
Rules List<CorsRule Response> - The List of CORS rules. You can include up to five CorsRule elements in the request.
- cors
Rules CorsRule Response[] - The List of CORS rules. You can include up to five CorsRule elements in the request.
- cors_
rules Sequence[CorsRule Response] - The List of CORS rules. You can include up to five CorsRule elements in the request.
- cors
Rules List<Property Map> - The List of CORS rules. You can include up to five CorsRule elements in the request.
DeleteRetentionPolicy, DeleteRetentionPolicyArgs
- Allow
Permanent boolDelete - This property when set to true allows deletion of the soft deleted blob versions and snapshots. This property cannot be used blob restore policy. This property only applies to blob service and does not apply to containers or file share.
- Days int
- Indicates the number of days that the deleted item should be retained. The minimum specified value can be 1 and the maximum value can be 365.
- Enabled bool
- Indicates whether DeleteRetentionPolicy is enabled.
- Allow
Permanent boolDelete - This property when set to true allows deletion of the soft deleted blob versions and snapshots. This property cannot be used blob restore policy. This property only applies to blob service and does not apply to containers or file share.
- Days int
- Indicates the number of days that the deleted item should be retained. The minimum specified value can be 1 and the maximum value can be 365.
- Enabled bool
- Indicates whether DeleteRetentionPolicy is enabled.
- allow
Permanent BooleanDelete - This property when set to true allows deletion of the soft deleted blob versions and snapshots. This property cannot be used blob restore policy. This property only applies to blob service and does not apply to containers or file share.
- days Integer
- Indicates the number of days that the deleted item should be retained. The minimum specified value can be 1 and the maximum value can be 365.
- enabled Boolean
- Indicates whether DeleteRetentionPolicy is enabled.
- allow
Permanent booleanDelete - This property when set to true allows deletion of the soft deleted blob versions and snapshots. This property cannot be used blob restore policy. This property only applies to blob service and does not apply to containers or file share.
- days number
- Indicates the number of days that the deleted item should be retained. The minimum specified value can be 1 and the maximum value can be 365.
- enabled boolean
- Indicates whether DeleteRetentionPolicy is enabled.
- allow_
permanent_ booldelete - This property when set to true allows deletion of the soft deleted blob versions and snapshots. This property cannot be used blob restore policy. This property only applies to blob service and does not apply to containers or file share.
- days int
- Indicates the number of days that the deleted item should be retained. The minimum specified value can be 1 and the maximum value can be 365.
- enabled bool
- Indicates whether DeleteRetentionPolicy is enabled.
- allow
Permanent BooleanDelete - This property when set to true allows deletion of the soft deleted blob versions and snapshots. This property cannot be used blob restore policy. This property only applies to blob service and does not apply to containers or file share.
- days Number
- Indicates the number of days that the deleted item should be retained. The minimum specified value can be 1 and the maximum value can be 365.
- enabled Boolean
- Indicates whether DeleteRetentionPolicy is enabled.
DeleteRetentionPolicyResponse, DeleteRetentionPolicyResponseArgs
- Allow
Permanent boolDelete - This property when set to true allows deletion of the soft deleted blob versions and snapshots. This property cannot be used blob restore policy. This property only applies to blob service and does not apply to containers or file share.
- Days int
- Indicates the number of days that the deleted item should be retained. The minimum specified value can be 1 and the maximum value can be 365.
- Enabled bool
- Indicates whether DeleteRetentionPolicy is enabled.
- Allow
Permanent boolDelete - This property when set to true allows deletion of the soft deleted blob versions and snapshots. This property cannot be used blob restore policy. This property only applies to blob service and does not apply to containers or file share.
- Days int
- Indicates the number of days that the deleted item should be retained. The minimum specified value can be 1 and the maximum value can be 365.
- Enabled bool
- Indicates whether DeleteRetentionPolicy is enabled.
- allow
Permanent BooleanDelete - This property when set to true allows deletion of the soft deleted blob versions and snapshots. This property cannot be used blob restore policy. This property only applies to blob service and does not apply to containers or file share.
- days Integer
- Indicates the number of days that the deleted item should be retained. The minimum specified value can be 1 and the maximum value can be 365.
- enabled Boolean
- Indicates whether DeleteRetentionPolicy is enabled.
- allow
Permanent booleanDelete - This property when set to true allows deletion of the soft deleted blob versions and snapshots. This property cannot be used blob restore policy. This property only applies to blob service and does not apply to containers or file share.
- days number
- Indicates the number of days that the deleted item should be retained. The minimum specified value can be 1 and the maximum value can be 365.
- enabled boolean
- Indicates whether DeleteRetentionPolicy is enabled.
- allow_
permanent_ booldelete - This property when set to true allows deletion of the soft deleted blob versions and snapshots. This property cannot be used blob restore policy. This property only applies to blob service and does not apply to containers or file share.
- days int
- Indicates the number of days that the deleted item should be retained. The minimum specified value can be 1 and the maximum value can be 365.
- enabled bool
- Indicates whether DeleteRetentionPolicy is enabled.
- allow
Permanent BooleanDelete - This property when set to true allows deletion of the soft deleted blob versions and snapshots. This property cannot be used blob restore policy. This property only applies to blob service and does not apply to containers or file share.
- days Number
- Indicates the number of days that the deleted item should be retained. The minimum specified value can be 1 and the maximum value can be 365.
- enabled Boolean
- Indicates whether DeleteRetentionPolicy is enabled.
LastAccessTimeTrackingPolicy, LastAccessTimeTrackingPolicyArgs
- Enable bool
- When set to true last access time based tracking is enabled.
- Blob
Type List<string> - An array of predefined supported blob types. Only blockBlob is the supported value. This field is currently read only
- Name
string | Pulumi.
Azure Native. Storage. Name - Name of the policy. The valid value is AccessTimeTracking. This field is currently read only
- Tracking
Granularity intIn Days - The field specifies blob object tracking granularity in days, typically how often the blob object should be tracked.This field is currently read only with value as 1
- Enable bool
- When set to true last access time based tracking is enabled.
- Blob
Type []string - An array of predefined supported blob types. Only blockBlob is the supported value. This field is currently read only
- Name string | Name
- Name of the policy. The valid value is AccessTimeTracking. This field is currently read only
- Tracking
Granularity intIn Days - The field specifies blob object tracking granularity in days, typically how often the blob object should be tracked.This field is currently read only with value as 1
- enable Boolean
- When set to true last access time based tracking is enabled.
- blob
Type List<String> - An array of predefined supported blob types. Only blockBlob is the supported value. This field is currently read only
- name String | Name
- Name of the policy. The valid value is AccessTimeTracking. This field is currently read only
- tracking
Granularity IntegerIn Days - The field specifies blob object tracking granularity in days, typically how often the blob object should be tracked.This field is currently read only with value as 1
- enable boolean
- When set to true last access time based tracking is enabled.
- blob
Type string[] - An array of predefined supported blob types. Only blockBlob is the supported value. This field is currently read only
- name string | Name
- Name of the policy. The valid value is AccessTimeTracking. This field is currently read only
- tracking
Granularity numberIn Days - The field specifies blob object tracking granularity in days, typically how often the blob object should be tracked.This field is currently read only with value as 1
- enable bool
- When set to true last access time based tracking is enabled.
- blob_
type Sequence[str] - An array of predefined supported blob types. Only blockBlob is the supported value. This field is currently read only
- name str | Name
- Name of the policy. The valid value is AccessTimeTracking. This field is currently read only
- tracking_
granularity_ intin_ days - The field specifies blob object tracking granularity in days, typically how often the blob object should be tracked.This field is currently read only with value as 1
- enable Boolean
- When set to true last access time based tracking is enabled.
- blob
Type List<String> - An array of predefined supported blob types. Only blockBlob is the supported value. This field is currently read only
- name
String | "Access
Time Tracking" - Name of the policy. The valid value is AccessTimeTracking. This field is currently read only
- tracking
Granularity NumberIn Days - The field specifies blob object tracking granularity in days, typically how often the blob object should be tracked.This field is currently read only with value as 1
LastAccessTimeTrackingPolicyResponse, LastAccessTimeTrackingPolicyResponseArgs
- Enable bool
- When set to true last access time based tracking is enabled.
- Blob
Type List<string> - An array of predefined supported blob types. Only blockBlob is the supported value. This field is currently read only
- Name string
- Name of the policy. The valid value is AccessTimeTracking. This field is currently read only
- Tracking
Granularity intIn Days - The field specifies blob object tracking granularity in days, typically how often the blob object should be tracked.This field is currently read only with value as 1
- Enable bool
- When set to true last access time based tracking is enabled.
- Blob
Type []string - An array of predefined supported blob types. Only blockBlob is the supported value. This field is currently read only
- Name string
- Name of the policy. The valid value is AccessTimeTracking. This field is currently read only
- Tracking
Granularity intIn Days - The field specifies blob object tracking granularity in days, typically how often the blob object should be tracked.This field is currently read only with value as 1
- enable Boolean
- When set to true last access time based tracking is enabled.
- blob
Type List<String> - An array of predefined supported blob types. Only blockBlob is the supported value. This field is currently read only
- name String
- Name of the policy. The valid value is AccessTimeTracking. This field is currently read only
- tracking
Granularity IntegerIn Days - The field specifies blob object tracking granularity in days, typically how often the blob object should be tracked.This field is currently read only with value as 1
- enable boolean
- When set to true last access time based tracking is enabled.
- blob
Type string[] - An array of predefined supported blob types. Only blockBlob is the supported value. This field is currently read only
- name string
- Name of the policy. The valid value is AccessTimeTracking. This field is currently read only
- tracking
Granularity numberIn Days - The field specifies blob object tracking granularity in days, typically how often the blob object should be tracked.This field is currently read only with value as 1
- enable bool
- When set to true last access time based tracking is enabled.
- blob_
type Sequence[str] - An array of predefined supported blob types. Only blockBlob is the supported value. This field is currently read only
- name str
- Name of the policy. The valid value is AccessTimeTracking. This field is currently read only
- tracking_
granularity_ intin_ days - The field specifies blob object tracking granularity in days, typically how often the blob object should be tracked.This field is currently read only with value as 1
- enable Boolean
- When set to true last access time based tracking is enabled.
- blob
Type List<String> - An array of predefined supported blob types. Only blockBlob is the supported value. This field is currently read only
- name String
- Name of the policy. The valid value is AccessTimeTracking. This field is currently read only
- tracking
Granularity NumberIn Days - The field specifies blob object tracking granularity in days, typically how often the blob object should be tracked.This field is currently read only with value as 1
Name, NameArgs
- Access
Time Tracking - AccessTimeTracking
- Name
Access Time Tracking - AccessTimeTracking
- Access
Time Tracking - AccessTimeTracking
- Access
Time Tracking - AccessTimeTracking
- ACCESS_TIME_TRACKING
- AccessTimeTracking
- "Access
Time Tracking" - AccessTimeTracking
RestorePolicyProperties, RestorePolicyPropertiesArgs
RestorePolicyPropertiesResponse, RestorePolicyPropertiesResponseArgs
- Enabled bool
- Blob restore is enabled if set to true.
- Last
Enabled stringTime - Deprecated in favor of minRestoreTime property.
- Min
Restore stringTime - Returns the minimum date and time that the restore can be started.
- Days int
- how long this blob can be restored. It should be great than zero and less than DeleteRetentionPolicy.days.
- Enabled bool
- Blob restore is enabled if set to true.
- Last
Enabled stringTime - Deprecated in favor of minRestoreTime property.
- Min
Restore stringTime - Returns the minimum date and time that the restore can be started.
- Days int
- how long this blob can be restored. It should be great than zero and less than DeleteRetentionPolicy.days.
- enabled Boolean
- Blob restore is enabled if set to true.
- last
Enabled StringTime - Deprecated in favor of minRestoreTime property.
- min
Restore StringTime - Returns the minimum date and time that the restore can be started.
- days Integer
- how long this blob can be restored. It should be great than zero and less than DeleteRetentionPolicy.days.
- enabled boolean
- Blob restore is enabled if set to true.
- last
Enabled stringTime - Deprecated in favor of minRestoreTime property.
- min
Restore stringTime - Returns the minimum date and time that the restore can be started.
- days number
- how long this blob can be restored. It should be great than zero and less than DeleteRetentionPolicy.days.
- enabled bool
- Blob restore is enabled if set to true.
- last_
enabled_ strtime - Deprecated in favor of minRestoreTime property.
- min_
restore_ strtime - Returns the minimum date and time that the restore can be started.
- days int
- how long this blob can be restored. It should be great than zero and less than DeleteRetentionPolicy.days.
- enabled Boolean
- Blob restore is enabled if set to true.
- last
Enabled StringTime - Deprecated in favor of minRestoreTime property.
- min
Restore StringTime - Returns the minimum date and time that the restore can be started.
- days Number
- how long this blob can be restored. It should be great than zero and less than DeleteRetentionPolicy.days.
SkuResponse, SkuResponseArgs
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:storage:BlobServiceProperties default /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/{BlobServicesName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0