DeleteMultipleObjects
    • PDF

    DeleteMultipleObjects

    • PDF

    Article Summary

    概要

    バケット及び該当パラメータのパスが指定されたPOSTリクエストを送ると、指定されたオブジェクト集合を削除します。x-amz-content-sha256ヘッダに追加でContent-MD5ヘッダがある必要があります。オペレーションに使われるパラメータ、ペイロードはありません。

    リクエスト

    構文

    POST https://{endpoint}/{bucket-name}/?delete= # path style
    POST https://{bucket-name}.{endpoint}/?delete= # virtual host style
    

    例示

    リクエスト例示

    POST /example?delete= HTTP/1.1
    Authorization: {authorization-string}
    Host: kr.object.ncloudstorage.com
    x-amz-date: 20161205T231624Z
    x-amz-content-sha256: 3ade096cd9471017539ede10c4d8aa05a1ecd015a16f4f090e9fcee92a816cf4
    Content-MD5: zhi+TmIAhD2U3GfoYayyTQ==
    Content-Type: text/plain; charset=utf-8
    
    <?xml version="1.0" encoding="UTF-8"?>
    <Delete>
        <Object>
             <Key>surplus-bee</Key>
        </Object>
        <Object>
             <Key>unnecessary-bee</Key>
        </Object>
    </Delete>
    

    レスポンス例示

    HTTP/1.1 200 OK
    Date: Wed, 30 Nov 2016 18:54:53 GMT
    Accept-Ranges: bytes
    x-amz-request-id: a6232735-c3b7-4c13-a7b2-cd40c4728d51
    Content-Type: application/xml
    Content-Length: 207
    
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <DeleteResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
        <Deleted>
             <Key>surplus-bee</Key>
        </Deleted>
        <Deleted>
             <Key>unnecessary-bee</Key>
        </Deleted>
    </DeleteResult>
    

    この記事は役に立ちましたか?

    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.