Hello, We want to fetch all the servers present in all the projects a user has access to. Currently we have to provide any one project name in the body of the authentication call. Is there a way we can fetch all the projects without providing any project name?
Hi Foram, to fetch a name of projects where a specific user has an access to, you can use OpenStack CLI and a command: openstack project list --user <user_id> Is it possible without specifying a project? Directly fetching all servers without specifying any project is not possible using the standard OpenStack API. This is because OpenStack requires a project context for most operations. The solution is to create a custom application or script that automates the process of retrieving data from multiple projects. /Jan Wasilewski czw., 5 gru 2024 o 14:29 <foram.thakkar@crestdata.ai> napisał(a):
Hello, We want to fetch all the servers present in all the projects a user has access to. Currently we have to provide any one project name in the body of the authentication call. Is there a way we can fetch all the projects without providing any project name?
Hello, You can fetch all the servers across all projects a user has access to in OpenStack. Use a direct REST API call to authenticate and retrieve an unscoped token { "auth": { "identity": { "methods": ["password"], "password": { "user": { "name": "username", "domain": { "id": "user domain" }, "password": "user password" } } } } } Yours faithfully, *Vidyacakra(විද්යාචක්ර) *Pushpakumara | Suhuru -skill <http://www.suhuru.lk> SmartGPS is a division of Suhuru On Thu, Dec 5, 2024 at 2:31 PM <foram.thakkar@crestdata.ai> wrote:
Hello, We want to fetch all the servers present in all the projects a user has access to. Currently we have to provide any one project name in the body of the authentication call. Is there a way we can fetch all the projects without providing any project name?
Hi විද්යාචක්ර Vidyacakra Pushpak umara, Can you please help with the next step once we have the unscoped token? Currently we are unable to fetch all the servers across all the projects with unscoped token. Thanks!
participants (3)
-
foram.thakkar@crestdata.ai
-
Jan Wasilewski
-
විද්යාචක්ර Vidyacakra Pushpak umara