Client side of the heat engine RPC API.
Bases: object
Client side of the heat engine rpc API.
API version history:
1.0 - Initial version.
1.1 - Add support_status argument to list_resource_types()
1.4 - Add support for service list
1.9 - Add template_type option to generate_template()
1.10 - Add support for software config list
1.11 - Add support for template versions list
1.12 - Add with_detail option for stack resources list
1.13 - Add support for template functions list
1.14 - Add cancel_with_rollback option to stack_cancel_update
1.15 - Add preview_update_stack() call
1.16 - Adds version, type_name to list_resource_types()
1.17 - Add files to validate_template
1.18 - Add show_nested to validate_template
The abandon_stack method deletes a given stack but resources would not be deleted.
Parameters: |
|
---|
Verify that the credentials in the RPC context are valid for the current cloud backend.
Parameters: | ctxt – RPC context. |
---|
Return the number of stacks that match the given filters :param ctxt: RPC context. :param filters: a dict of ATTR:VALUE to match against stacks :param tenant_safe: if true, scope the request by the current tenant :param show_deleted: if true, count will include the deleted stacks :param show_nested: if true, count will include nested stacks :param show_hidden: if true, count will include hidden stacks :param tags: count stacks containing these tags, combine multiple tags
using the boolean AND expression
Parameters: |
|
---|---|
Returns: | a integer representing the number of matched stacks |
The create_stack method creates a new stack using the template provided. Note that at this stage the template has already been fetched from the heat-api process if using a template-url.
Parameters: |
|
---|
This could be used by CloudWatch and WaitConditions and treat HA service events like any other CloudWatch. :param ctxt: RPC context. :param watch_name: Name of the watch/alarm :param stats_data: The data to post.
The delete_stack method deletes a given stack.
Parameters: |
|
---|
Get detailed resource information about a particular resource. :param ctxt: RPC context. :param stack_identity: Name of the stack. :param resource_name: the Resource.
Get detailed resource information about one or more resources. :param ctxt: RPC context. :param stack_identity: Name of the stack. :param resource_name: the Resource.
Return an identifier for the resource with the specified physical resource ID. :param ctxt RPC context. :param physcial_resource_id The physical resource ID to look up.
Generate a template based on the specified type.
Parameters: |
|
---|
Get the template.
Parameters: |
|
---|
The identify_stack method returns the full stack identifier for a single, live stack given the stack name.
Parameters: |
|
---|
Raises the error unless its local name matches the supplied name
Parameters: |
|
---|
The list_events method lists all events associated with a given stack. It supports pagination (limit and marker), sorting (sort_keys and sort_dir) and filtering(filters) of the results.
Parameters: |
|
---|
Get a list of valid resource types.
Parameters: |
|
---|
List the resources belonging to a stack. :param ctxt: RPC context. :param stack_identity: Name of the stack. :param nested_depth: Levels of nested stacks of which list resources. :param with_detail: show detail for resoruces in list.
The list_stacks method returns attributes of all stacks. It supports pagination (limit and marker), sorting (sort_keys and sort_dir) and filtering (filters) of the results.
Parameters: |
|
---|---|
Returns: | a list of stacks |
Get a list of available functions in a given template
Parameters: | ctxt – RPC context |
---|
Get a list of available template versions
Parameters: | ctxt – RPC context. |
---|
Returns the name of the error with any _Remote postfix removed.
Parameters: | error – Remote raised error to derive the name from. |
---|
Simulates a new stack using the provided template.
Note that at this stage the template has already been fetched from the heat-api process if using a template-url.
Parameters: |
|
---|
The preview_update_stack method returns the resources that would be changed in an update of an existing stack based on the provided template and parameters.
Requires RPC version 1.15 or above.
Parameters: |
|
---|
Get the schema for a resource type.
Parameters: | ctxt – RPC context. |
---|
Generate an alarm on the resource. :param ctxt: RPC context. :param stack_identity: Name of the stack. :param resource_name: the Resource. :param details: the details of the signal.
Temporarily set the state of a given watch :param ctxt: RPC context. :param watch_name: Name of the watch :param state: State (must be one defined in WatchRule class)
Return detailed information about one or all stacks. :param ctxt: RPC context. :param stack_identity: Name of the stack you want to show, or None to show all
The show_watch method returns the attributes of one watch or all watches if no watch_name is passed
Parameters: |
|
---|
The show_watch_metric method returns the datapoints associated with a specified metric, or all metrics if no metric_name is passed
Parameters: |
|
---|
The update_stack method updates an existing stack based on the provided template and parameters. Note that at this stage the template has already been fetched from the heat-api process if using a template-url.
Parameters: |
|
---|
The validate_template method uses the stack parser to check the validity of a template.
Parameters: |
|
---|