PostContainer
    • PDF

    PostContainer

    • PDF

    기사 요약

    개요

    컨테이너(버킷)에 메타데이터를 설정 및 변경합니다.

    구문

    POST /v1/AUTH_{project_id}/{container}
    

    요청

    명칭In타입설명
    project_idpathstring프로젝트 ID 입력
    containerpathstring컨테이너(버킷) 이름 입력
    X-Auth-Token (Optional)headerstring발급한 Token 값 입력
    X-Container-Read (Optional)headerstring해당 컨테이너의 READ ACL
    X-Container-Write (Optional)headerstring해당 컨테이너의 WRITE ACL
    X-Container-Sync-Key (Optional)headerstringnot supported
    X-Container-Sync-To (Optional)headerstringnot supported
    X-Versions-Location (Optional)headerstringnot supported
    X-History-Location (Optional)headerstringnot supported
    X-Remove-Versions-Location (Optional)headerstringnot supported
    X-Remove-History-Location (Optional)headerstringnot supported
    X-Container-Meta-name (Optional)headerstring해당 컨테이너(버킷)의 메타데이터를 세팅 (헤더명의 name 부분이 메타데이터의 키 역할을 함)
    X-Remove-Container-name (Optional)headerstring해당 컨테이너(버킷)의 메타데이터 삭제 (헤더명의 name 부분이 메타데이터의 키 역할을 함)
    X-Remove-Container-Read 혹은 X-Remove-Container-Meta-name
    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-Quota-Bytes (Optional)headerstring해당 컨테이너(버킷)의 용량 제한값을 입력
    (bytes) 용량 제한을 넘어선 이후에 제한
    X-Container-Meta-Quota-Count (Optional)headerstring해당 컨테이너(버킷)의 오브젝트 수의 제한값 입력
    X-Container-Meta-Temp-URL-Key (Optional)headerstringtemporary URL을 위한 Secret Key 값 입력
    X-Container-Meta-Temp-URL-Key-2 (Optional)headerstringtemporary URL을 위한 두번째 Secret Key 값 입력

    응답

    명칭In타입설명
    Dateheaderstring해당 요청의 응답 시간 (UTC)
    Content-Lengthheaderstring응답 결과의 길이 (Bytes)
    Content-Type (Optional)headerstring응답 결과의 MIME 타입
    X-Trans-Idheaderstring해당 요청의 트랜젝션 ID
    X-Openstack-Request-Idheaderstring해당 요청의 트랜젝션 ID (X-Trans-Id와 동일)

    예시

    요청 예시(컨테이너 메타데이터 생성)

    curl -i -X POST -H "X-Container-Meta-Book: ncloud-book" -H "X-Container-Meta-Subject: ncloud-test-subject" -H "X-Auth-Token: $token" https://kr.archive.gov-ncloudstorage.com/v1/AUTH_{project_id}/{container}
    

    응답 예시

    HTTP/1.1 204 No Content
    Content-Length: 0
    Content-Type: text/html; charset=UTF-8
    X-Trans-Id: txefe14b178c56469b8576f-005b987d66
    X-Openstack-Request-Id: txefe14b178c56469b8576f-005b987d66
    Date: Wed, 12 Sep 2018 02:43:50 GMT
    

    요청 예시(컨테이너 메타데이트 업데이트)

    curl -i -X POST -H "X-Container-Meta-Book: ncloud-book2" -H "X-Container-Meta-Subject: ncloud-test-subject2" -H "X-Auth-Token: $token" https://kr.archive.gov-ncloudstorage.com/v1/AUTH_{project_id}/{container}
    

    응답 예시

    HTTP/1.1 204 No Content
    Content-Length: 0
    Content-Type: text/html; charset=UTF-8
    X-Trans-Id: tx66932a917b854a458544a-005b987d78
    X-Openstack-Request-Id: tx66932a917b854a458544a-005b987d78
    Date: Wed, 12 Sep 2018 02:44:08 GMT
    

    요청 예시(컨테이너 메타데이트 삭제)

    curl -i -X POST -H "X-Remove-Container-Meta-Book: x" -H "X-Remove-Container-Meta-Subject: x" -H "X-Auth-Token: $token" https://kr.archive.gov-ncloudstorage.com/v1/AUTH_{project_id}/{container}
    

    응답 예시

    HTTP/1.1 204 No Content
    Content-Length: 0
    Content-Type: text/html; charset=UTF-8
    X-Trans-Id: tx590d9493661147e780d99-005b987df5
    X-Openstack-Request-Id: tx590d9493661147e780d99-005b987df5
    Date: Wed, 12 Sep 2018 02:46:13 GMT
    

    요청이 성공하게 되면 No Content (204) 상태 코드를 응답합니다.


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

    What's Next
    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.