Querying S3 users via REST API
You can display information, status, and all accounts of a user by sending a GET request to the ostor-users
service along with the user email address:
# s3_curl GET "http://s3.example.com/?ostor-users&emailAddress=user@email.com" { "UserEmail": "user@email.com", "UserId": "b09693b73b3c7686", "State": "enabled", "OwnerId": "0000000000000000", "Flags": [], "AWSAccessKeys": [ { "AWSAccessKeyId": "b09693b73b3c7686FIGH", "AWSSecretAccessKey": "jO2p4JBN1tWc4FEGxwZ8qW2jPCJBYp8RJ4KgBcZP" } ], "AccountCount": "3", "Accounts": [ { "Name": "account1", "AWSAccessKeys": [ { "AWSAccessKeyId": "b09693b73b3c768613NV", "AWSSecretAccessKey": "CBUpFmnpUGlXskTivgDQu4qjYksWpceGZeH6Qyct" } ] }, { "Name": "account2", "AWSAccessKeys": [ { "AWSAccessKeyId": "b09693b73b3c7686LCZ5", "AWSSecretAccessKey": "xLpUDFJMFMO5rR9acAbUDplrPqIO6fneKNFjEB5c" }, { "AWSAccessKeyId": "b09693b73b3c76866NI2", "AWSSecretAccessKey": "ajowU8pWSGW5ZJhA7AR9OjTrt11HmHPCJsMd247W" } ] }, { "Name": "account3", "AWSAccessKeys": [] } ] }