Also see: http://docs.openstack.org/developer/swift/api/object_api_v1_overview.html

The trial VM has python-swiftclient installed. You can execute basic swift commands as follows:

source openrc #define environment variables for account, user credentials etc.
swift stat #show account statistics
swift upload <some containername> <some file>

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:
# swift --debug stat
<snip...>
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): client28
DEBUG:requests.packages.urllib3.connectionpool:"HEAD /v1/AUTH_7c0243a523cf436e9a0e79c9b7083f9e HTTP/1.1" 204 0
DEBUG:swiftclient:REQ: curl -i http://client28:8080/v1/AUTH_7c0243a523cf436e9a0e79c9b7083f9e -I -H "X-Auth-Token: <tokenstring>"
DEBUG:swiftclient:RESP STATUS: 204 No Content
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')]
Account: AUTH_7c0243a523cf436e9a0e79c9b7083f9e
Containers: 10
Objects: 0
Bytes: 0
Containers in policy "policy-0": 10
Objects in policy "policy-0": 0
Bytes in policy "policy-0": 0
X-Account-Project-Domain-Id: default
X-Timestamp: 1467238461.63001
X-Trans-Id: txd3e3d9ca87fe4e23a5c9c-0057753b57
Content-Type: text/plain; charset=utf-8
Accept-Ranges: bytes

Regards,
Bill Owen
billowen@us.ibm.com
Spectrum Scale Object Storage
520-799-4829


Inactive hide details for Jan-Frode Myklebust ---06/30/2016 07:29:56 AM---The object side is just openstack swift, so f.ex: httJan-Frode Myklebust ---06/30/2016 07:29:56 AM---The object side is just openstack swift, so f.ex: https://github.com/openstack/python-swiftclient/bl

From: Jan-Frode Myklebust <janfrode@tanso.net>
To: "gpfsug-discuss@spectrumscale.org" <gpfsug-discuss@spectrumscale.org>
Date: 06/30/2016 07:29 AM
Subject: Re: [gpfsug-discuss] restful way to get at SS OBJ store
Sent by: gpfsug-discuss-bounces@spectrumscale.org





The object side is just openstack swift, so f.ex:

https://github.com/openstack/python-swiftclient/blob/master/README.rst



-jf

tor. 30. jun. 2016 kl. 16.01 skrev Mark.Bush@siriuscom.com <Mark.Bush@siriuscom.com>: