OpenStack Swift Guide

Post Reply
BlompSupport
Posts: 524
Joined: Wed Feb 13, 2019 4:20 pm
Contact:

OpenStack Swift Guide

Post by BlompSupport » Tue Jan 13, 2026 10:09 am

This guide explains how to use OpenStack Swift with rclone, Python, and PHP, using the following Swift configuration (Blomp-style).
  1. rclone

    rclone config
    Use the following values:

    Code: Select all

    Storage: swift
    env_auth: false
    auth: https://authenticate.ain.net
    user: email
    key: password
    tenant: storage
    auth_version: 2
    
    Common rclone Commands

    Code: Select all

    rclone lsd blomp:
    rclone ls blomp:my-container
    rclone copy file.txt blomp:my-container
    rclone copy blomp:my-container/file.txt .
    rclone sync ./localdir blomp:my-container
    
  2. Python

    Code: Select all

    from swiftclient.client import Connection
    
    conn = Connection(
        authurl="https://authenticate.ain.net",
        user="email",
        key="password",
        tenant_name="storage",
        auth_version="2"
    )
    
    Upload and download objects from Swift

    Code: Select all

    conn.put_object("my-container", "example.txt", open("example.txt", "rb"))
    headers, body = conn.get_object("my-container", "example.txt")
    open("downloaded.txt", "wb").write(body)
    
  3. PHP

    Code: Select all

    use OpenStack\OpenStack;
    
    $openstack = new OpenStack([
        'authUrl' => 'https://authenticate.ain.net',
        'user' => [
            'name' => '
Status :
- Blomp support

Check out our video! Trust me, you're going to blomping love it. https://www.youtube.com/watch?v=klnAFs3H3bw&t=70s

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest