Found the issue is that API server is returning only the "default-project" if we send "X_API_ROLE" role as null. From UI, We send "X_API_ROLE" as null in case of vcenter as it's not applicable.
API server response if we don't send any headers: root@nodec4:~# curl http://localhost:8082/projects {"projects": [{"href": "http://localhost:8082/project/00ee9933-b75c-4bb6-afd1-fa05899ff5cf", "fq_name": ["default-domain", "default-project"], "uuid": "00ee9933-b75c-4bb6-afd1-fa05899ff5cf"}, {"href": "http://localhost:8082/project/e22e663f-f608-4250-9063-e95165e0eac8", "fq_name": ["default-domain", "vCenter"], "uuid": "e22e663f-f608-4250-9063-e95165e0eac8"}]}
API server request issued from UI root@nodec4:~# curl -H 'X-Auth-Token:null' -H 'X_API_ROLE:null' http://localhost:8082/projects {"projects": [{"href": "http://localhost:8082/project/00ee9933-b75c-4bb6-afd1-fa05899ff5cf", "fq_name": ["default-domain", "default-project"], "uuid": "00ee9933-b75c-4bb6-afd1-fa05899ff5cf"}]}
In 3.0, for the same curl request, API server responds with all the projects.
root@b4s375:~# curl -H 'X-Auth-Token:null' -H 'X_API_ROLE:null' http://localhost:8082/projects {"projects": [{"href": "http://localhost:8082/project/6566fd24-7096-42c2-9545-358db86726e6", "fq_name": ["default-domain", "vCenter"], "uuid": "6566fd24-7096-42c2-9545-358db86726e6"}, {"href": "http://localhost:8082/project/13bca581-a562-49b9-a765-39e2bb06b2a8", "fq_name": ["default-domain", "default-project"], "uuid": "13bca581-a562-49b9-a765-39e2bb06b2a8"}]}
Found the issue is that API server is returning only the "default-project" if we send "X_API_ROLE" role as null.
From UI, We send "X_API_ROLE" as null in case of vcenter as it's not applicable.
API server response if we don't send any headers: localhost: 8082/projects localhost: 8082/project/ 00ee9933- b75c-4bb6- afd1-fa05899ff5 cf", "fq_name": ["default-domain", "default-project"], "uuid": "00ee9933- b75c-4bb6- afd1-fa05899ff5 cf"}, {"href": "http:// localhost: 8082/project/ e22e663f- f608-4250- 9063-e95165e0ea c8", "fq_name": ["default-domain", "vCenter"], "uuid": "e22e663f- f608-4250- 9063-e95165e0ea c8"}]}
root@nodec4:~# curl http://
{"projects": [{"href": "http://
API server request issued from UI localhost: 8082/projects localhost: 8082/project/ 00ee9933- b75c-4bb6- afd1-fa05899ff5 cf", "fq_name": ["default-domain", "default-project"], "uuid": "00ee9933- b75c-4bb6- afd1-fa05899ff5 cf"}]}
root@nodec4:~# curl -H 'X-Auth-Token:null' -H 'X_API_ROLE:null' http://
{"projects": [{"href": "http://
In 3.0, for the same curl request, API server responds with all the projects.
root@b4s375:~# curl -H 'X-Auth-Token:null' -H 'X_API_ROLE:null' http:// localhost: 8082/projects localhost: 8082/project/ 6566fd24- 7096-42c2- 9545-358db86726 e6", "fq_name": ["default-domain", "vCenter"], "uuid": "6566fd24- 7096-42c2- 9545-358db86726 e6"}, {"href": "http:// localhost: 8082/project/ 13bca581- a562-49b9- a765-39e2bb06b2 a8", "fq_name": ["default-domain", "default-project"], "uuid": "13bca581- a562-49b9- a765-39e2bb06b2 a8"}]}
{"projects": [{"href": "http://