Skip to main content
Pulumi logo Pulumi logo
  1. Docs
  2. pulumi policy issue export | CLI commands

pulumi policy issue export | CLI commands

Generated for Pulumi CLI v3.274.1.

    [EXPERIMENTAL] Export policy issues as CSV

    Synopsis

    [EXPERIMENTAL] Export policy issues for an organization as CSV.

    Exports every policy issue matching the given filters, or the closed issues when –closed is passed. The CSV is produced by Pulumi Cloud and written as-is to standard output, or to the file given by –file.

    The assignee column of the CSV holds the assignee’s email address.

    pulumi policy issue export [flags]
    

    Examples

      # Export all active policy issues to a file
      pulumi policy issue export --file issues.csv
    
      # Export open critical issues assigned to you to standard output
      pulumi policy issue export --severity critical --status open --assigned-to <login>
    

    Options

          --account stringArray         Filter by Insights account, as [<project>/]<account> (repeatable)
          --assigned-to stringArray     Filter by assignee login (repeatable)
          --closed                      Export closed issues instead of active ones
          --file string                 Write the CSV to this file instead of standard output
          --group stringArray           Filter by policy group (repeatable)
      -h, --help                        help for export
          --org string                  The organization to export policy issues for
          --pack stringArray            Filter by policy pack (repeatable)
          --policy stringArray          Filter by policy name (repeatable)
          --priority stringArray        Filter by priority (repeatable). One of: p0, p1, p2, p3, p4
          --resource-type stringArray   Filter by resource type (repeatable)
          --severity stringArray        Filter by severity (repeatable). One of: low, medium, high, critical
          --sort stringArray            Sort by <field>[:asc|desc], default asc (repeatable). Fields: severity, priority, status, observedAt, lastModified, policyPack, policyName, policyGroupName, resourceType
          --stack stringArray           Filter by stack, as <project>/<stack> (repeatable)
          --status stringArray          Filter by status (repeatable). One of: open, in_progress, by_design, fixed, ignored
          --urn stringArray             Filter by resource URN (repeatable)
    

    Options inherited from parent commands

          --color string                 Colorize output. Choices are: always, never, raw, auto (default "auto")
      -C, --cwd string                   Run pulumi as if it had been started in another directory
          --disable-integrity-checking   Disable integrity checking of checkpoint files
      -e, --emoji                        Enable emojis in the output
      -Q, --fully-qualify-stack-names    Show fully-qualified stack names
          --logflow                      Flow log settings to child processes (like plugins)
          --logtostderr                  Log to stderr instead of to files
          --memprofilerate int           Enable more precise (and expensive) memory allocation profiles by setting runtime.MemProfileRate
          --non-interactive              Disable interactive mode for all commands
          --otel-traces string           Export OpenTelemetry traces to the specified endpoint. Use file:// for local JSON files, grpc:// or https:// for remote collectors
          --profiling string             Emit CPU and memory profiles and an execution trace to '[filename].[pid].{cpu,mem,trace}', respectively
          --tracing file:                Emit tracing to the specified endpoint. Use the file: scheme to write tracing data to a local file
      -v, --verbose int                  Enable verbose logging (e.g., v=3); anything >3 is very verbose
    

    SEE ALSO

      The infrastructure as code platform for any cloud.