128
edits
Line 13: | Line 13: | ||
The object store maintains its own set of credentials. | The object store maintains its own set of credentials. | ||
You can get access to the [https://docs.openstack.org/swift/latest/api/object_api_v1_overview.html Object Store swift Api] directly with the RC file credential | You can get access to the [https://docs.openstack.org/swift/latest/api/object_api_v1_overview.html Object Store swift Api] directly with the same RC file credential that you created for the Openstack client in the perquisite step, and the official [https://pypi.org/project/python-swiftclient/ Openstack Swift client]. Not that while the S3 Api is more feture rich and has better support, some operation can only be done with the Swift Api which is the native openstack Object Store Api. For example, to get the Quota of you account: | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight ,lang="bash"> | ||
$ source $HOME/id/myproject-openrc.sh # | $ source $HOME/id/myproject-openrc.sh # created for the OpenStack client | ||
$ swift stat --lh | $ swift stat --lh | ||
Account: AUTH_d5f8b8e8e3e2442f81573b2f0951013b | Account: AUTH_d5f8b8e8e3e2442f81573b2f0951013b | ||
Line 39: | Line 39: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
You see here an account with 11 Containers (Swift's Containers are S3 Buckets) 2 Million objects, and 1.1 PB used out of its 1.5 PB quota. | You see here an account with 11 Containers (Swift's Containers are S3 Buckets) 2 Million objects, and 1.1 PB used out of its 1.5 PB quota. |
edits