Cannot filter audit by their audit_template_uuid
Bug #1533220 reported by
Vincent Françoise
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
watcher |
Fix Released
|
Medium
|
Vincent Françoise |
Bug Description
We should be able to filter the audits by their audit template ids
Changed in watcher: | |
importance: | Undecided → Medium |
milestone: | none → mitaka-3 |
summary: |
- Cannot filter audit by their audit_template_id + Cannot filter audit by their audit_template_uuid |
Changed in watcher: | |
status: | Confirmed → Incomplete |
Changed in watcher: | |
assignee: | nobody → Vincent Françoise (vincent-francoise) |
To post a comment you must log in.
Isn't this already supported? Or are you referring to specifically the "id" field of AuditTemplate vs uuid?
stack@vm: ~/devstack$ watcher audit-template-list ------- ------- ------- ------- ----+-- ------- -----+ ------- ------- ------- ------- ----+-- ------- -----+ 93ef-4cfb- b2bf-008f2b8353 80 | tdp_template | ~/devstack$ ~/devstack$ watcher audit-list --audit-template 8f1d6159- 93ef-4cfb- b2bf-008f2b8353 80 ------- ------- ------- ------- ----+-- ------- +------ ------- ------- -+----- ------+ ------- ------- ------- ------- ----+-- ------- +------ ------- ------- -+----- ------+ f365-4987- 8725-1c089a1b4b 81 | ONESHOT | tdp_template | SUCCEEDED | ------- ------- ------- ------- ----+-- ------- +------ ------- ------- -+----- ------+ ~/devstack$ ~/devstack$ watcher audit-list --audit-template tdp_template ------- ------- ------- ------- ----+-- ------- +------ ------- ------- -+----- ------+ ------- ------- ------- ------- ----+-- ------- +------ ------- ------- -+----- ------+ f365-4987- 8725-1c089a1b4b 81 | ONESHOT | tdp_template | SUCCEEDED | ------- ------- ------- ------- ----+-- ------- +------ ------- ------- -+----- ------+
+------
| UUID | Name |
+------
| 8f1d6159-
stack@vm:
stack@vm:
+------
| UUID | Type | Audit Template Name | State |
+------
| db14ac5e-
+------
stack@vm:
stack@vm:
+------
| UUID | Type | Audit Template Name | State |
+------
| db14ac5e-
+------
I can also use a query parameter of ?audit_template=foo to do the same thing via REST.