Registry Webhook
POSTPATH_TO_CONSOLE/api/v1/registry/webhook/webhook
x-prisma-cloud-target-env: {"permission":"none"}
Listens for registry updates.
Although this endpoint is supported, no backwards compatibility is offered for it.
Request
- application/json
Body
actionstring
Action is the webhook action.
artifactoryobject
ArtifactoryWebhookRequest is an artifactory webhook request Artifactory doesn't have native webhook support, instead it comes as a plugin https://github.com/jfrog/artifactory-user-plugins/tree/master/webhook The relevant fields in the this struct were reverse engineered from the webhook groovy code and from the fields that were sent by a real artifactory environment
domainstring
Domain indicates the artifactory webhook domain (e.g., artifact, docker, build, etc). Used to avoid filter docker events.
event_typestring
EventType is the artifactory webhook action performed (e.g., push).
typestring
Type is the event type (Harbor registry).
Responses
- 200
- default
OK
- curl
- python
- go
- nodejs
- csharp
- php
- CURL
curl -L 'PATH_TO_CONSOLE/api/v1/registry/webhook/webhook' \
-H 'Content-Type: application/json' \
-d '{
"action": "string",
"artifactory": {},
"domain": "string",
"event_type": "string",
"type": "string"
}'