Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add guide - Export Smart Folder as CSV #231

Open
rajlearner17 opened this issue Dec 14, 2024 · 0 comments · May be fixed by #239
Open

Add guide - Export Smart Folder as CSV #231

rajlearner17 opened this issue Dec 14, 2024 · 0 comments · May be fixed by #239
Assignees
Labels

Comments

@rajlearner17
Copy link
Contributor

rajlearner17 commented Dec 14, 2024

Guide purpose
A clear and concise description of what the guide aims to achieve and why it's important.

  • See attached PDF file to format as guide
  • Alternative way as GraphQlL
query MyQuery {
  policyTypes(filter: "policyTypeId:'tmod:@turbot/azure#/resource/types/azure' limit:2000") {
    items {
      trunk {
        title
      }
      title
      description
    }
  }
}
  • Approach for using Steampipe
with smart_folders as (select id as sf_resource_id, title as sf_title from guardrails_resource where resource_type_uri = 'tmod:@turbot/turbot#/resource/types/smartFolder'),
sf_policies as (select * from guardrails_policy_setting),
sf_policy_type as (select * from guardrails_policy_type)
select sf_resource_id, sf_title, sfp.policy_type_uri, sfp.policy_type_trunk_title, sfp.value, sfp.template_input, sfp.template, sfp.note, sfpt.description
from  smart_folders sf
left join sf_policies sfp on sf.sf_resource_id=sfp.resource_id
left join sf_policy_type sfpt on sfp.policy_type_id=sfpt.id
order by sf_title;

Target audience
Specify who this guide is intended for (e.g., beginners, advanced users, specific roles).

Categories
Proposed primary category and categories where this guide would fit best. (e.g., Getting Started, Best Practices, Troubleshooting, Concepts etc).

Outline
A brief outline of the main sections or topics the guide will cover.
Runbook_Export-Smart-Folder-as-CSV (1).pdf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants