doc-exports/docs/obs/api-swift/obs_03_0071.html
zhangyue 894279c39a Object Storage Service API Reference Swift V1
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: zhangyue <zhangyue164@huawei.com>
Co-committed-by: zhangyue <zhangyue164@huawei.com>
2023-02-02 08:50:48 +00:00

8.6 KiB

Request

Method

Table 1 Method description

Method

URI

Description

HEAD

/v1/{account}/{container}/{object}{?temp_url_sig,temp_url_expires}

Shows object metadata.

{account} indicates the name of an account.

{container} indicates the name of a container.

{object} indicates the name of an object.

This operation does not involve a request body.

Example Request

Show object metadata:

curl -i $publicURL/marktwain/goodbye -X HEAD -H "X-Auth-Token:$token"

Request Query Parameters

Parameter

Type

Description

temp_url_sig

String

(Optional)

Used with TempURL to sign the request.

temp_url_expires

String

(Optional)

Used with TempURL to specify the expiry time of the signature.

Request Headers

Request URI parameters

Parameter

Type

Description

{account}

String

(Required)

A unique account name. In the current version, it indicates a unique ID for the account.

{container}

String

(Required)

A unique container name.

For details about container naming rules, see Naming Rules.

{object}

String

(Required)

An object name.

For details about object naming rules, see Object Naming Rules.

Table 2 Request header parameters

Header

Type

Description

X-Auth-Token

String

(Required)

Authentication token.