BlockBlobService class
Definition
Block blobs let you upload large blobs efficiently. Block blobs are comprised of blocks, each of which is identified by a block ID. You create or modify a block blob by writing a set of blocks and committing them by their block IDs. Each block can be a different size, up to a maximum of 100 MB, and a block blob can include up to 50,000 blocks. The maximum size of a block blob is therefore approximately 4.75 TB (100 MB X 50,000 blocks). If you are writing a block blob that is no more than 64 MB in size, you can upload it in its entirety with a single write operation; see create_blob_from_bytes.
BlockBlobService(account_name=None, account_key=None, sas_token=None, is_emulated=False, protocol='https', endpoint_suffix='core.windows.net', custom_domain=None, request_session=None, connection_string=None, socket_timeout=None, token_credential=None)
- Inheritance
Variables
- MAX_SINGLE_PUT_SIZE
- int
- MAX_BLOCK_SIZE
- int
- MIN_LARGE_BLOCK_UPLOAD_THRESHOLD
- int
Methods
| batch_set_standard_blob_tier |
Sends a batch of multiple set block blob tiers requests. This API is only supported for block blobs on standard storage accounts. |
| copy_blob |
Copies a blob. This operation returns a copy operation properties object. The copy operation may be configured to either be an asynchronous, best-effort operation, or a synchronous operation. The source must be a block blob if requires_sync is true. Any existing destination blob will be overwritten. The destination blob cannot be modified while a copy operation is in progress. When copying from a block blob, all committed blocks and their block IDs are copied. Uncommitted blocks are not copied. At the end of the copy operation, the destination blob will have the same committed block count as the source. You can call get_blob_properties on the destination blob to check the status of the copy operation. The final blob will be committed when the copy completes. Name of the destination container. The container must exist.
:param str blob_name:
Name of the destination blob. If the destination blob exists, it will
be overwritten. Otherwise, it will be created.
:param str copy_source:
A URL of up to 2 KB in length that specifies an Azure file or blob.
The value should be URL-encoded as it would appear in a request URI.
If the source is in another account, the source must either be public
or must be authenticated via a shared access signature. If the source
is public, no authentication is required.
Examples:
https://myaccount.blob.core.windows.net/mycontainer/myblob
https://myaccount.blob.core.windows.net/mycontainer/myblob?snapshot=
|
| create_blob_from_bytes |
Creates a new blob from an array of bytes, or updates the content of an existing blob, with automatic chunking and progress notifications. |
| create_blob_from_path |
Creates a new blob from a file path, or updates the content of an existing blob, with automatic chunking and progress notifications. |
| create_blob_from_stream |
Creates a new blob from a file/stream, or updates the content of an existing blob, with automatic chunking and progress notifications. |
| create_blob_from_text |
Creates a new blob from str/unicode, or updates the content of an existing blob, with automatic chunking and progress notifications. |
| get_block_list |
Retrieves the list of blocks that have been uploaded as part of a block blob. There are two block lists maintained for a blob: Committed Block List: The list of blocks that have been successfully committed to a given blob with Put Block List. Uncommitted Block List: The list of blocks that have been uploaded for a blob using Put Block, but that have not yet been committed. These blocks are stored in Azure in association with a blob, but do not yet form part of the blob. |
| put_block |
Creates a new block to be committed as part of a blob. |
| put_block_from_url |
Creates a new block to be committed as part of a blob. |
| put_block_list |
Writes a blob by specifying the list of block IDs that make up the blob. In order to be written as part of a blob, a block must have been successfully written to the server in a prior Put Block operation. You can call Put Block List to update a blob by uploading only those blocks that have changed, then committing the new and existing blocks together. You can do this by specifying whether to commit a block from the committed block list or from the uncommitted block list, or to commit the most recently uploaded version of the block, whichever list it may belong to. |
| set_standard_blob_tier |
Sets the block blob tiers on the blob. This API is only supported for block blobs on standard storage accounts. :param RehydratePriority rehydrate_priority: Indicates the priority with which to rehydrate an archived blob |
batch_set_standard_blob_tier
Sends a batch of multiple set block blob tiers requests. This API is only supported for block blobs on standard storage accounts.
batch_set_standard_blob_tier(batch_set_blob_tier_sub_requests, timeout=None)
Parameters
- batch_set_blob_tier_sub_requests
- list(BatchSetBlobTierSubRequest)
The set block blob tier requests to send as a batch.
- timeout
- int
The timeout parameter is expressed in seconds. This method may make multiple calls to the Azure service and the timeout will apply to each call individually.
Returns
parsed batch set tier HTTP response which indicates if each sub-request is successful.
Return type
copy_blob
Copies a blob. This operation returns a copy operation properties object. The copy operation may be configured to either be an asynchronous, best-effort operation, or a synchronous operation.
The source must be a block blob if requires_sync is true. Any existing destination blob will be overwritten. The destination blob cannot be modified while a copy operation is in progress.
When copying from a block blob, all committed blocks and their block IDs are copied. Uncommitted blocks are not copied. At the end of the copy operation, the destination blob will have the same committed block count as the source.
You can call get_blob_properties on the destination blob to check the status of the copy operation. The final blob will be committed when the copy completes.
Name of the destination container. The container must exist.
:param str blob_name:
Name of the destination blob. If the destination blob exists, it will
be overwritten. Otherwise, it will be created.
:param str copy_source:
A URL of up to 2 KB in length that specifies an Azure file or blob.
The value should be URL-encoded as it would appear in a request URI.
If the source is in another account, the source must either be public
or must be authenticated via a shared access signature. If the source
is public, no authentication is required.
Examples:
https://myaccount.blob.core.windows.net/mycontainer/myblob
https://myaccount.blob.core.windows.net/mycontainer/myblob?snapshot=
copy_blob(container_name, blob_name, copy_source, metadata=None, source_if_modified_since=None, source_if_unmodified_since=None, source_if_match=None, source_if_none_match=None, destination_if_modified_since=None, destination_if_unmodified_since=None, destination_if_match=None, destination_if_none_match=None, destination_lease_id=None, source_lease_id=None, timeout=None, requires_sync=None, standard_blob_tier=None, rehydrate_priority=None)
Parameters
- container_name
- str
- blob_name
- copy_source
- metadata
- source_if_modified_since
- source_if_unmodified_since
- source_if_match
- source_if_none_match
- destination_if_modified_since
- destination_if_unmodified_since
- destination_if_match
- destination_if_none_match
- destination_lease_id
- source_lease_id
- timeout
- requires_sync
- standard_blob_tier
- rehydrate_priority
create_blob_from_bytes
Creates a new blob from an array of bytes, or updates the content of an existing blob, with automatic chunking and progress notifications.
create_blob_from_bytes(container_name, blob_name, blob, index=0, count=None, content_settings=None, metadata=None, validate_content=False, progress_callback=None, max_connections=2, lease_id=None, if_modified_since=None, if_unmodified_since=None, if_match=None, if_none_match=None, timeout=None, standard_blob_tier=None, cpk=None)
Parameters
- container_name
- str
Name of existing container.
- blob_name
- str
Name of blob to create or update.
- blob
- bytes
Content of blob as an array of bytes.
- index
- int
Start index in the array of bytes.
- count
- int
Number of bytes to upload. Set to None or negative value to upload all bytes starting from index.
- content_settings
- ContentSettings
ContentSettings object used to set blob properties.
- metadata
- dict(str, str)
Name-value pairs associated with the blob as metadata.
- validate_content
- bool
If true, calculates an MD5 hash for each chunk of the blob. The storage service checks the hash of the content that has arrived with the hash that was sent. This is primarily valuable for detecting bitflips on the wire if using http instead of https as https (the default) will already validate. Note that this MD5 hash is not stored with the blob.
- progress_callback
- func(current, total)
Callback for progress with signature function(current, total) where current is the number of bytes transfered so far, and total is the size of the blob, or None if the total size is unknown.
- max_connections
- int
Maximum number of parallel connections to use when the blob size exceeds 64MB.
- lease_id
- str
Required if the blob has an active lease.
- if_modified_since
- datetime
A DateTime value. Azure expects the date value passed in to be UTC. If timezone is included, any non-UTC datetimes will be converted to UTC. If a date is passed in without timezone info, it is assumed to be UTC. Specify this header to perform the operation only if the resource has been modified since the specified time.
- if_unmodified_since
- datetime
A DateTime value. Azure expects the date value passed in to be UTC. If timezone is included, any non-UTC datetimes will be converted to UTC. If a date is passed in without timezone info, it is assumed to be UTC. Specify this header to perform the operation only if the resource has not been modified since the specified date/time.
- if_match
- str
An ETag value, or the wildcard character (*). Specify this header to perform the operation only if the resource's ETag matches the value specified.
- if_none_match
- str
An ETag value, or the wildcard character (). Specify this header to perform the operation only if the resource's ETag does not match the value specified. Specify the wildcard character () to perform the operation only if the resource does not exist, and fail the operation if it does exist.
Encrypts the data on the service-side with the given key. Use of customer-provided keys must be done over HTTPS. As the encryption key itself is provided in the request, a secure connection must be established to transfer the key.
- timeout
- int
The timeout parameter is expressed in seconds. This method may make multiple calls to the Azure service and the timeout will apply to each call individually.
- standard_blob_tier
- StandardBlobTier
A standard blob tier value to set the blob to. For this version of the library, this is only applicable to block blobs on standard storage accounts.
Returns
ETag and last modified properties for the Block Blob
Return type
create_blob_from_path
Creates a new blob from a file path, or updates the content of an existing blob, with automatic chunking and progress notifications.
create_blob_from_path(container_name, blob_name, file_path, content_settings=None, metadata=None, validate_content=False, progress_callback=None, max_connections=2, lease_id=None, if_modified_since=None, if_unmodified_since=None, if_match=None, if_none_match=None, timeout=None, standard_blob_tier=None, cpk=None)
Parameters
- container_name
- str
Name of existing container.
- blob_name
- str
Name of blob to create or update.
- file_path
- str
Path of the file to upload as the blob content.
- content_settings
- ContentSettings
ContentSettings object used to set blob properties.
- metadata
- dict(str, str)
Name-value pairs associated with the blob as metadata.
- validate_content
- bool
If true, calculates an MD5 hash for each chunk of the blob. The storage service checks the hash of the content that has arrived with the hash that was sent. This is primarily valuable for detecting bitflips on the wire if using http instead of https as https (the default) will already validate. Note that this MD5 hash is not stored with the blob. Also note that if enabled, the memory-efficient upload algorithm will not be used, because computing the MD5 hash requires buffering entire blocks, and doing so defeats the purpose of the memory-efficient algorithm.
- progress_callback
- func(current, total)
Callback for progress with signature function(current, total) where current is the number of bytes transfered so far, and total is the size of the blob, or None if the total size is unknown.
- max_connections
- int
Maximum number of parallel connections to use when the blob size exceeds 64MB.
- lease_id
- str
Required if the blob has an active lease.
- if_modified_since
- datetime
A DateTime value. Azure expects the date value passed in to be UTC. If timezone is included, any non-UTC datetimes will be converted to UTC. If a date is passed in without timezone info, it is assumed to be UTC. Specify this header to perform the operation only if the resource has been modified since the specified time.
- if_unmodified_since
- datetime
A DateTime value. Azure expects the date value passed in to be UTC. If timezone is included, any non-UTC datetimes will be converted to UTC. If a date is passed in without timezone info, it is assumed to be UTC. Specify this header to perform the operation only if the resource has not been modified since the specified date/time.
- if_match
- str
An ETag value, or the wildcard character (*). Specify this header to perform the operation only if the resource's ETag matches the value specified.
- if_none_match
- str
An ETag value, or the wildcard character (). Specify this header to perform the operation only if the resource's ETag does not match the value specified. Specify the wildcard character () to perform the operation only if the resource does not exist, and fail the operation if it does exist.
Encrypts the data on the service-side with the given key. Use of customer-provided keys must be done over HTTPS. As the encryption key itself is provided in the request, a secure connection must be established to transfer the key.
- timeout
- int
The timeout parameter is expressed in seconds. This method may make multiple calls to the Azure service and the timeout will apply to each call individually.
- standard_blob_tier
- StandardBlobTier
A standard blob tier value to set the blob to. For this version of the library, this is only applicable to block blobs on standard storage accounts.
Returns
ETag and last modified properties for the Block Blob
Return type
create_blob_from_stream
Creates a new blob from a file/stream, or updates the content of an existing blob, with automatic chunking and progress notifications.
create_blob_from_stream(container_name, blob_name, stream, count=None, content_settings=None, metadata=None, validate_content=False, progress_callback=None, max_connections=2, lease_id=None, if_modified_since=None, if_unmodified_since=None, if_match=None, if_none_match=None, timeout=None, use_byte_buffer=False, standard_blob_tier=None, cpk=None)
Parameters
- container_name
- str
Name of existing container.
- blob_name
- str
Name of blob to create or update.
- stream
- io.IOBase
Opened file/stream to upload as the blob content.
- count
- int
Number of bytes to read from the stream. This is optional, but should be supplied for optimal performance.
- content_settings
- ContentSettings
ContentSettings object used to set blob properties.
- metadata
- dict(str, str)
Name-value pairs associated with the blob as metadata.
- validate_content
- bool
If true, calculates an MD5 hash for each chunk of the blob. The storage service checks the hash of the content that has arrived with the hash that was sent. This is primarily valuable for detecting bitflips on the wire if using http instead of https as https (the default) will already validate. Note that this MD5 hash is not stored with the blob. Also note that if enabled, the memory-efficient upload algorithm will not be used, because computing the MD5 hash requires buffering entire blocks, and doing so defeats the purpose of the memory-efficient algorithm.
- progress_callback
- func(current, total)
Callback for progress with signature function(current, total) where current is the number of bytes transfered so far, and total is the size of the blob, or None if the total size is unknown.
- max_connections
- int
Maximum number of parallel connections to use when the blob size exceeds 64MB. Note that parallel upload requires the stream to be seekable.
- lease_id
- str
Required if the blob has an active lease.
- if_modified_since
- datetime
A DateTime value. Azure expects the date value passed in to be UTC. If timezone is included, any non-UTC datetimes will be converted to UTC. If a date is passed in without timezone info, it is assumed to be UTC. Specify this header to perform the operation only if the resource has been modified since the specified time.
- if_unmodified_since
- datetime
A DateTime value. Azure expects the date value passed in to be UTC. If timezone is included, any non-UTC datetimes will be converted to UTC. If a date is passed in without timezone info, it is assumed to be UTC. Specify this header to perform the operation only if the resource has not been modified since the specified date/time.
- if_match
- str
An ETag value, or the wildcard character (*). Specify this header to perform the operation only if the resource's ETag matches the value specified.
- if_none_match
- str
An ETag value, or the wildcard character (). Specify this header to perform the operation only if the resource's ETag does not match the value specified. Specify the wildcard character () to perform the operation only if the resource does not exist, and fail the operation if it does exist.
Encrypts the data on the service-side with the given key. Use of customer-provided keys must be done over HTTPS. As the encryption key itself is provided in the request, a secure connection must be established to transfer the key.
- timeout
- int
The timeout parameter is expressed in seconds. This method may make multiple calls to the Azure service and the timeout will apply to each call individually.
- use_byte_buffer
- bool
If True, this will force usage of the original full block buffering upload path. By default, this value is False and will employ a memory-efficient, streaming upload algorithm under the following conditions: The provided stream is seekable, 'require_encryption' is False, and MAX_BLOCK_SIZE >= MIN_LARGE_BLOCK_UPLOAD_THRESHOLD. One should consider the drawbacks of using this approach. In order to achieve memory-efficiency, a IOBase stream or file-like object is segmented into logical blocks using a SubStream wrapper. In order to read the correct data, each SubStream must acquire a lock so that it can safely seek to the right position on the shared, underlying stream. If max_connections > 1, the concurrency will result in a considerable amount of seeking on the underlying stream. For the most common inputs such as a file-like stream object, seeking is an inexpensive operation and this is not much of a concern. However, for other variants of streams this may not be the case. The trade-off for memory-efficiency must be weighed against the cost of seeking with your input stream. The SubStream class will attempt to buffer up to 4 MB internally to reduce the amount of seek and read calls to the underlying stream. This is particularly beneficial when uploading larger blocks.
- standard_blob_tier
- StandardBlobTier
A standard blob tier value to set the blob to. For this version of the library, this is only applicable to block blobs on standard storage accounts.
Returns
ETag and last modified properties for the Block Blob
Return type
create_blob_from_text
Creates a new blob from str/unicode, or updates the content of an existing blob, with automatic chunking and progress notifications.
create_blob_from_text(container_name, blob_name, text, encoding='utf-8', content_settings=None, metadata=None, validate_content=False, progress_callback=None, max_connections=2, lease_id=None, if_modified_since=None, if_unmodified_since=None, if_match=None, if_none_match=None, timeout=None, standard_blob_tier=None, cpk=None)
Parameters
- container_name
- str
Name of existing container.
- blob_name
- str
Name of blob to create or update.
- text
- str
Text to upload to the blob.
- encoding
- str
Python encoding to use to convert the text to bytes.
- content_settings
- ContentSettings
ContentSettings object used to set blob properties.
- metadata
- dict(str, str)
Name-value pairs associated with the blob as metadata.
- validate_content
- bool
If true, calculates an MD5 hash for each chunk of the blob. The storage service checks the hash of the content that has arrived with the hash that was sent. This is primarily valuable for detecting bitflips on the wire if using http instead of https as https (the default) will already validate. Note that this MD5 hash is not stored with the blob.
- progress_callback
- func(current, total)
Callback for progress with signature function(current, total) where current is the number of bytes transfered so far, and total is the size of the blob, or None if the total size is unknown.
- max_connections
- int
Maximum number of parallel connections to use when the blob size exceeds 64MB.
- lease_id
- str
Required if the blob has an active lease.
- if_modified_since
- datetime
A DateTime value. Azure expects the date value passed in to be UTC. If timezone is included, any non-UTC datetimes will be converted to UTC. If a date is passed in without timezone info, it is assumed to be UTC. Specify this header to perform the operation only if the resource has been modified since the specified time.
- if_unmodified_since
- datetime
A DateTime value. Azure expects the date value passed in to be UTC. If timezone is included, any non-UTC datetimes will be converted to UTC. If a date is passed in without timezone info, it is assumed to be UTC. Specify this header to perform the operation only if the resource has not been modified since the specified date/time.
- if_match
- str
An ETag value, or the wildcard character (*). Specify this header to perform the operation only if the resource's ETag matches the value specified.
- if_none_match
- str
An ETag value, or the wildcard character (). Specify this header to perform the operation only if the resource's ETag does not match the value specified. Specify the wildcard character () to perform the operation only if the resource does not exist, and fail the operation if it does exist.
Encrypts the data on the service-side with the given key. Use of customer-provided keys must be done over HTTPS. As the encryption key itself is provided in the request, a secure connection must be established to transfer the key.
- timeout
- int
The timeout parameter is expressed in seconds. This method may make multiple calls to the Azure service and the timeout will apply to each call individually.
- standard_blob_tier
- StandardBlobTier
A standard blob tier value to set the blob to. For this version of the library, this is only applicable to block blobs on standard storage accounts.
Returns
ETag and last modified properties for the Block Blob
Return type
get_block_list
Retrieves the list of blocks that have been uploaded as part of a block blob. There are two block lists maintained for a blob:
Committed Block List: The list of blocks that have been successfully committed to a given blob with Put Block List.
Uncommitted Block List: The list of blocks that have been uploaded for a blob using Put Block, but that have not yet been committed. These blocks are stored in Azure in association with a blob, but do not yet form part of the blob.
get_block_list(container_name, blob_name, snapshot=None, block_list_type=None, lease_id=None, timeout=None)
Parameters
- container_name
- str
Name of existing container.
- blob_name
- str
Name of existing blob.
- snapshot
- str
Datetime to determine the time to retrieve the blocks.
- block_list_type
- str
Specifies whether to return the list of committed blocks, the list of uncommitted blocks, or both lists together. Valid values are: committed, uncommitted, or all.
- lease_id
- str
Required if the blob has an active lease.
- timeout
- int
The timeout parameter is expressed in seconds.
Returns
list committed and/or uncommitted blocks for Block Blob
Return type
put_block
Creates a new block to be committed as part of a blob.
put_block(container_name, blob_name, block, block_id, validate_content=False, lease_id=None, timeout=None, cpk=None)
Parameters
- container_name
- str
Name of existing container.
- blob_name
- str
Name of blob.
- block
- io.IOBase or bytesContent of the block.
Content of the block.
- block_id
- str
A string value that identifies the block. The string should be less than or equal to 64 bytes in size. For a given blob, the block_id must be the same size for each block.
- validate_content
- bool
If true, calculates an MD5 hash of the block content. The storage service checks the hash of the content that has arrived with the hash that was sent. This is primarily valuable for detecting bitflips on the wire if using http instead of https as https (the default) will already validate. Note that this MD5 hash is not stored with the blob.
- lease_id
- str
Required if the blob has an active lease.
Encrypts the data on the service-side with the given key. Use of customer-provided keys must be done over HTTPS. As the encryption key itself is provided in the request, a secure connection must be established to transfer the key.
- timeout
- int
The timeout parameter is expressed in seconds.
put_block_from_url
Creates a new block to be committed as part of a blob.
put_block_from_url(container_name, blob_name, copy_source_url, block_id, source_range_start=None, source_range_end=None, source_content_md5=None, lease_id=None, timeout=None, cpk=None)
Parameters
- container_name
- str
Name of existing container.
- blob_name
- str
Name of blob.
- copy_source_url
- str
The URL of the source data. It can point to any Azure Blob or File, that is either public or has a shared access signature attached.
- source_range_start
- int
This indicates the start of the range of bytes(inclusive) that has to be taken from the copy source.
- source_range_end
- int
This indicates the end of the range of bytes(inclusive) that has to be taken from the copy source.
- block_id
- str
A string value that identifies the block. The string should be less than or equal to 64 bytes in size. For a given blob, the block_id must be the same size for each block.
- source_content_md5
- str
If given, the service will calculate the MD5 hash of the block content and compare against this value.
- lease_id
- str
Required if the blob has an active lease.
Encrypts the data on the service-side with the given key. Use of customer-provided keys must be done over HTTPS. As the encryption key itself is provided in the request, a secure connection must be established to transfer the key.
- timeout
- int
The timeout parameter is expressed in seconds.
put_block_list
Writes a blob by specifying the list of block IDs that make up the blob. In order to be written as part of a blob, a block must have been successfully written to the server in a prior Put Block operation.
You can call Put Block List to update a blob by uploading only those blocks that have changed, then committing the new and existing blocks together. You can do this by specifying whether to commit a block from the committed block list or from the uncommitted block list, or to commit the most recently uploaded version of the block, whichever list it may belong to.
put_block_list(container_name, blob_name, block_list, content_settings=None, metadata=None, validate_content=False, lease_id=None, if_modified_since=None, if_unmodified_since=None, if_match=None, if_none_match=None, timeout=None, standard_blob_tier=None, cpk=None)
Parameters
- container_name
- str
Name of existing container.
- blob_name
- str
Name of existing blob.
- block_list
- list(BlobBlock)
A list of <xref:azure.storeage.blob.models.BlobBlock> containing the block ids and block state.
- content_settings
- ContentSettings
ContentSettings object used to set properties on the blob.
- metadata
- dict(str, str)
Name-value pairs associated with the blob as metadata.
- validate_content
- bool
If true, calculates an MD5 hash of the block list content. The storage service checks the hash of the block list content that has arrived with the hash that was sent. This is primarily valuable for detecting bitflips on the wire if using http instead of https as https (the default) will already validate. Note that this check is associated with the block list content, and not with the content of the blob itself.
- lease_id
- str
Required if the blob has an active lease.
- if_modified_since
- datetime
A DateTime value. Azure expects the date value passed in to be UTC. If timezone is included, any non-UTC datetimes will be converted to UTC. If a date is passed in without timezone info, it is assumed to be UTC. Specify this header to perform the operation only if the resource has been modified since the specified time.
- if_unmodified_since
- datetime
A DateTime value. Azure expects the date value passed in to be UTC. If timezone is included, any non-UTC datetimes will be converted to UTC. If a date is passed in without timezone info, it is assumed to be UTC. Specify this header to perform the operation only if the resource has not been modified since the specified date/time.
- if_match
- str
An ETag value, or the wildcard character (*). Specify this header to perform the operation only if the resource's ETag matches the value specified.
- if_none_match
- str
An ETag value, or the wildcard character (). Specify this header to perform the operation only if the resource's ETag does not match the value specified. Specify the wildcard character () to perform the operation only if the resource does not exist, and fail the operation if it does exist.
Encrypts the data on the service-side with the given key. Use of customer-provided keys must be done over HTTPS. As the encryption key itself is provided in the request, a secure connection must be established to transfer the key.
- timeout
- int
The timeout parameter is expressed in seconds.
- standard_blob_tier
- StandardBlobTier
A standard blob tier value to set the blob to. For this version of the library, this is only applicable to block blobs on standard storage accounts.
Returns
ETag and last modified properties for the updated Block Blob
Return type
set_standard_blob_tier
Sets the block blob tiers on the blob. This API is only supported for block blobs on standard storage accounts.
:param RehydratePriority rehydrate_priority: Indicates the priority with which to rehydrate an archived blob
set_standard_blob_tier(container_name, blob_name, standard_blob_tier, timeout=None, rehydrate_priority=None)
Parameters
- container_name
- str
Name of existing container.
- blob_name
- str
Name of blob to update.
- standard_blob_tier
- StandardBlobTier
A standard blob tier value to set the blob to. For this version of the library, this is only applicable to block blobs on standard storage accounts.
- timeout
- int
The timeout parameter is expressed in seconds. This method may make multiple calls to the Azure service and the timeout will apply to each call individually.
- rehydrate_priority
Attributes
MAX_BLOCK_SIZE
MAX_BLOCK_SIZE = 4194304
MAX_SINGLE_PUT_SIZE
MAX_SINGLE_PUT_SIZE = 67108864
MIN_LARGE_BLOCK_UPLOAD_THRESHOLD
MIN_LARGE_BLOCK_UPLOAD_THRESHOLD = 4194305