These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi
azure-native.storage.StorageAccountStaticWebsite
Explore with Pulumi AI
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi
Enables the static website feature of a storage account.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:storage:StorageAccountStaticWebsite myresource1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/staticWebsite
Create StorageAccountStaticWebsite Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new StorageAccountStaticWebsite(name: string, args: StorageAccountStaticWebsiteArgs, opts?: CustomResourceOptions);
@overload
def StorageAccountStaticWebsite(resource_name: str,
args: StorageAccountStaticWebsiteArgs,
opts: Optional[ResourceOptions] = None)
@overload
def StorageAccountStaticWebsite(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
error404_document: Optional[str] = None,
index_document: Optional[str] = None)
func NewStorageAccountStaticWebsite(ctx *Context, name string, args StorageAccountStaticWebsiteArgs, opts ...ResourceOption) (*StorageAccountStaticWebsite, error)
public StorageAccountStaticWebsite(string name, StorageAccountStaticWebsiteArgs args, CustomResourceOptions? opts = null)
public StorageAccountStaticWebsite(String name, StorageAccountStaticWebsiteArgs args)
public StorageAccountStaticWebsite(String name, StorageAccountStaticWebsiteArgs args, CustomResourceOptions options)
type: azure-native:storage:StorageAccountStaticWebsite
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 StorageAccountStaticWebsiteArgs
- 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 StorageAccountStaticWebsiteArgs
- 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 StorageAccountStaticWebsiteArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args StorageAccountStaticWebsiteArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args StorageAccountStaticWebsiteArgs
- 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 storageAccountStaticWebsiteResource = new AzureNative.Storage.StorageAccountStaticWebsite("storageAccountStaticWebsiteResource", new()
{
AccountName = "string",
ResourceGroupName = "string",
Error404Document = "string",
IndexDocument = "string",
});
example, err := storage.NewStorageAccountStaticWebsite(ctx, "storageAccountStaticWebsiteResource", &storage.StorageAccountStaticWebsiteArgs{
AccountName: "string",
ResourceGroupName: "string",
Error404Document: "string",
IndexDocument: "string",
})
var storageAccountStaticWebsiteResource = new StorageAccountStaticWebsite("storageAccountStaticWebsiteResource", StorageAccountStaticWebsiteArgs.builder()
.accountName("string")
.resourceGroupName("string")
.error404Document("string")
.indexDocument("string")
.build());
storage_account_static_website_resource = azure_native.storage.StorageAccountStaticWebsite("storageAccountStaticWebsiteResource",
account_name=string,
resource_group_name=string,
error404_document=string,
index_document=string)
const storageAccountStaticWebsiteResource = new azure_native.storage.StorageAccountStaticWebsite("storageAccountStaticWebsiteResource", {
accountName: "string",
resourceGroupName: "string",
error404Document: "string",
indexDocument: "string",
});
type: azure-native:storage:StorageAccountStaticWebsite
properties:
accountName: string
error404Document: string
indexDocument: string
resourceGroupName: string
StorageAccountStaticWebsite Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The StorageAccountStaticWebsite resource accepts the following input properties:
- Account
Name string - The name of the storage account within the specified resource group.
- Resource
Group stringName - The name of the resource group within the user's subscription. The name is case insensitive.
- Error404Document string
- The absolute path to a custom webpage that should be used when a request is made which does not correspond to an existing file.
- Index
Document string - The webpage that Azure Storage serves for requests to the root of a website or any sub-folder. For example, 'index.html'. The value is case-sensitive.
- Account
Name string - The name of the storage account within the specified resource group.
- Resource
Group stringName - The name of the resource group within the user's subscription. The name is case insensitive.
- Error404Document string
- The absolute path to a custom webpage that should be used when a request is made which does not correspond to an existing file.
- Index
Document string - The webpage that Azure Storage serves for requests to the root of a website or any sub-folder. For example, 'index.html'. The value is case-sensitive.
- account
Name String - The name of the storage account within the specified resource group.
- resource
Group StringName - The name of the resource group within the user's subscription. The name is case insensitive.
- error404Document String
- The absolute path to a custom webpage that should be used when a request is made which does not correspond to an existing file.
- index
Document String - The webpage that Azure Storage serves for requests to the root of a website or any sub-folder. For example, 'index.html'. The value is case-sensitive.
- account
Name string - The name of the storage account within the specified resource group.
- resource
Group stringName - The name of the resource group within the user's subscription. The name is case insensitive.
- error404Document string
- The absolute path to a custom webpage that should be used when a request is made which does not correspond to an existing file.
- index
Document string - The webpage that Azure Storage serves for requests to the root of a website or any sub-folder. For example, 'index.html'. The value is case-sensitive.
- account_
name str - The name of the storage account within the specified resource group.
- resource_
group_ strname - The name of the resource group within the user's subscription. The name is case insensitive.
- error404_
document str - The absolute path to a custom webpage that should be used when a request is made which does not correspond to an existing file.
- index_
document str - The webpage that Azure Storage serves for requests to the root of a website or any sub-folder. For example, 'index.html'. The value is case-sensitive.
- account
Name String - The name of the storage account within the specified resource group.
- resource
Group StringName - The name of the resource group within the user's subscription. The name is case insensitive.
- error404Document String
- The absolute path to a custom webpage that should be used when a request is made which does not correspond to an existing file.
- index
Document String - The webpage that Azure Storage serves for requests to the root of a website or any sub-folder. For example, 'index.html'. The value is case-sensitive.
Outputs
All input properties are implicitly available as output properties. Additionally, the StorageAccountStaticWebsite resource produces the following output properties:
- Container
Name string - The name of the container to upload blobs to.
- Id string
- The provider-assigned unique ID for this managed resource.
- Container
Name string - The name of the container to upload blobs to.
- Id string
- The provider-assigned unique ID for this managed resource.
- container
Name String - The name of the container to upload blobs to.
- id String
- The provider-assigned unique ID for this managed resource.
- container
Name string - The name of the container to upload blobs to.
- id string
- The provider-assigned unique ID for this managed resource.
- container_
name str - The name of the container to upload blobs to.
- id str
- The provider-assigned unique ID for this managed resource.
- container
Name String - The name of the container to upload blobs to.
- id String
- The provider-assigned unique ID for this managed resource.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi