azure-native.storage.TableServiceProperties
Explore with Pulumi AI
The properties of a storage account’s Table service. API Version: 2021-02-01.
Example Usage
TableServicesPut
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var tableServiceProperties = new AzureNative.Storage.TableServiceProperties("tableServiceProperties", new()
{
AccountName = "sto8607",
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[]
{
"GET",
"HEAD",
"POST",
"OPTIONS",
"MERGE",
"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[]
{
"GET",
},
AllowedOrigins = new[]
{
"*",
},
ExposedHeaders = new[]
{
"*",
},
MaxAgeInSeconds = 2,
},
new AzureNative.Storage.Inputs.CorsRuleArgs
{
AllowedHeaders = new[]
{
"x-ms-meta-12345675754564*",
},
AllowedMethods = new[]
{
"GET",
"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,
},
},
},
ResourceGroupName = "res4410",
TableServiceName = "default",
});
});
package main
import (
storage "github.com/pulumi/pulumi-azure-native-sdk/storage"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := storage.NewTableServiceProperties(ctx, "tableServiceProperties", &storage.TableServicePropertiesArgs{
AccountName: pulumi.String("sto8607"),
Cors: storage.CorsRulesResponse{
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("GET"),
pulumi.String("HEAD"),
pulumi.String("POST"),
pulumi.String("OPTIONS"),
pulumi.String("MERGE"),
pulumi.String("PUT"),
},
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("GET"),
},
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("GET"),
pulumi.String("PUT"),
},
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),
},
},
},
ResourceGroupName: pulumi.String("res4410"),
TableServiceName: pulumi.String("default"),
})
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.TableServiceProperties;
import com.pulumi.azurenative.storage.TableServicePropertiesArgs;
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 tableServiceProperties = new TableServiceProperties("tableServiceProperties", TableServicePropertiesArgs.builder()
.accountName("sto8607")
.cors(Map.of("corsRules",
Map.ofEntries(
Map.entry("allowedHeaders",
"x-ms-meta-abc",
"x-ms-meta-data*",
"x-ms-meta-target*"),
Map.entry("allowedMethods",
"GET",
"HEAD",
"POST",
"OPTIONS",
"MERGE",
"PUT"),
Map.entry("allowedOrigins",
"http://www.contoso.com",
"http://www.fabrikam.com"),
Map.entry("exposedHeaders", "x-ms-meta-*"),
Map.entry("maxAgeInSeconds", 100)
),
Map.ofEntries(
Map.entry("allowedHeaders", "*"),
Map.entry("allowedMethods", "GET"),
Map.entry("allowedOrigins", "*"),
Map.entry("exposedHeaders", "*"),
Map.entry("maxAgeInSeconds", 2)
),
Map.ofEntries(
Map.entry("allowedHeaders", "x-ms-meta-12345675754564*"),
Map.entry("allowedMethods",
"GET",
"PUT"),
Map.entry("allowedOrigins",
"http://www.abc23.com",
"https://www.fabrikam.com/*"),
Map.entry("exposedHeaders",
"x-ms-meta-abc",
"x-ms-meta-data*",
"x-ms-meta-target*"),
Map.entry("maxAgeInSeconds", 2000)
)))
.resourceGroupName("res4410")
.tableServiceName("default")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
table_service_properties = azure_native.storage.TableServiceProperties("tableServiceProperties",
account_name="sto8607",
cors=azure_native.storage.CorsRulesResponseArgs(
cors_rules=[
azure_native.storage.CorsRuleArgs(
allowed_headers=[
"x-ms-meta-abc",
"x-ms-meta-data*",
"x-ms-meta-target*",
],
allowed_methods=[
"GET",
"HEAD",
"POST",
"OPTIONS",
"MERGE",
"PUT",
],
allowed_origins=[
"http://www.contoso.com",
"http://www.fabrikam.com",
],
exposed_headers=["x-ms-meta-*"],
max_age_in_seconds=100,
),
azure_native.storage.CorsRuleArgs(
allowed_headers=["*"],
allowed_methods=["GET"],
allowed_origins=["*"],
exposed_headers=["*"],
max_age_in_seconds=2,
),
azure_native.storage.CorsRuleArgs(
allowed_headers=["x-ms-meta-12345675754564*"],
allowed_methods=[
"GET",
"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,
),
],
),
resource_group_name="res4410",
table_service_name="default")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const tableServiceProperties = new azure_native.storage.TableServiceProperties("tableServiceProperties", {
accountName: "sto8607",
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,
},
],
},
resourceGroupName: "res4410",
tableServiceName: "default",
});
resources:
tableServiceProperties:
type: azure-native:storage:TableServiceProperties
properties:
accountName: sto8607
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
resourceGroupName: res4410
tableServiceName: default
Create TableServiceProperties Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TableServiceProperties(name: string, args: TableServicePropertiesArgs, opts?: CustomResourceOptions);
@overload
def TableServiceProperties(resource_name: str,
args: TableServicePropertiesArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TableServiceProperties(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
cors: Optional[CorsRulesArgs] = None,
table_service_name: Optional[str] = None)
func NewTableServiceProperties(ctx *Context, name string, args TableServicePropertiesArgs, opts ...ResourceOption) (*TableServiceProperties, error)
public TableServiceProperties(string name, TableServicePropertiesArgs args, CustomResourceOptions? opts = null)
public TableServiceProperties(String name, TableServicePropertiesArgs args)
public TableServiceProperties(String name, TableServicePropertiesArgs args, CustomResourceOptions options)
type: azure-native:storage:TableServiceProperties
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 TableServicePropertiesArgs
- 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 TableServicePropertiesArgs
- 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 TableServicePropertiesArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TableServicePropertiesArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TableServicePropertiesArgs
- 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 tableServicePropertiesResource = new AzureNative.Storage.TableServiceProperties("tableServicePropertiesResource", new()
{
AccountName = "string",
ResourceGroupName = "string",
Cors =
{
{ "corsRules", new[]
{
{
{ "allowedHeaders", new[]
{
"string",
} },
{ "allowedMethods", new[]
{
"string",
} },
{ "allowedOrigins", new[]
{
"string",
} },
{ "exposedHeaders", new[]
{
"string",
} },
{ "maxAgeInSeconds", 0 },
},
} },
},
TableServiceName = "string",
});
example, err := storage.NewTableServiceProperties(ctx, "tableServicePropertiesResource", &storage.TableServicePropertiesArgs{
AccountName: "string",
ResourceGroupName: "string",
Cors: map[string]interface{}{
"corsRules": []map[string]interface{}{
map[string]interface{}{
"allowedHeaders": []string{
"string",
},
"allowedMethods": []string{
"string",
},
"allowedOrigins": []string{
"string",
},
"exposedHeaders": []string{
"string",
},
"maxAgeInSeconds": 0,
},
},
},
TableServiceName: "string",
})
var tableServicePropertiesResource = new TableServiceProperties("tableServicePropertiesResource", TableServicePropertiesArgs.builder()
.accountName("string")
.resourceGroupName("string")
.cors(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.tableServiceName("string")
.build());
table_service_properties_resource = azure_native.storage.TableServiceProperties("tableServicePropertiesResource",
account_name=string,
resource_group_name=string,
cors={
corsRules: [{
allowedHeaders: [string],
allowedMethods: [string],
allowedOrigins: [string],
exposedHeaders: [string],
maxAgeInSeconds: 0,
}],
},
table_service_name=string)
const tableServicePropertiesResource = new azure_native.storage.TableServiceProperties("tableServicePropertiesResource", {
accountName: "string",
resourceGroupName: "string",
cors: {
corsRules: [{
allowedHeaders: ["string"],
allowedMethods: ["string"],
allowedOrigins: ["string"],
exposedHeaders: ["string"],
maxAgeInSeconds: 0,
}],
},
tableServiceName: "string",
});
type: azure-native:storage:TableServiceProperties
properties:
accountName: string
cors:
corsRules:
- allowedHeaders:
- string
allowedMethods:
- string
allowedOrigins:
- string
exposedHeaders:
- string
maxAgeInSeconds: 0
resourceGroupName: string
tableServiceName: string
TableServiceProperties 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 TableServiceProperties 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.
- Cors
Pulumi.
Azure Native. Storage. Inputs. Cors Rules - Specifies CORS rules for the Table 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 Table service.
- Table
Service stringName - The name of the Table Service within the specified storage account. Table Service Name must be 'default'
- 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.
- Cors
Cors
Rules Args - Specifies CORS rules for the Table 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 Table service.
- Table
Service stringName - The name of the Table Service within the specified storage account. Table Service Name must be 'default'
- 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.
- cors
Cors
Rules - Specifies CORS rules for the Table 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 Table service.
- table
Service StringName - The name of the Table Service within the specified storage account. Table Service Name must be 'default'
- 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.
- cors
Cors
Rules - Specifies CORS rules for the Table 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 Table service.
- table
Service stringName - The name of the Table Service within the specified storage account. Table Service Name must be 'default'
- 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.
- cors
Cors
Rules Args - Specifies CORS rules for the Table 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 Table service.
- table_
service_ strname - The name of the Table Service within the specified storage account. Table Service Name must be 'default'
- 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.
- cors Property Map
- Specifies CORS rules for the Table 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 Table service.
- table
Service StringName - The name of the Table Service within the specified storage account. Table Service Name must be 'default'
Outputs
All input properties are implicitly available as output properties. Additionally, the TableServiceProperties resource produces the following output properties:
Supporting Types
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<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.
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.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:storage:TableServiceProperties default /subscriptions/{subscription-id}/resourceGroups/res4410/providers/Microsoft.Storage/storageAccounts/sto8607/tableServices/default
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0