Policies and findings · GraphQL mutation

policyRulesExport mutation

Writes the group's rules to an export file in storage, overwriting any existing file.

Response

Returns a RulesExportPayload!

Arguments

Name Description
orgId - OrganizationId! The Organization identifier.
input - RulesExportInput! Selects which group's rules to export.

Example

Query

mutation policyRulesExport(
  $orgId: OrganizationId!,
  $input: RulesExportInput!
) {
  policyRulesExport(
    orgId: $orgId,
    input: $input
  ) {
    group
  }
}

Variables

{
  "orgId": "615f3b3b28284380e28a7342",
  "input": RulesExportInput
}

Response

{
  "data": {
    "policyRulesExport": {"group": "abc123"}
  }
}