Skip to main content
Updates the enforcement level of all contracts to the given enforcement level. If a data asset id pattern is provided, only the contracts that have associated data assets that match the provided data asset id pattern will be updated.

Usage

gable contract bulk-update-enforcement-levels [OPTIONS]

Options

OptionTypeRequiredDefaultDescription
--enforcement-levelRECORDNOTIFYALERTBLOCKINACTIVEThe enforcement level to set for all contracts.
--data-asset-id-patterntextRegex pattern to match data asset IDs. Only the contracts that have associated data assets that match the provided data asset id pattern will be updated.
--dry-runbooleanfalseShow what would be updated without actually making changes.
--endpointtextCustomer API endpoint for Gable, in the format https://api.company.gable.ai/. Can also be set with the GABLE_API_ENDPOINT environment variable.
--api-keytextAPI Key for Gable. Can also be set with the GABLE_API_KEY environment variable.

Example


  gable contract bulk-update-enforcement-levels BLOCK
  gable contract bulk-update-enforcement-levels ALERT data-asset-id-pattern 'postgres://*'
  gable contract bulk-update-enforcement-levels BLOCK --dry-run