PutContainer
    • PDF

    PutContainer

    • PDF

    Article Summary

    개요

    컨테이너(버킷)을 생성합니다.

    구문

    PUT https://{endpoint}/swift/v1/{containerName}
    

    요청

    요청 헤더

    헤더명설명
    x-ncp-apigw-timestamp- 1970년 1월 1일 00:00:00 협정 세계시(UTC)부터의 경과 시간을 밀리초(millisecond)로 나타낸 것
    - APIGW 서버와 시간차가 5분 이상 나는 경우 유효하지 않은 요청으로 간주
    x-ncp-iam-access-key네이버 클라우드 플랫폼에서 발급받은 API Key 또는 Sub Account에서 발급받은 AccessKey
    x-ncp-apigw-signature-v2- 위 예제의 Body를 AccessKey와 맵핑되는 SecretKey로 암호화한 서명
    - HMAC 암호화 알고리즘은 HmacSHA256 사용
    x-ncp-region_code다른 클라우드에서 네이버 클라우드로 이관할 데이터의 버킷이 존재하는 region code

    요청 파라미터

    파라미터명필수여부타입제약사항설명
    ContainerName-string-생성할 컨테이너 명

    응답

    응답 헤더

    NameInTypeDescription
    Content-Lengthheaderstring응답 결과의 길이 (Bytes)
    X-Trans-Idheaderstring해당 요청의 트랜젝션 ID
    X-Openstack-Request-Idheaderstring해당 요청의 트랜젝션 ID (X-Trans-Id와 동일)
    Dateheaderstring해당 요청의 응답 시간 (UTC)

    예시

    요청 예시(JSON)

    curl -X PUT " https://archivestorage.apigw.ntruss.com/swift/v1/{containerName}" -H "accept: application/json" -H "x-ncp-region-code: {regionCode}"
    -H "x-ncp-iam-access-key: {AccessKey} " 
    -H "x-ncp-apigw-timestamp: {current timestamp}" 
    -H "x-ncp-apigw-signature-v2: {generated signature}"
    

    응답 예시

    HTTP/1.1 201 CREATED
    connection: keep-alive
    content-Length: 0
    date: Mon, 18 Apr 2022 11:07:18 GMT
    referrer-policy: unsafe-url
    server: nginx
    x-ncp-apigw-response-origin: ENDPOINT 
    x-ncp-trace-id: 6cd9l6lj66d356cchgc4rjcc1o 
    x-openstack-request-id: tx22271460548e4c52a050d-0065546529 
    x-trans-id: tx22271460548e4c52a050d-0065546529 
    

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

    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.