doc-locale/fr-fr/administration/raketasks/web_hooks.md
{{< details >}}
{{< /details >}}
GitLab fournit des tâches Rake pour la gestion des webhooks.
Les requêtes vers le réseau local par les webhooks peuvent être autorisées ou bloquées par un administrateur.
Pour ajouter un webhook à tous les projets, exécutez :
# omnibus-gitlab
sudo gitlab-rake gitlab:web_hook:add URL="http://example.com/hook"
# source installations
bundle exec rake gitlab:web_hook:add URL="http://example.com/hook" RAILS_ENV=production
Pour ajouter un webhook à tous les projets d'un espace de nommage spécifique, exécutez :
# omnibus-gitlab
sudo gitlab-rake gitlab:web_hook:add URL="http://example.com/hook" NAMESPACE=<namespace>
# source installations
bundle exec rake gitlab:web_hook:add URL="http://example.com/hook" NAMESPACE=<namespace> RAILS_ENV=production
Pour supprimer un webhook de tous les projets, exécutez :
# omnibus-gitlab
sudo gitlab-rake gitlab:web_hook:rm URL="http://example.com/hook"
# source installations
bundle exec rake gitlab:web_hook:rm URL="http://example.com/hook" RAILS_ENV=production
Pour supprimer un webhook de projets dans un espace de nommage spécifique, exécutez :
# omnibus-gitlab
sudo gitlab-rake gitlab:web_hook:rm URL="http://example.com/hook" NAMESPACE=<namespace>
# source installations
bundle exec rake gitlab:web_hook:rm URL="http://example.com/hook" NAMESPACE=<namespace> RAILS_ENV=production
Pour lister tous les webhooks, exécutez :
# omnibus-gitlab
sudo gitlab-rake gitlab:web_hook:list
# source installations
bundle exec rake gitlab:web_hook:list RAILS_ENV=production
Pour lister tous les webhooks des projets dans un espace de nommage spécifié, exécutez :
# omnibus-gitlab
sudo gitlab-rake gitlab:web_hook:list NAMESPACE=<namespace>
# source installations
bundle exec rake gitlab:web_hook:list NAMESPACE=<namespace> RAILS_ENV=production