Implementation of SQLAlchemy backend.
heat.db.sqlalchemy.api.
db_decrypt_parameters_and_properties
(ctxt, encryption_key, batch_size=50, verbose=False)[source]¶Decrypt parameters and properties for all templates in db.
Parameters: |
|
---|---|
Returns: | list of exceptions encountered during decryption |
heat.db.sqlalchemy.api.
db_encrypt_parameters_and_properties
(ctxt, encryption_key, batch_size=50, verbose=False)[source]¶Encrypt parameters and properties for all templates in db.
Parameters: |
|
---|---|
Returns: | list of exceptions encountered during encryption |
heat.db.sqlalchemy.api.
db_properties_data_migrate
(ctxt, batch_size=50)[source]¶Migrate properties data from legacy columns to new location in db.
Parameters: |
|
---|
heat.db.sqlalchemy.api.
db_sync
(engine, version=None)[source]¶Migrate the database to version or the most recent version.
heat.db.sqlalchemy.api.
event_get_all_by_stack
(context, stack_id, limit=None, marker=None, sort_keys=None, sort_dir=None, filters=None)[source]¶heat.db.sqlalchemy.api.
event_get_all_by_tenant
(context, limit=None, marker=None, sort_keys=None, sort_dir=None, filters=None)[source]¶heat.db.sqlalchemy.api.
persist_state_and_release_lock
(context, stack_id, engine_id, values)[source]¶heat.db.sqlalchemy.api.
purge_deleted
(age, granularity='days', project_id=None, batch_size=20)[source]¶heat.db.sqlalchemy.api.
resource_create_replacement
(context, existing_res_id, existing_res_values, new_res_values, atomic_key, expected_engine_id=None)[source]¶heat.db.sqlalchemy.api.
resource_data_get
(context, resource_id, key)[source]¶Lookup value of resource’s data by key.
Decrypts resource data if necessary.
heat.db.sqlalchemy.api.
resource_data_get_all
(context, resource_id, data=None)[source]¶Looks up resource_data by resource.id.
If data is encrypted, this method will decrypt the results.
heat.db.sqlalchemy.api.
resource_data_get_by_key
(context, resource_id, key)[source]¶Looks up resource_data by resource_id and key.
Does not decrypt resource_data.
heat.db.sqlalchemy.api.
resource_data_set
(context, resource_id, key, value, redact=False)[source]¶Save resource’s key/value pair to database.
heat.db.sqlalchemy.api.
resource_get
(context, resource_id, refresh=False, refresh_data=False, eager=True)[source]¶heat.db.sqlalchemy.api.
resource_get_all_by_physical_resource_id
(context, physical_resource_id)[source]¶heat.db.sqlalchemy.api.
resource_get_all_by_root_stack
(context, stack_id, filters=None, stack_id_only=False)[source]¶heat.db.sqlalchemy.api.
soft_delete_aware_query
(context, *args, **kwargs)[source]¶Stack query helper that accounts for context’s show_deleted field.
Parameters: | show_deleted – if True, overrides context’s show_deleted field. |
---|
heat.db.sqlalchemy.api.
stack_count_all
(context, filters=None, show_deleted=False, show_nested=False, show_hidden=False, tags=None, tags_any=None, not_tags=None, not_tags_any=None)[source]¶heat.db.sqlalchemy.api.
stack_get_all
(context, limit=None, sort_keys=None, marker=None, sort_dir=None, filters=None, show_deleted=False, show_nested=False, show_hidden=False, tags=None, tags_any=None, not_tags=None, not_tags_any=None, eager_load=False)[source]¶Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.