你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

BlobServiceProperties Class

The properties of a storage account's Blob service.

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

Inheritance
azure.mgmt.storage.v2021_06_01.models._models_py3.Resource
BlobServiceProperties

Constructor

BlobServiceProperties(*, cors: _models.CorsRules | None = None, default_service_version: str | None = None, delete_retention_policy: _models.DeleteRetentionPolicy | None = None, is_versioning_enabled: bool | None = None, automatic_snapshot_policy_enabled: bool | None = None, change_feed: _models.ChangeFeed | None = None, restore_policy: _models.RestorePolicyProperties | None = None, container_delete_retention_policy: _models.DeleteRetentionPolicy | None = None, last_access_time_tracking_policy: _models.LastAccessTimeTrackingPolicy | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
cors

Specifies CORS rules for the Blob 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 Blob service.

default_service_version
str

DefaultServiceVersion indicates the default version to use for requests to the Blob service if an incoming request's version is not specified. Possible values include version 2008-10-27 and all more recent versions.

delete_retention_policy

The blob service properties for blob soft delete.

is_versioning_enabled

Versioning is enabled if set to true.

automatic_snapshot_policy_enabled

Deprecated in favor of isVersioningEnabled property.

change_feed

The blob service properties for change feed events.

restore_policy

The blob service properties for blob restore policy.

container_delete_retention_policy

The blob service properties for container soft delete.

last_access_time_tracking_policy

The blob service property to configure last access time based tracking policy.

Variables

Name Description
id
str

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. # pylint: disable=line-too-long

name
str

The name of the resource.

type
str

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

sku
Sku

Sku name and tier.

cors

Specifies CORS rules for the Blob 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 Blob service.

default_service_version
str

DefaultServiceVersion indicates the default version to use for requests to the Blob service if an incoming request's version is not specified. Possible values include version 2008-10-27 and all more recent versions.

delete_retention_policy

The blob service properties for blob soft delete.

is_versioning_enabled

Versioning is enabled if set to true.

automatic_snapshot_policy_enabled

Deprecated in favor of isVersioningEnabled property.

change_feed

The blob service properties for change feed events.

restore_policy

The blob service properties for blob restore policy.

container_delete_retention_policy

The blob service properties for container soft delete.

last_access_time_tracking_policy

The blob service property to configure last access time based tracking policy.