<html><body><p>Also see:  <a href="http://docs.openstack.org/developer/swift/api/object_api_v1_overview.html">http://docs.openstack.org/developer/swift/api/object_api_v1_overview.html</a><br><br>The trial VM has python-swiftclient installed.  You can execute basic swift commands as follows:<br><br>source openrc   #define environment variables for account, user credentials etc.<br>swift stat  #show account statistics<br>swift upload <some containername> <some file><br><br>One helpful trick is to execute the client commands with --debug flag.  This will show the exact http request that the client code is sending.  For example:<br># swift --debug stat<br><snip...><br>INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): client28<br>DEBUG:requests.packages.urllib3.connectionpool:"HEAD /v1/AUTH_7c0243a523cf436e9a0e79c9b7083f9e HTTP/1.1" 204 0<br><b><span class="domino-highlight-yellow" style="background-color: yellow"><font color="#000000">DEBUG:swiftclient:REQ: curl -i </font></span></b><a href="http://client28:8080/v1/AUTH_7c0243a523cf436e9a0e79c9b7083f9e"><b><span class="domino-highlight-yellow" style="background-color: yellow">http://client28:8080/v1/AUTH_7c0243a523cf436e9a0e79c9b7083f9e</span></b></a><b><span class="domino-highlight-yellow" style="background-color: yellow"><font color="#000000"> -I -</font></span></b><b><span class="domino-highlight-yellow" style="background-color: yellow"><font color="#000000">H "X-Auth-Token</font></span></b><b><span class="domino-highlight-yellow" style="background-color: yellow"><font color="#000000">: <tokenstring>"</font></span></b><br>DEBUG:swiftclient:RESP STATUS: 204 No Content<br>DEBUG:swiftclient:RESP HEADERS: [('content-length', '0'), ('x-account-object-count', '0'), ('x-account-project-domain-id', 'default'), ('x-account-storage-policy-policy-0-bytes-used', '0'), ('x-account-storage-policy-policy-0-container-count', '10'), ('x-timestamp', '1467238461.63001'), ('x-account-storage-policy-policy-0-object-count', '0'), ('x-trans-id', 'txd3e3d9ca87fe4e23a5c9c-0057753b57'), ('date', 'Thu, 30 Jun 2016 15:31:36 GMT'), ('x-account-bytes-used', '0'), ('x-account-container-count', '10'), ('content-type', 'text/plain; charset=utf-8'), ('accept-ranges', 'bytes')]<br>                        Account: AUTH_7c0243a523cf436e9a0e79c9b7083f9e<br>                     Containers: 10<br>                        Objects: 0<br>                          Bytes: 0<br>Containers in policy "policy-0": 10<br>   Objects in policy "policy-0": 0<br>     Bytes in policy "policy-0": 0<br>    X-Account-Project-Domain-Id: default<br>                    X-Timestamp: 1467238461.63001<br>                     X-Trans-Id: txd3e3d9ca87fe4e23a5c9c-0057753b57<br>                   Content-Type: text/plain; charset=utf-8<br>                  Accept-Ranges: bytes<br><br>Regards,<br>Bill Owen   <br>billowen@us.ibm.com<br>Spectrum Scale Object Storage <br>520-799-4829<br><br><br><img width="16" height="16" src="cid:1__=07BBF571DFC758558f9e8a93df938690918c07B@" border="0" alt="Inactive hide details for Jan-Frode Myklebust ---06/30/2016 07:29:56 AM---The object side is just openstack swift, so f.ex: htt"><font color="#424282">Jan-Frode Myklebust ---06/30/2016 07:29:56 AM---The object side is just openstack swift, so f.ex: <a href="https://github.com/openstack/python-swiftclient/bl">https://github.com/openstack/python-swiftclient/bl</a></font><br><br><font size="2" color="#5F5F5F">From:        </font><font size="2">Jan-Frode Myklebust <janfrode@tanso.net></font><br><font size="2" color="#5F5F5F">To:        </font><font size="2">"gpfsug-discuss@spectrumscale.org" <gpfsug-discuss@spectrumscale.org></font><br><font size="2" color="#5F5F5F">Date:        </font><font size="2">06/30/2016 07:29 AM</font><br><font size="2" color="#5F5F5F">Subject:        </font><font size="2">Re: [gpfsug-discuss] restful way to get at SS OBJ store</font><br><font size="2" color="#5F5F5F">Sent by:        </font><font size="2">gpfsug-discuss-bounces@spectrumscale.org</font><br><hr width="100%" size="2" align="left" noshade style="color:#8091A5; "><br><br><br><font size="4">The object side is just openstack swift, so f.ex:<br></font><u><font size="4" color="#0000FF"><br></font></u><a href="https://github.com/openstack/python-swiftclient/blob/master/README.rst"><u><font size="4" color="#0000FF">https://github.com/openstack/python-swiftclient/blob/master/README.rst</font></u></a><font size="4"><br><br><br><br>-jf<br></font><br><font size="4">tor. 30. jun. 2016 kl. 16.01 skrev </font><a href="mailto:Mark.Bush@siriuscom.com"><u><font size="4" color="#0000FF">Mark.Bush@siriuscom.com</font></u></a><font size="4"> <</font><a href="mailto:Mark.Bush@siriuscom.com"><u><font size="4" color="#0000FF">Mark.Bush@siriuscom.com</font></u></a><font size="4">>:</font><ul>I know in the trial VM it recommends using CyberDuck to get to the object side of scale.  Does anyone have a programmatic example of doing this?  Python would be preferred here.  
<p> 
<p><font color="#00257B">Mark R. Bush</font> | Solutions Architect<br>Mobile: 210.237.8415 | <a href="mailto:mark.bush@siriuscom.com" target="_blank"><u><font color="#0000FF">mark.bush@siriuscom.com</font></u></a><br>Sirius Computer Solutions | <a href="http://www.siriuscom.com/" target="_blank"><u><font color="#0000FF">www.siriuscom.com</font></u></a><br>10100 Reunion Place, Suite 500, San Antonio, TX 78216 
<p><font size="4"> </font><p><font size="2" face="Cambria">This message (including any attachments) is intended only for the use of the individual or entity to which it is addressed and may contain information that is non-public, proprietary, privileged, confidential, and exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any use, dissemination, distribution, or copying of this communication is strictly prohibited. This message may be viewed by parties at Sirius Computer Solutions other than those named in the message header. This message does not contain an official representation of Sirius Computer Solutions. If you have received this communication in error, notify Sirius Computer Solutions immediately and (i) destroy this message if a facsimile or (ii) delete this message immediately if this is an electronic communication. Thank you. </font><p><a href="http://www.siriuscom.com/" target="_blank"><b><u><font color="#0000FF" face="Calibri">Sirius Computer Solutions</font></u></b></a><font size="4"> </font><br><font size="4">_______________________________________________<br>gpfsug-discuss mailing list<br>gpfsug-discuss at </font><a href="http://spectrumscale.org/" target="_blank"><u><font size="4" color="#0000FF">spectrumscale.org</font></u></a><u><font size="4" color="#0000FF"><br></font></u><a href="http://gpfsug.org/mailman/listinfo/gpfsug-discuss" target="_blank"><u><font size="4" color="#0000FF">http://gpfsug.org/mailman/listinfo/gpfsug-discuss</font></u></a><tt>_______________________________________________<br>gpfsug-discuss mailing list<br>gpfsug-discuss at spectrumscale.org<br></tt><tt><a href="http://gpfsug.org/mailman/listinfo/gpfsug-discuss">http://gpfsug.org/mailman/listinfo/gpfsug-discuss</a></tt><tt><br></tt><br><br></ul><BR>
</body></html>