To start a new build using the webhook URL, which curl command is correct?

Prepare for the Red Hat OpenShift Developer II DO288 Exam with our quizzes. Study with flashcards and multiple choice questions, each with hints and explanations. Get ready for your certification!

Multiple Choice

To start a new build using the webhook URL, which curl command is correct?

Explanation:
Triggering a new build via a webhook is done by sending an HTTP POST to the webhook endpoint that includes your shared secret and ends with /generic. The POST method is required because the webhook performs an action (starting a build), not a retrieval. If TLS uses a self-signed certificate, you may need to disable verification with -k so curl will connect. So the correct command is curl -X POST -k <url>/<secret>/generic. The other forms are not correct because one uses the /webhook path instead of the generic endpoint, another uses GET instead of POST, and another misplaces the secret in the URL.

Triggering a new build via a webhook is done by sending an HTTP POST to the webhook endpoint that includes your shared secret and ends with /generic. The POST method is required because the webhook performs an action (starting a build), not a retrieval. If TLS uses a self-signed certificate, you may need to disable verification with -k so curl will connect. So the correct command is curl -X POST -k //generic. The other forms are not correct because one uses the /webhook path instead of the generic endpoint, another uses GET instead of POST, and another misplaces the secret in the URL.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy