The horizon.api.glance ModuleΒΆ

class horizon.api.glance.Image(apidict)[source]

Bases: horizon.api.base.APIDictWrapper

Wrapper around glance image dictionary to make it object-like and provide access to image properties.

class horizon.api.glance.ImageProperties(apidict)[source]

Bases: horizon.api.base.APIDictWrapper

Wrapper around glance image properties dictionary to make it object-like.

horizon.api.glance.catch_glance_exception(func)[source]

The glance client sometimes throws Exception classed exceptions for HTTP communication issues. Catch those, and rethrow them as glance_client.ClientConnectionErrors so that we can do something useful with them.

horizon.api.glance.glanceclient(*args, **kwargs)[source]
horizon.api.glance.image_create(*args, **kwargs)[source]
horizon.api.glance.image_delete(*args, **kwargs)[source]
horizon.api.glance.image_get(*args, **kwargs)[source]

Returns the actual image file from Glance for image with supplied identifier

horizon.api.glance.image_get_meta(*args, **kwargs)[source]

Returns an Image object populated with metadata for image with supplied identifier.

horizon.api.glance.image_list_detailed(*args, **kwargs)[source]
horizon.api.glance.image_update(*args, **kwargs)[source]
horizon.api.glance.snapshot_list_detailed(*args, **kwargs)[source]

Previous topic

The horizon.api.nova Module

Next topic

The horizon.dashboards Module

This Page