For some reasons, we do a stack object format before returning the result to users. This format is causing some confusion from API users' perspective. For example, a user will see the following map when doing stack_show or stack_list:
{
'stack': {
'stack_name': ...,
'stack_action': ...,
'stack_status': ...,
'stack_status_reason': ...,
'stack_owner': ...,
'parent': ...,
}
When a user sees this, they may believe that a stack has a 'stack_name' property that can be used as filter key, but that is not true. Instead, when they do filtering in stack list, they need to specify the following keys respectively:
name -> stack_name
action -> stack_action
status -> stack_status
username -> stack_owner
owner_id -> parent
This is causing some problems in projects that invoke Heat apis.
Fix proposed to branch: master /review. openstack. org/188411
Review: https:/