Interface for database access.
Usage:
>>> from heat import db
>>> db.event_get(context, event_id)
# Event object received
The underlying driver is loaded . SQLAlchemy is currently the only
supported backend.
-
heat.db.api.configure()[source]
-
heat.db.api.event_create(context, values)[source]
-
heat.db.api.event_get(context, event_id)[source]
-
heat.db.api.event_get_all(context)[source]
-
heat.db.api.event_get_all_by_stack(context, stack_id)[source]
-
heat.db.api.event_get_all_by_tenant(context)[source]
-
heat.db.api.get_session()[source]
-
heat.db.api.raw_template_create(context, values)[source]
-
heat.db.api.raw_template_get(context, template_id)[source]
-
heat.db.api.raw_template_get_all(context)[source]
-
heat.db.api.resource_create(context, values)[source]
-
heat.db.api.resource_get(context, resource_id)[source]
-
heat.db.api.resource_get_all(context)[source]
-
heat.db.api.resource_get_all_by_stack(context, stack_id)[source]
-
heat.db.api.resource_get_by_name_and_stack(context, resource_name, stack_id)[source]
-
heat.db.api.resource_get_by_physical_resource_id(context, physical_resource_id)[source]
-
heat.db.api.stack_create(context, values)[source]
-
heat.db.api.stack_delete(context, stack_id)[source]
-
heat.db.api.stack_get(context, stack_id, admin=False)[source]
-
heat.db.api.stack_get_all(context)[source]
-
heat.db.api.stack_get_all_by_tenant(context)[source]
-
heat.db.api.stack_get_by_name(context, stack_name)[source]
-
heat.db.api.stack_update(context, stack_id, values)[source]
-
heat.db.api.user_creds_create(context)[source]
-
heat.db.api.user_creds_get(context_id)[source]
-
heat.db.api.watch_data_create(context, values)[source]
-
heat.db.api.watch_data_delete(context, watch_name)[source]
-
heat.db.api.watch_data_get_all(context)[source]
-
heat.db.api.watch_rule_create(context, values)[source]
-
heat.db.api.watch_rule_delete(context, watch_rule_name)[source]
-
heat.db.api.watch_rule_get(context, watch_rule_id)[source]
-
heat.db.api.watch_rule_get_all(context)[source]
-
heat.db.api.watch_rule_get_all_by_stack(context, stack_id)[source]
-
heat.db.api.watch_rule_get_by_name(context, watch_rule_name)[source]
-
heat.db.api.watch_rule_update(context, watch_id, values)[source]