pip install python-openstackclient python-keystoneclient python-swiftclient
swift list
ou
openstack container list
swift info --json | jq -r '.swift.policies[].name'
swift post <container-name> [-H 'X-Container-Read: .r:*'] [-H 'X-Storage-Policy: <policy-name>']
ou
openstack container create [--public] [--storage-policy <policy-name>] <container-name>
swift delete <container>
ou
openstack container delete [--force] <container>
swift list <container>
ou
openstack object list <container>
swift upload <container> <fichier ou dossier>
ou
openstack object create <container> <fichier>
swift download <container> <fichier>
Vous pouvez aussi télécharger tous les objects avec le même chemin :
swift download <container> --prefix <chemin>
swift delete <container> <object>
ou
openstack object delete <container> <object>
Vous pouvez aussi supprimer tous les objects avec le même chemin :
swift delete <container> <chemin>/*