Эта тема еще не получила оценку - Оценить эту тему

Get Blob Metadata

The Get Blob Metadata operation returns all user-defined metadata for the specified blob or snapshot.

The Get Blob Metadata request may be constructed as follows. Replace myaccount with the name of your storage account:

 

Method Request URI HTTP Version

GET/HEAD

http://myaccount.blob.core.windows.net/mycontainer/myblob?comp=metadata

http://myaccount.blob.core.windows.net/mycontainer/myblob?comp=metadata&snapshot=<DateTime>

HTTP/1.1

When making a request against the local storage service, specify the local hostname and Blob service port as 127.0.0.1:10000, followed by the local storage account name:

 

Method Request URI HTTP Version

GET/HEAD

http://127.0.0.1:10000/devstoreaccount1/mycontainer/myblob?comp=metadata

HTTP/1.1

For more information, see Обзор эмулятора хранения Windows Azure.

The following table describes required and optional request headers.

 

Request Header Description

Authorization

Required. Specifies the authentication scheme, account name, and signature. For more information, see Authentication Schemes.

Date or x-ms-date

Required. Specifies the Coordinated Universal Time (UTC) for the request. For more information, see Authentication Schemes.

x-ms-version

Required for all authenticated requests, optional for anonymous requests. Specifies the version of the operation to use for this request. For more information, see Storage Services Versioning.

x-ms-lease-id:<ID>

Optional. If this header is specified, the Get Blob Metadata operation will be performed only if both of the following conditions are met:

  • The blob's lease is currently active.

  • The lease ID specified in the request matches that of the blob.

If both of these conditions are not met, the request will fail and the Get Blob Metadata operation will fail with status code 412 (Precondition Failed).

The response includes an HTTP status code and a set of response headers.

A successful operation returns status code 200 (OK).

For information about status codes, see Status and Error Codes.

The response for this operation includes the following headers. The response may also include additional standard HTTP headers. All standard headers conform to the HTTP/1.1 protocol specification.

 

Response header Description

x-ms-meta-name:value

Returns a metadata value for the container.

Last-Modified

The date/time that the blob was last modified. The date format follows RFC 1123. For more information, see Representation of Date/Time Values in Headers.

Any operation that modifies the blob, including an update of the blob's metadata or properties, changes the last modified time of the blob.

ETag

The ETag for the blob.

x-ms-request-id

This header uniquely identifies the request that was made and can be used for troubleshooting the request. For more information, see Troubleshooting API Operations.

x-ms-version

Indicates the version of the Blob service used to execute the request. This header is returned for requests made against version 2009-09-19 and later.

This header is also returned for anonymous requests without a version specified if the container was marked for public access using the 2009-09-19 version of the Blob service.

Date

A UTC date/time value generated by the service that indicates the time at which the response was initiated.

If the container's ACL is set to allow anonymous access, any client may call this operation.

Была ли вам полезна эта информация?
(1500 символов осталось)

Добавления сообщества

© 2013 Microsoft. Все права защищены.
facebook page visit twitter rss feed newsletter