Along with managing your storage container, Python-Swiftclient can be used to debug your swift’s objects and to determine whether there are any issues with them. Universal CDN Cloud Storage service uses OpenStack Swift technology.
For information on installing and using the python-swiftclient tool please click here!
То check on how to display information for your storage container, or for an object in there, please review the examples below:
Retrieving stats information for your storage container:
swift stat --os-username YOUR_USERNAME --os-tenant-name YOUR_TENANT --os-password YOUR_PASSWORD --os-auth-url YOUR_STORAGE_NAME
Example:
swift stat --os-username 1011131 --os-tenant-name 1011131 --os-password nTRIfVgCmJrokts --os-auth-url https://auth.files.nl01.cloud.servers.com:5000/v2.0/ storage
Retrieving stats information about the headers of your asset:
swift stat --os-username YOUR_USERNAME --os-tenant-name YOUR_TENANT --os-password YOUR_PASSWORD --os-auth-url YOUR_STORAGE_NAME YOUR_FILE_NAME
Example:
swift stat --os-username 1011131 –os-tenant-name 1011131 –os-password nTRIfVgCmaJrokts –os-auth-url https://auth.files.nl01.cloud.servers.com:5000/v2.0/ stat storage file.mp4
Where:
--os-username
Is the first part is your Openstack Swift username (–os-username) and the second part is your Openstack Swift tenant-name (–os-tenant-name) (e.g 1011131.1011131).
Due to the requirements of the Object Storage service (swift) architecture, your FTP username contains two authentication parts separated by dot (.) character.
In the provided example the Openstack Swift username (–os-username) is 1011131
--os-tenant-name
Is the second part of your FTP username is (–os-tenant-name).
In the provided example the Openstack Swift tenant-name (–os-tenant-name) is 1011131
--os-password
Is the FTP password, which can be obtained through the Universal CDN Control Panel.
--os-auth-url
Is the Swift authorization URL.
Below are the authorization URLs that should be used:
https://auth.files.nl01.cloud.servers.com:5000/v2.0/
– to connect to your Europe container.
https://auth.files.us01.cloud.servers.com:5000/v2.0/
– to connect to your North American container.