Delete account with InternalClient
Bug #1680377 reported by
clayg
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
Fix Released
|
Wishlist
|
HCLTech-SSW |
Bug Description
The internal client module is missing a delete_account method, you can roll your own with make_request [1]
But it'd be nice if it was there and easy to use.
1. https:/
Changed in swift: | |
assignee: | nobody → HCLTech-SSW (hcltech-ssw) |
status: | New → In Progress |
To post a comment you must log in.
As this can be done using the below set of commands:
a) Issue the GET request to get the authentication token for the admin user, using the following command.
curl -v -H 'X-Storage-User: admin:admin' -H 'X-Storage-Pass: admin' http://<ip address> :8080/auth/ v1.0
Output is X-Auth-Token.
b) Issue the delete request for the specific account by passing the account storage URL.
curl -X DELETE -H 'X-Auth-Token: <Token from step a above>' http://<ip address> :8080/v1/ AUTH_<Name of the account to be deleted.>
There is No Output from this command, but the account get deleted.
As there is the provision to delete the account using cURL, still there is the need to provide the method into the internal client library??