# swift
Command 'swift' not found, but can be installed with:
snap install openstackclients # version rocky, or
snap install swift # version 4.0.3
apt install python-swiftclient
apt install python3-swiftclient
See 'snap info <snapname>' for additional versions.
# apt install python-swiftclient
# swift -A http://115.68.238.26/auth/1.0 -U <USER>:s3 -K <API_KEY> list
aaa-iwinv1
:: swift -A http://115.68.238.26/auth/1.0 -U <USER>:swift -K <Secret_KEY> list
# swift -A http://115.68.238.26/auth/1.0 -U <USER>:swift -K <API_KEY> list
aaa-iwinv1
ȯ°æº¯¼ö·Î Á¤ÀÇÇؼ »ç¿ë
# swift list
Auth version 1.0 requires ST_AUTH, ST_USER, and ST_KEY environment variables
to be set or overridden with -A, -U, or -K.
Auth version 2.0 requires OS_AUTH_URL, OS_USERNAME, OS_PASSWORD, and
OS_TENANT_NAME OS_TENANT_ID to be set or overridden with --os-auth-url,
--os-username, --os-password, --os-tenant-name or os-tenant-id. Note:
adding "-V 2" is necessary for this.
# export ST_AUTH=http://192.168.210.64/auth/1.0
# export ST_USER=mojily:swift
# export ST_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxx
SSL »ç¿ëÇÒ¶§´Â..
# export ST_AUTH=https://192.168.210.64/auth/1.0
# export ST_USER=mojily:swift
# export ST_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxx
# swift list --insecure
# cat /etc/redhat-release
CentOS Linux release 7.6.1810 (Core)
# swift
Command 'swift' not found, but can be installed with:
snap install openstackclients # version rocky, or
snap install swift # version 4.0.3
apt install python-swiftclient
apt install python3-swiftclient
See 'snap info <snapname>' for additional versions.
# rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
# yum install python-pip
# pip install python-swiftclient
¡Ø error message
# pip install python-swiftclient
You are using pip version 8.1.2, however version 19.2.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
# pip install --upgrade pip