HeadAccount
    • PDF

    HeadAccount

    • PDF

    Article Summary

    개요

    어카운트의 메타데이터를 조회합니다.

    구문

    HEAD /v1/AUTH_{project_id}
    

    요청

    NameInTypeDescription
    project_idpathstring프로젝트 ID 입력
    X-Auth-Token (Optional)headerstring발급한 Token 값 입력
    X-Newest (Optional)headerbooleantrue인 경우, 모든 복제본에 대해 질의를 하고 가장 최근 복제본의 정보로 응답
    해당 헤더가 생략된 경우, 가장 응답이 빠른 정보로 응답

    응답

    NameInTypeDescription
    Content-Lengthheaderstring- 응답 결과의 길이
    해당 요청은 Response Body의 내용이 없으므로, 요청 성공 시 0
    X-Account-Meta-name (Optional)headerstring- 해당 어카운트의 메타데이터 정보
    헤더명의 name 부분이 메타데이터의 키 역할을 함
    X-Account-Meta-Temp-URL-Key (Optional)headerstringtemporary URL을 위한 Secret Key 값
    X-Account-Meta-Temp-URL-Key-2 (Optional)headerstringtemporary URL을 위한 두 번째 Secret Key 값
    X-Timestampheaderinteger어카운트가 생성된 시각 (UNIX Time)
    X-Trans-Idheaderstring해당 요청의 트랜젝션 ID
    X-Openstack-Request-Idheaderstring해당 요청의 트랜젝션 ID (X-Trans-Id와 동일)
    Dateheaderstring해당 요청의 응답 시간 (UTC)
    X-Account-Bytes-Usedheaderinteger해당 어카운트가 사용하는 전체 크기 (Bytes)
    X-Account-Container-Countheaderinteger해당 어카운트에 있는 전체 컨테이너(버킷) 개수
    X-Account-Object-Countheaderinteger해당 어카운트의 전체 오브젝트 개수
    X-Account-Storage-Policy-name-Bytes-Usedheaderintegername에 해당하는 storage policy의 전체 크기 (Bytes)
    X-Account-Storage-Policy-name-Container-Countheaderintegername에 해당하는 storage policy의 전체 컨테이너(버킷) 개수
    X-Account-Storage-Policy-name-Object-Countheaderintegername에 해당하는 storage policy의 전체 오브젝트 개수
    X-Account-Meta-Quota-Bytes (Optional)headerstring해당 어카운트의 용량 제한값 (Bytes)
    Content-Typeheaderstring응답 결과의 MIME 타입

    예시

    요청 예시

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

    응답 예시

    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
    

    이 문서가 도움이 되었습니까?

    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.