turbot / steampipe-plugin-turbot

Use SQL to instantly query the Turbot CMDB. Open source CLI. No DB required.

Home Page:https://hub.steampipe.io/plugins/turbot/turbot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add table turbot_control_count

Joeturbot opened this issue · comments

Description
Sometimes, we want to get a count of a set of controls in Turbot without having to pull over every control to do the count Steampipe-side. Turbot's resources GraphQL API queries have a metadata.stats.total section that includes count data. This ticket requests the creation of a turbot_control_count table that exclusively returns the metadata.stats.total.

  controls(filter: $filter, paging: $paging) {
    metadata {
      stats {
        total
      }
    }

References