harbor webhook

harbor webhook

Description

Manage webhook policies in Harbor

Synopsis

Use this command to manage webhook policies in your Harbor projects.

Webhooks enable external systems to be notified of events in Harbor (e.g., pushing an image, deleting an artifact). This command supports listing, creating, editing, and deleting webhook configurations.

Examples

  # List webhook policies in a project
  harbor-cli webhook list my-project

  # Create a new webhook policy
  harbor-cli webhook create --project my-project --name my-webhook

  # Edit an existing webhook policy
  harbor-cli webhook edit --project my-project --webhook-id 5

  # Delete a webhook policy
  harbor-cli webhook delete --project my-project --webhook-id 5

Options

  -h, --help   help for webhook

Options inherited from parent commands

  -c, --config string          config file (default is $HOME/.config/harbor-cli/config.yaml)
  -o, --output-format string   Output format. One of: json|yaml|csv
  -v, --verbose                verbose output

SEE ALSO