HeadContainer
    • PDF

    HeadContainer

    • PDF

    Article Summary

    概要

    コンテナ(バケット)のメタデータを照会します。

    注意

    Subaccountの場合、Subaccount専用 External API Gatewayを通じて使用できます。
    詳細は、Subaccountをご参照ください。

    構文

    HEAD /v1/AUTH_{project_id}/{container}
    

    リクエスト

    NameInTypeDescription
    project_idpathstringプロジェクト IDを入力
    containerpathstring- 紹介するコンテナ(バケット)名入力
    - slash(/)が含まれると、{container}/{object}と認識するので注意
    X-Auth-Token (Optional)headerstring発行した Token値を入力
    X-Newest (Optional)headerboolean- trueの場合すべてのコピーについてクエリし、直近コピーの情報でレスポンス
    - 該当ヘッダが省略された場合最もスピーディーな情報でレスポンス

    レスポンス

    NameInTypeDescription
    X-Container-Meta-nameheaderstring- 該当コンテナ(バケット)のメタデータ
    - ヘッダ名のname部分がメタデータのキーロールを果たす
    Content-Lengthheaderstringレスポンス結果の長さ(Bytes)
    X-Container-Object-Countheaderinteger該当コンテナ(バケット)のオブジェクト数
    X-Container-Bytes-Usedheaderinteger該当コンテナ(バケット)が使用する全体容量のサイズ(Bytes)
    X-Container-Read (Optional)headerstring該当コンテナの READ ACL
    X-Container-Write (Optional)headerstring該当コンテナの WRITE ACL
    X-Container-Meta-Quota-Bytes (Optional)headerstring該当コンテナ(バケット)の容量制限値(bytes)
    X-Container-Meta-Quota-Count (Optional)headerstring該当コンテナ(バケット)のオブジェクト数の制限値
    X-Container-Meta-Access-Control-Allow-Origin (Optional)headerstringCORS
    X-Container-Meta-Access-Control-Max-Age (Optional)headerstringCORS
    X-Container-Meta-Access-Control-Expose-Headers (Optional)headerstringCORS
    X-Container-Meta-Temp-URL-Key (Optional)headerstringtemporary URLのための Secret Key値
    X-Container-Meta-Temp-URL-Key-2 (Optional)headerstringtemporary URLのための2番目の Secret Key値
    X-Timestampheaderinteger該当コンテナ(バケット)が作成された時刻(UNIX Time)
    X-Container-Sync-Key (Optional)headerstringnot supported
    X-Container-Sync-To (Optional)headerstringnot supported
    Dateheaderstring該当リクエストのレスポンス時間(UTC)
    X-Trans-Idheaderstring該当リクエストのトランザクション ID
    X-Openstack-Request-Idheaderstring該当リクエストのトランザクション ID(X-Trans-Idと同じ)
    Content-Type (Optional)headerstringレスポンス結果の MIMEタイプ
    X-Versions-Location (Optional)headerstringnot supported
    X-History-Location (Optional)headerstringnot supported

    リクエスト例(コンテナメタデータの照会)

    curl -i -X HEAD -H "X-Auth-Token: $token" https://kr.archive.ncloudstorage.com/v1/AUTH_{project_id}/{container}
    

    レスポンス例

    HTTP/1.1 204 No Content
    Content-Length: 0
    X-Container-Object-Count: 3
    X-Timestamp: 1536631895.01856
    Accept-Ranges: bytes
    Last-Modified: Tue, 11 Sep 2018 02:11:36 GMT
    X-Container-Bytes-Used: 630036
    Content-Type: text/plain; charset=utf-8
    X-Trans-Id: tx51f8478e8e924403851a4-005b988014
    X-Openstack-Request-Id: tx51f8478e8e924403851a4-005b988014
    Date: Wed, 12 Sep 2018 02:55:16 GMT
    

    リクエストが成功すると、No Content(204)の状態コードを返します。


    この記事は役に立ちましたか?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.