weizhouapache commented on PR #9345:
URL: https://github.com/apache/cloudstack/pull/9345#issuecomment-2213711547

   > @weizhouapache cc @vishesh92 I guess that needs an API change,
   > 
   > ```
   > (qaserver) 🐱 > list accounts domainid=b32b3316-6c14-11ed-86c2-1e0093003d07 
filter=id,name,domainid
   > {
   >   "account": [
   >     {
   >       "domainid": "b32b3316-6c14-11ed-86c2-1e0093003d07",
   >       "id": "fda39ec5-6c14-11ed-86c2-1e0093003d07",
   >       "name": "admin"
   >     },
   >     {
   >       "domainid": "b32b3316-6c14-11ed-86c2-1e0093003d07",
   >       "id": "ef45928c-b2cb-4f9d-93cd-a484e761d4f9",
   >       "name": "baremetal-system-account"
   >     },
   >     {
   >       "domainid": "b32b3316-6c14-11ed-86c2-1e0093003d07",
   >       "id": "cd9ebe99-e02c-4385-b6ae-bac1ea677489",
   >       "name": "rohit"
   >     },
   >     {
   >       "domainid": "b32b3316-6c14-11ed-86c2-1e0093003d07",
   >       "id": "4e9e632c-ee02-49c1-9868-b53700246c73",
   >       "name": "euler"
   >     },
   >     {
   >       "domainid": "b32b3316-6c14-11ed-86c2-1e0093003d07",
   >       "id": "36b4c0a4-b339-40f0-9991-b17282a686a9",
   >       "name": "rick"
   >     },
   >     {
   >       "domainid": "b32b3316-6c14-11ed-86c2-1e0093003d07",
   >       "id": "04efc774-1777-4056-9cd7-21e27aa52a72",
   >       "name": "testy"
   >     },
   >     {
   >       "domainid": "b32b3316-6c14-11ed-86c2-1e0093003d07",
   >       "id": "705e654b-d85d-456d-8e51-cbe6a14865ad",
   >       "name": "user"
   >     },
   >     {
   >       "domainid": "b32b3316-6c14-11ed-86c2-1e0093003d07",
   >       "id": "f79af173-32c1-4f0b-bb0a-6acb433aabb3",
   >       "name": "capc"
   >     },
   >     {
   >       "domainid": "ae613512-769e-48cd-bd93-a685b9ac9c0a",
   >       "id": "3dd88047-73dd-4795-833d-da87e13c0698",
   >       "name": "test"
   >     }
   >   ],
   >   "count": 9
   > }
   > (qaserver) 🐱 > list accounts domainid=b32b3316-6c14-11ed-86c2-1e0093003d07 
filter=id,name,domainid isrecursive=false 
   > {
   >   "account": [
   >     {
   >       "domainid": "b32b3316-6c14-11ed-86c2-1e0093003d07",
   >       "id": "fda39ec5-6c14-11ed-86c2-1e0093003d07",
   >       "name": "admin"
   >     },
   >     {
   >       "domainid": "b32b3316-6c14-11ed-86c2-1e0093003d07",
   >       "id": "ef45928c-b2cb-4f9d-93cd-a484e761d4f9",
   >       "name": "baremetal-system-account"
   >     },
   >     {
   >       "domainid": "b32b3316-6c14-11ed-86c2-1e0093003d07",
   >       "id": "cd9ebe99-e02c-4385-b6ae-bac1ea677489",
   >       "name": "rohit"
   >     },
   >     {
   >       "domainid": "b32b3316-6c14-11ed-86c2-1e0093003d07",
   >       "id": "4e9e632c-ee02-49c1-9868-b53700246c73",
   >       "name": "euler"
   >     },
   >     {
   >       "domainid": "b32b3316-6c14-11ed-86c2-1e0093003d07",
   >       "id": "36b4c0a4-b339-40f0-9991-b17282a686a9",
   >       "name": "rick"
   >     },
   >     {
   >       "domainid": "b32b3316-6c14-11ed-86c2-1e0093003d07",
   >       "id": "04efc774-1777-4056-9cd7-21e27aa52a72",
   >       "name": "testy"
   >     },
   >     {
   >       "domainid": "b32b3316-6c14-11ed-86c2-1e0093003d07",
   >       "id": "705e654b-d85d-456d-8e51-cbe6a14865ad",
   >       "name": "user"
   >     },
   >     {
   >       "domainid": "b32b3316-6c14-11ed-86c2-1e0093003d07",
   >       "id": "f79af173-32c1-4f0b-bb0a-6acb433aabb3",
   >       "name": "capc"
   >     },
   >     {
   >       "domainid": "ae613512-769e-48cd-bd93-a685b9ac9c0a",
   >       "id": "3dd88047-73dd-4795-833d-da87e13c0698",
   >       "name": "test"
   >     }
   >   ],
   >   "count": 9
   > }
   > (qaserver) 🐱 > list accounts domainid=b32b3316-6c14-11ed-86c2-1e0093003d07 
filter=id,name,domainid isrecursive=false listall=false 
   > {
   >   "account": [
   >     {
   >       "domainid": "b32b3316-6c14-11ed-86c2-1e0093003d07",
   >       "id": "fda39ec5-6c14-11ed-86c2-1e0093003d07",
   >       "name": "admin"
   >     },
   >     {
   >       "domainid": "b32b3316-6c14-11ed-86c2-1e0093003d07",
   >       "id": "ef45928c-b2cb-4f9d-93cd-a484e761d4f9",
   >       "name": "baremetal-system-account"
   >     },
   >     {
   >       "domainid": "b32b3316-6c14-11ed-86c2-1e0093003d07",
   >       "id": "cd9ebe99-e02c-4385-b6ae-bac1ea677489",
   >       "name": "rohit"
   >     },
   >     {
   >       "domainid": "b32b3316-6c14-11ed-86c2-1e0093003d07",
   >       "id": "4e9e632c-ee02-49c1-9868-b53700246c73",
   >       "name": "euler"
   >     },
   >     {
   >       "domainid": "b32b3316-6c14-11ed-86c2-1e0093003d07",
   >       "id": "36b4c0a4-b339-40f0-9991-b17282a686a9",
   >       "name": "rick"
   >     },
   >     {
   >       "domainid": "b32b3316-6c14-11ed-86c2-1e0093003d07",
   >       "id": "04efc774-1777-4056-9cd7-21e27aa52a72",
   >       "name": "testy"
   >     },
   >     {
   >       "domainid": "b32b3316-6c14-11ed-86c2-1e0093003d07",
   >       "id": "705e654b-d85d-456d-8e51-cbe6a14865ad",
   >       "name": "user"
   >     },
   >     {
   >       "domainid": "b32b3316-6c14-11ed-86c2-1e0093003d07",
   >       "id": "f79af173-32c1-4f0b-bb0a-6acb433aabb3",
   >       "name": "capc"
   >     },
   >     {
   >       "domainid": "ae613512-769e-48cd-bd93-a685b9ac9c0a",
   >       "id": "3dd88047-73dd-4795-833d-da87e13c0698",
   >       "name": "test"
   >     }
   >   ],
   >   "count": 9
   > }
   > ```
   
   
   @shwstppr 
   as a workaround, can we filter the accounts by domainid or domain path on UI 
?
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to