How to obtain the X-Auth-Token in Identity API v3?

In the Identity API v3, the id of the X-Auth-Token ( e.g. X-Subject-Token: 51aj73145b553he7bdfgb9fa8b53bede ) locates in the response header, not in the body part. To get the id of the X-Auth-Token with the cURL tool, please follow the example below:


curl -i -H "Content-Type: application/json" -d '{ "auth": {"identity": {"methods": ["password"], "password": {"user": {"name": "1011131", "domain": { "id": "default" }, "password": "KGrhJKFjmyqabBay" }}}}}' "https://auth.files.nl01.cloud.servers.com:5000/v3/auth/tokens" ; echo


Where:

name is the first part is your Openstack Swift username ( e.g . “name”: “1011131” ) and the second part is your Openstack Swift tenant-name (e.g 1011131.1011131).


For the id of the domain, you should explicitly typedefault( e.g. “domain”: { “id”: “default” } ).


password
is the FTP password, which can be obtained through the Universal CDN Control Panel ( e.g. “password”: “KGrhJKFjmyqabBay” ).


The authorization URL for storage containers located in Europe:

https://auth.files.nl01.cloud.servers.com:5000/v3/auth/tokens


The authorization URL for storage containers located in North America:

https://auth.files.us01.cloud.servers.com:5000/v3/auth/tokens


Example:

$ curl -i -H "Content-Type: application/json" -d '{ "auth": {"identity": {"methods": ["password"], "password": {"user": {"name": "1011131", "domain": { "id": "default" }, "password": "KGrhJKFjmyqabBay" }}}}}' "https://auth.files.nl01.cloud.servers.com:5000/v3/auth/tokens" ; echo
HTTP/1.1 201 Created
X-Subject-Token: 51aj73145b553he7bdfgb9fa8b53bede
Vary: X-Auth-Token
X-Distribution: Ubuntu
Content-Type: application/json
Content-Length: 2393
X-Openstack-Request-Id: req-345e6d4a-663a-4255-8559-70228d5865a2
Date: Fri, 16 Jul 2021 06:14:02 GMT

{"token": {"methods": ["password"], "roles": [{"id": "9fe2ff9ee4384b1894a90878d3e92bab", "name": "_member_"}, {"id": "36df16334ce54a0a80527b1df2db7974", "name": "SwiftOperator"}], "expires_at": "2021-07-17T06:14:02.000000Z", "project": {"domain": {"id": "default", "name": "Default"}, "id": "31c646340f83401ebc46e770e0cd449f", "name": "1011131"}, "catalog": [{"endpoints": [{"region_id": "ams-1", "url": "http://keystone.p.swift-ams-1.mgm.servers.com:35357/v2.0", "region": "ams-1", "interface": "admin", "id": "0bbf3510812d4d7a879fcacb07c4e752"}, {"region_id": "ams-1", "url": "https://auth.files.nl01.cloud.servers.com:5000/", "region": "ams-1", "interface": "public", "id": "2c352870a2cc4c6b9319236915698014"}, {"region_id": "ams-1", "url": "http://keystone.p.swift-ams-1.mgm.servers.com:5001/v2.0", "region": "ams-1", "interface": "internal", "id": "7072728f669b49b98da18f7408981b4c"}, {"region_id": "ams-1", "url": "http://keystone.p.swift-ams-1.mgm.servers.com:5001/", "region": "ams-1", "interface": "internal", "id": "93cf6481f4974f11a07d7321ec3cdd9c"}, {"region_id": "ams-1", "url": "http://keystone.p.swift-ams-1.mgm.servers.com:35357/", "region": "ams-1", "interface": "admin", "id": "e65c7bf7fcf4493da425deb56b1f1710"}, {"region_id": "ams-1", "url": "https://auth.files.nl01.cloud.servers.com:5000/v2.0", "region": "ams-1", "interface": "public", "id": "faed541f24394424a7a4db7777f98f81"}], "type": "identity", "id": "a6eaea6661834e50bba6b31b375b2d29", "name": "keystone"}, {"endpoints": [{"region_id": "ams-1", "url": "https://storage.files.nl01.cloud.servers.com:8080/v1/SERVERSCOM_31c646340f83401ebc46e770e0cd449f", "region": "ams-1", "interface": "public", "id": "0414c0c1ce44403fbc476f70afe92d90"}, {"region_id": "ams-1", "url": "https://storage.files.nl01.cloud.servers.com:8080/v1", "region": "ams-1", "interface": "admin", "id": "18654ed293e54241a2400a4bb0e5baa4"}, {"region_id": "ams-1", "url": "https://storage.files.nl01.cloud.servers.com:8080/v1/SERVERSCOM_31c646340f83401ebc46e770e0cd449f", "region": "ams-1", "interface": "internal", "id": "350380b43a974e5f851cb078cc99c8ee"}], "type": "object-store", "id": "d3d7d4a01f62488ca7fbbb725bb125a2", "name": "swift"}], "user": {"domain": {"id": "default", "name": "Default"}, "id": "8e5a4feec6864bf1b8b88ff2dcebf828", "name": "1011131"}, "audit_ids": ["SLNqJoOOTp2AJF8pXHkkuA"], "issued_at": "2021-07-16T06:14:02.000000Z"}}


FTP Upload

Upload with Python-Swiftclient

Upload Large Files with Python-Swiftclient

Upload Through OpenStack Swift API

Upload with Rclone