Skip to content

Latest commit

 

History

History
55 lines (38 loc) · 1.52 KB

File metadata and controls

55 lines (38 loc) · 1.52 KB
title weight
harbor webhook
20

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
  -v, --verbose                verbose output

SEE ALSO