HeadAccount
    • PDF

    HeadAccount

    • PDF

    Article Summary

    The latest service changes have not yet been reflected in this content. We will update the content as soon as possible. Please refer to the Korean version for information on the latest updates.

    Overview

    Gets metadata of an account.

    Syntax

    HEAD /v1/AUTH_{project_id}
    

    Request

    NameInTypeDescription
    project_idpathstringProject ID
    X-Auth-Token (Optional)headerstringToken
    X-Newest (Optional)headerbooleanIf it is true, the API request queries all copies and responds with the information of the latest copy. If this header is not specified, the API request returns the information that it can respond most quickly with.

    Response

    NameInTypeDescription
    Content-LengthheaderstringLength of the response result It is 0 if the request was successful, because it has no content in the response body.
    X-Account-Meta-name (Optional)headerstringAccount metadata. The name part in the header name functions as a key of the metadata.
    X-Account-Meta-Temp-URL-Key (Optional)headerstringSecret key for the temporary URL
    X-Account-Meta-Temp-URL-Key-2 (Optional)headerstringSecond secret key for the temporary URL
    X-TimestampheaderintegerThe time when the account was created (in UNIX Time)
    X-Trans-IdheaderstringTransaction ID of the request
    X-Openstack-Request-IdheaderstringTransaction ID of the request (same as X-Trans-Id)
    DateheaderstringResponse time of the request (in UTC)
    X-Account-Bytes-UsedheaderintegerTotal size used by the account (in bytes)
    X-Account-Container-CountheaderintegerNumber of containers (buckets) of the account
    X-Account-Object-CountheaderintegerNumber of objects of the account
    X-Account-Storage-Policy-name-Bytes-UsedheaderintegerTotal size of the storage policy for name (in bytes)
    X-Account-Storage-Policy-name-Container-CountheaderintegerNumber of containers (buckets) of the storage policy for name
    X-Account-Storage-Policy-name-Object-CountheaderintegerNumber of objects of the storage policy for name
    X-Account-Meta-Quota-Bytes (Optional)headerstringStorage limit of the account (in bytes)
    Content-TypeheaderstringMIME type of the response result

    Examples

    Request example

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

    Response example

    HTTP/1.1 204 No Content
    Content-Length: 0
    Accept-Ranges: bytes
    X-Account-Meta-Book: ncloud-test-book
    X-Timestamp: 1535685069.28154
    X-Account-Bytes-Used: 420024
    X-Account-Container-Count: 2
    Content-Type: text/plain; charset=utf-8
    X-Account-Object-Count: 2
    x-account-project-domain-id: default
    X-Trans-Id: tx9001d378488c4e5dbc64a-005b975d96
    X-Openstack-Request-Id: tx9001d378488c4e5dbc64a-005b975d96
    Date: Tue, 11 Sep 2018 06:15:50 GMT
    

    Was this article helpful?

    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.