StaticWebsite Class

The static website properties for blob storage.

Constructor

StaticWebsite(*args: Any, **kwargs: Any)

Variables

Name Description
enabled

Indicates whether static website support is enabled for the specified account. Required.

index_document
str

The webpage that Azure Storage serves for requests to the root of a website or any subfolder (for example, index.html). The value is case-sensitive.

default_index_document_path
str

The absolute path where the default index file is present. This absolute path is mutually exclusive to "indexDocument" and it is case-sensitive.

error_document404_path
str

The absolute path to a webpage that Azure Storage serves for requests that don't correspond to an existing file. The contents of the page are returned with HTTP 404 Not Found. Only a single custom 404 page is supported in each static website.

Attributes

default_index_document_path

The absolute path where the default index file is present. This absolute path is mutually exclusive to "indexDocument" and it is case-sensitive.

default_index_document_path: str | None

enabled

Indicates whether static website support is enabled for the specified account. Required.

enabled: bool

error_document404_path

The absolute path to a webpage that Azure Storage serves for requests that don't correspond to an existing file. The contents of the page are returned with HTTP 404 Not Found. Only a single custom 404 page is supported in each static website.

error_document404_path: str | None

index_document

The webpage that Azure Storage serves for requests to the root of a website or any subfolder (for example, index.html). The value is case-sensitive.

index_document: str | None