How to use SWIFT

In this page you will find documentation about the different SWIFT clients that are available. SWIFT can be addressed with its own native protocol and with the S3 protocol. With respect to S3 the following is supported:

  • Support AWS Signature Version 2, 4 (Version 4 is ready for only keystone)
  • Support Services APIs (GET)
  • Support Bucket APIs (GET/PUT/DELETE/HEAD)
  • Support Object APIs (GET/PUT/DELETE/HEAD)
  • Support Multipart Upload (required SLO middleware support)
  • Support S3 ACL (under development)

More detailed information on what is and is not supported may be found at: https://docs.openstack.org/swift/latest/s3_compat.html


In order to use the SWIFT service you need a user name and a password. SWIFT supports so-called v3 authentication. For v3 authentication, you have projects. Unless we agree upon something else, your project name is the same as your user name. In v3 authentication there are domains for both users and projects. If you have an account in SURFsara’s Central User Administration (CUA) system, then both your project domain as your user domain is CuaUsers. When you only have a local account, then both domains are equal to Default.

In order to be able to use the S3 protocol, you need to get to create so-called EC2 credentials, i.e. an access key and a secret key. How this works is described in EC2 credentials for S3.

Command line clients

Swift command line client

On this page there is info on how to install and use the Python SWIFT client.

S3 command line client s3cmd

Information on s3cmd may be found at the S3cmd page.

AWS S3 client

Information on AWS commandline client awscli may be found at the awscli page.


Information about accessing SWIFT through the curl command is given on the curl page.



Information about accessing SWIFT through Cyberduck is provided on the cyberduck page.

Mounted file systems


It is possible to mount SWIFT object storage as a file system with s3ql both using swift’s native protocol and S3.

S3QL has features like compression, encryption, data de-duplication, immutable trees and snapshotting which make it especially suitable for online backup and archival.

The s3ql page has more information.


It is possible to mount SWIFT object storage as a file system with s3fs using the S3 protocol.

The s3fs page has more information.



Duplicity is a backup tool that amongst others supports cloud storage systems. More information about this can be found at the duplicity page.



Rclone is the rsync for cloud storage. Here is more information on how to use rclone on the rclone page.

It features:

  • MD5/SHA1 hashes checked at all times for file integrity
  • Timestamps preserved on files
  • Partial syncs supported on a whole file basis
  • Copy mode to just copy new/changed files
  • Sync (one way) mode to make a directory identical
  • Check mode to check for file hash equality
  • Can sync to and from network, eg two different cloud accounts
  • Optional encryption (Crypt)
  • Optional FUSE mount (rclone mount)

Libraries and APIs

Python Library

The python library page gives you information on the python-swiftclient library.


SWIFT offers a REST API. Information about this API and some examples are described at the API page.


Boto3 is the AWS SDK for python developed by Amazon. It contains of course an S3 part to access object stores. At boto3 has information on how to use it.

Serving Static Web Pages

SWIFT offers the possibility to serve data in containers as a static web site. The staticweb page has more.