



The following sample request URI returns the committed block list for a blob named MOV1.avi: GET HTTP/1.1 For more information, see Specifying Conditional Headers for Blob Service Operations. This operation also supports the use of conditional headers to execute the operation only if a specified condition is met. For more information, see About Storage Analytics Logging and Azure Logging: Using Logs to Track Storage Requests. Using this header is highly recommended for correlating client-side activities with requests received by the server. Provides a client-generated, opaque value with a 1 KiB character limit that is recorded in the analytics logs when storage analytics logging is enabled.
#Container blockblock code
If this header is specified and both of these conditions are not met, the request will fail and the operation will fail with status code 412 (Precondition Failed). The lease ID specified in the request matches that of the blob. If this header is specified, the operation will be performed only if both of the following conditions are met: - The blob's lease is currently active. For more information, see Versioning for the Azure Storage Services. Specifies the version of the operation to use for this request. Required for all authorized requests, optional for anonymous requests. For more information, see Authorize requests to Azure Storage. Specifies the Coordinated Universal Time (UTC) for the request. Specifies the authorization scheme, account name, and signature. The following table describes required and optional request headers. For more information, see Setting Timeouts for Blob Service Operations. The timeout parameter is expressed in seconds. If you omit this parameter, Get Block List returns the list of committed blocks. Valid values are committed, uncommitted, or all. Specifies whether to return the list of committed blocks, the list of uncommitted blocks, or both lists together. The versionid parameter is an opaque DateTime value that, when present, specifies the version of the blob to retrieve. For more information on working with blob snapshots, see Creating a Snapshot of a Blob. The snapshot parameter is an opaque DateTime value that, when present, specifies the blob list to retrieve. The following additional parameters may be specified on the request URI. When making a request against the emulated storage service, specify the emulator hostname and Blob service port as 127.0.0.1:10000, followed by the emulated storage account name: GET Method Request URIįor more information, see Using the Azure Storage Emulator for Development and Testing. Replace myaccount with the name of your storage account: GET Method Request URI The Get Block List request may be constructed as follows. You can also call this operation to retrieve the committed block list for a snapshot. You can call Get Block List to return the committed block list, the uncommitted block list, or both lists. These blocks are stored in Azure in association with a blob, but do not yet form part of the blob. Uncommitted Block List: The list of blocks that have been uploaded for a blob using Put Block, but that have not yet been committed. There are two block lists maintained for a blob:Ĭommitted Block List: The list of blocks that have been successfully committed to a given blob with Put Block List. The Get Block List operation retrieves the list of blocks that have been uploaded as part of a block blob.
