StorageAccountStaticWebsite
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 a StorageAccountStaticWebsite Resource
new StorageAccountStaticWebsite(name: string, args: StorageAccountStaticWebsiteArgs, opts?: CustomResourceOptions);
@overload
def StorageAccountStaticWebsite(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_name: Optional[str] = None,
error404_document: Optional[str] = None,
index_document: Optional[str] = None,
resource_group_name: Optional[str] = None)
@overload
def StorageAccountStaticWebsite(resource_name: str,
args: StorageAccountStaticWebsiteArgs,
opts: Optional[ResourceOptions] = None)
func NewStorageAccountStaticWebsite(ctx *Context, name string, args StorageAccountStaticWebsiteArgs, opts ...ResourceOption) (*StorageAccountStaticWebsite, error)
public StorageAccountStaticWebsite(string name, StorageAccountStaticWebsiteArgs args, CustomResourceOptions? opts = null)
- 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.
StorageAccountStaticWebsite Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model 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 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.
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 str - The name of the container to upload blobs to.
- id str
- The provider-assigned unique ID for this managed resource.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure-native
- License
- Apache-2.0