StorageAccount Class

The storage account.

Variables are only populated by the server, and will be ignored when sending a request.

Inheritance
azure.mgmt.storage.v2015_06_15.models._models_py3.Resource
StorageAccount

Constructor

StorageAccount(*, location: str | None = None, tags: Dict[str, str] | None = None, provisioning_state: str | _models.ProvisioningState | None = None, account_type: str | _models.AccountType | None = None, primary_endpoints: _models.Endpoints | None = None, primary_location: str | None = None, status_of_primary: str | _models.AccountStatus | None = None, last_geo_failover_time: datetime | None = None, secondary_location: str | None = None, status_of_secondary: str | _models.AccountStatus | None = None, creation_time: datetime | None = None, custom_domain: _models.CustomDomain | None = None, secondary_endpoints: _models.Endpoints | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
location
str

Resource location.

tags

Resource tags.

provisioning_state

The status of the storage account at the time the operation was called. Known values are: "Creating", "ResolvingDNS", and "Succeeded".

account_type

The type of the storage account. Known values are: "Standard_LRS", "Standard_ZRS", "Standard_GRS", "Standard_RAGRS", and "Premium_LRS".

primary_endpoints

The URLs that are used to perform a retrieval of a public blob, queue, or table object. Note that Standard_ZRS and Premium_LRS accounts only return the blob endpoint.

primary_location
str

The location of the primary data center for the storage account.

status_of_primary

The status indicating whether the primary location of the storage account is available or unavailable. Known values are: "Available" and "Unavailable".

last_geo_failover_time

The timestamp of the most recent instance of a failover to the secondary location. Only the most recent timestamp is retained. This element is not returned if there has never been a failover instance. Only available if the accountType is Standard_GRS or Standard_RAGRS.

secondary_location
str

The location of the geo-replicated secondary for the storage account. Only available if the accountType is Standard_GRS or Standard_RAGRS.

status_of_secondary

The status indicating whether the secondary location of the storage account is available or unavailable. Only available if the SKU name is Standard_GRS or Standard_RAGRS. Known values are: "Available" and "Unavailable".

creation_time

The creation date and time of the storage account in UTC.

custom_domain

The custom domain the user assigned to this storage account.

secondary_endpoints

The URLs that are used to perform a retrieval of a public blob, queue, or table object from the secondary location of the storage account. Only available if the SKU name is Standard_RAGRS.

Variables

Name Description
id
str

Resource Id.

name
str

Resource name.

type
str

Resource type.

location
str

Resource location.

tags

Resource tags.

provisioning_state

The status of the storage account at the time the operation was called. Known values are: "Creating", "ResolvingDNS", and "Succeeded".

account_type

The type of the storage account. Known values are: "Standard_LRS", "Standard_ZRS", "Standard_GRS", "Standard_RAGRS", and "Premium_LRS".

primary_endpoints

The URLs that are used to perform a retrieval of a public blob, queue, or table object. Note that Standard_ZRS and Premium_LRS accounts only return the blob endpoint.

primary_location
str

The location of the primary data center for the storage account.

status_of_primary

The status indicating whether the primary location of the storage account is available or unavailable. Known values are: "Available" and "Unavailable".

last_geo_failover_time

The timestamp of the most recent instance of a failover to the secondary location. Only the most recent timestamp is retained. This element is not returned if there has never been a failover instance. Only available if the accountType is Standard_GRS or Standard_RAGRS.

secondary_location
str

The location of the geo-replicated secondary for the storage account. Only available if the accountType is Standard_GRS or Standard_RAGRS.

status_of_secondary

The status indicating whether the secondary location of the storage account is available or unavailable. Only available if the SKU name is Standard_GRS or Standard_RAGRS. Known values are: "Available" and "Unavailable".

creation_time

The creation date and time of the storage account in UTC.

custom_domain

The custom domain the user assigned to this storage account.

secondary_endpoints

The URLs that are used to perform a retrieval of a public blob, queue, or table object from the secondary location of the storage account. Only available if the SKU name is Standard_RAGRS.