2022-10-10 05:25:49 +00:00
|
|
|
import json
|
|
|
|
import ng_openstack.openstackRequest
|
|
|
|
|
|
|
|
def getAllProjects():
|
|
|
|
projectData=ng_openstack.openstackRequest.openstackRequest("GET", "v3/projects", "",
|
|
|
|
"http://172.25.110.138:5000").json()
|
|
|
|
return projectData
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-10-10 05:29:15 +00:00
|
|
|
def getCatalog():
|
|
|
|
catalogData=ng_openstack.openstackRequest.openstackRequest("GET", "v3/endpoints", "",
|
|
|
|
os.getenv("OS_AUTH_URL")).json()
|
|
|
|
return catalogData
|
|
|
|
|