You must have a Swift tenant account in the StorageGRID system.
About this task
If you have not configured security, you must add the --insecure flag to each of these commands.
Steps
Query the info URL for your StorageGRID Swift deployment:
swift
-U <Tenant_Account_ID:User_Name>
-K <User_Password>
-A https://<FQDN | IP>:<Port>/info
capabilities
This is sufficient to test that your Swift deployment is functional. To further test account configuration by storing an object, continue with the additional steps.
Put an object in the container:
touch test_object
swift
-U <Tenant_Account_ID:Account_User_Name>
-K <User_Password>
-A https://<FQDN | IP>:<Port>/auth/v1.0
upload test_container test_object
--object-name test_object
Get the container to verify the object:
swift
-U <Tenant_Account_ID:Account_User_Name>
-K <User_Password>
-A https://<FQDN | IP>:<Port>/auth/v1.0
list test_container
Delete the object:
swift
-U <Tenant_Account_ID:Account_User_Name>
-K <User_Password>
-A https://<FQDN | IP>:<Port>/auth/v1.0
delete test_container test_object
Delete the container:
swift
-U <Tenant_Account_ID:Account_User_Name>
-K <User_Password>
-A https://<FQDN | IP>:<Port>/auth/v1.0
delete test_container