Created
July 8, 2015 11:28
-
-
Save hironobu-s/514303b5627c70925a51 to your computer and use it in GitHub Desktop.
Using TempURL with PUT method
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# swift post testcontainer | |
# swift list | |
testcontainer | |
# swift post -m "Temp-Url-Key:testkey" | |
# swift stat | |
Account: nc_********************************* | |
Containers: 1 | |
Objects: 0 | |
Bytes: 0 | |
Containers in policy "policy-0": 1 | |
Objects in policy "policy-0": 0 | |
Bytes in policy "policy-0": 0 | |
Meta Quota-Bytes: 107374182400 | |
Meta Temp-Url-Key: testkey | |
X-Timestamp: 1431391117.81116 | |
X-Trans-Id: tx***************-******** | |
Content-Type: text/plain; charset=utf-8 | |
Accept-Ranges: bytes | |
# echo "test data" > test.txt | |
# swift tempurl PUT 3600 /v1/nc_*********************************/testcontainer/test.txt testkey | |
/v1/nc_*********************************/testcontainer/test.txt?temp_url_sig=***************************************&temp_url_expires=1436352596 | |
# curl -i -T test.txt -X PUT 'https://object-storage.tyo1.conoha.io/v1/nc_*********************************/testcontainer/test.txt?temp_url_sig=***************************************&temp_url_expires=1436354760' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment