How to retrieve project properties

asked 2020-05-05 21:36:26 -0500

cacack gravatar image

Using the commandline client, I can set properties (key/value) on a project, using openstack project set --property key=value .... In turn, these properties are accessible using openstack project show ....

How do I access these properties using Python SDK (or even API)?

I can't find any reference in the SDK or API docs...

edit retag flag offensive close merge delete


You can add the --debug option to the openstack command to see the APIs that it issues.

Bernd Bausch gravatar imageBernd Bausch ( 2020-05-05 23:57:56 -0500 )edit

Ahh, excellent idea! Debug reveals the openstack project show ... is calling the endpoint v3/projects?name=.... Guessing I'm going to need to go the API route as the openstack.identity.v3.project resource doesn't contain any attributes that represents the metadata

cacack gravatar imagecacack ( 2020-05-13 07:20:28 -0500 )edit