Working with Profile Types¶
A profile is a template used to create and manage nodes, i.e. objects
exposed by other OpenStack services. A profile encodes the information needed
for node creation in a property named spec
.
List Profile Types¶
To examine the known profile types:
def list_profile_types(conn):
print("List Profile Types:")
for pt in conn.clustering.profile_types():
print(pt.to_dict())
Full example: manage profile type
Get Profile Type¶
To get the details about a profile type, you need to provide the name of it.
def get_profile_type(conn):
print("Get Profile Type:")
pt = conn.clustering.get_profile_type('os.nova.server-1.0')
print(pt.to_dict())
Full example: manage profile type