HeadAccount
- Print
- PDF
HeadAccount
- Print
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
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
Name | In | Type | Description |
---|---|---|---|
project_id | path | string | Project ID |
X-Auth-Token (Optional) | header | string | Token |
X-Newest (Optional) | header | boolean | If 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
Name | In | Type | Description |
---|---|---|---|
Content-Length | header | string | Length 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) | header | string | Account metadata. The name part in the header name functions as a key of the metadata. |
X-Account-Meta-Temp-URL-Key (Optional) | header | string | Secret key for the temporary URL |
X-Account-Meta-Temp-URL-Key-2 (Optional) | header | string | Second secret key for the temporary URL |
X-Timestamp | header | integer | The time when the account was created (in UNIX Time) |
X-Trans-Id | header | string | Transaction ID of the request |
X-Openstack-Request-Id | header | string | Transaction ID of the request (same as X-Trans-Id) |
Date | header | string | Response time of the request (in UTC) |
X-Account-Bytes-Used | header | integer | Total size used by the account (in bytes) |
X-Account-Container-Count | header | integer | Number of containers (buckets) of the account |
X-Account-Object-Count | header | integer | Number of objects of the account |
X-Account-Storage-Policy-name -Bytes-Used | header | integer | Total size of the storage policy for name (in bytes) |
X-Account-Storage-Policy-name -Container-Count | header | integer | Number of containers (buckets) of the storage policy for name |
X-Account-Storage-Policy-name -Object-Count | header | integer | Number of objects of the storage policy for name |
X-Account-Meta-Quota-Bytes (Optional) | header | string | Storage limit of the account (in bytes) |
Content-Type | header | string | MIME 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?