Currently filtering stacks by status is supported in openstack API, for the compatibility with Cloudformation API, it also should be supported in cfn API.
User want to query the stack list and filter them by status, which is already implemented in openstack API, we also need to implement it in cfn API.
Add parameter “StackStatusFilter” for list-stacks of cfn API, and pass the fiter parameters to the backend, then return the stacks filtered by status. The url should be like this:
https://example.com:8000/v1/ ?Action=ListStacks &StackStatusFilter.member.1=CREATE_IN_PROGRESS &StackStatusFilter.member.2=DELETE_COMPLETE &Version=2010-05-15 &SignatureVersion=2 &SignatureMethod=HmacSHA256 &Timestamp=2010-07-27T22%3A26%3A28.000Z &AWSAccessKeyId=[AWS Access KeyID] &Signature=[Signature]