Read the status of a WebhookEndpoint
const url = 'https://example.com/apis/nodus.dev/v1/webhookendpoints/example/status';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/apis/nodus.dev/v1/webhookendpoints/example/statusParameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”The object’s name.
Responses
Section titled “ Responses ”OK
WebhookEndpoint is an HTTPS receiver for Events. Each delivery is signed with the Standard Webhooks scheme (webhook-id, webhook-timestamp and webhook-signature headers), sent to a public address without following redirects, and retried with exponential backoff for 3 days. A webhookendpoint.ping delivery is sent on create.
object
object
object
object
object
object
object
WebhookEndpointSpec says where events go. Every field can change after create.
object
Description says what the endpoint is for.
Enabled pauses deliveries when false. Defaults to true.
EventTypes selects the events sent: exact types such as job.succeeded, prefixes such as job.* or billing.*, or *. Defaults to every event.
Projects limits project events to these projects; empty means every project. Org-level events always match.
URL receives the deliveries. It must be https with a public address; redirects are not followed.
WebhookEndpointStatus is what Nodus observed.
object
Conditions are the latest observations: Healthy is False with reason DeliveriesFailing while the receiver fails.
object
WebhookDeliveryCounts counts finished deliveries.
object
Failed is the deliveries that exhausted their retries or were refused outright.
Succeeded is the deliveries the receiver accepted.
FailingSince is when the receiver started failing every delivery; unset while it works.
WebhookLastDelivery is the latest delivery attempt of an endpoint.
object
Attempt counts the attempts of this delivery so far.
EventType is the event’s type, such as job.succeeded.
StatusCode is the receiver’s HTTP status; 0 when no response arrived.
Time is when the attempt happened.
ObservedGeneration is the spec generation the status reflects.
WebhookSecretRotation describes a rotation in progress.
object
PreviousExpirationTime is when the rotated-out secret stops signing.
SigningSecret is the whsec_ signing secret. It appears only in the create response and in a rotations response, never when the object is read again.
Example generated
{ "apiVersion": "example", "kind": "example", "metadata": { "annotations": { "additionalProperty": "example" }, "creationTimestamp": "example", "deletionGracePeriodSeconds": 1, "deletionTimestamp": "example", "finalizers": [ "example" ], "generateName": "example", "generation": 1, "labels": { "additionalProperty": "example" }, "managedFields": [ { "apiVersion": "example", "fieldsType": "example", "fieldsV1": { "additionalProperty": "example" }, "manager": "example", "operation": "example", "subresource": "example", "time": "example" } ], "name": "example", "namespace": "example", "ownerReferences": [ { "apiVersion": "example", "blockOwnerDeletion": true, "controller": true, "kind": "example", "name": "example", "uid": "example" } ], "resourceVersion": "example", "selfLink": "example", "uid": "example" }, "spec": { "description": "example", "enabled": true, "eventTypes": [ "example" ], "projects": [ "example" ], "url": "example" }, "status": { "conditions": [ { "lastTransitionTime": "example", "message": "example", "observedGeneration": 1, "reason": "example", "status": "example", "type": "example" } ], "deliveries24h": { "failed": 1, "succeeded": 1 }, "failingSince": "example", "lastDelivery": { "attempt": 1, "eventType": "example", "statusCode": 1, "time": "example" }, "observedGeneration": 1, "secretRotation": { "previousExpirationTime": "example" }, "signingSecret": "example" }}default
Section titled “ default ”An error: a metav1.Status whose reason is a registered code.
Status is the error body of every API response: a Kubernetes metav1.Status (so kubectl and client-go understand it) plus three top-level extensions that those clients ignore (ADR-028).
object
object
object
Docs is the URL of the code’s docs page.
Fix says what to do next, for example a CLI command or the field to change.
object
object
RequestID identifies the request in logs and support tickets.
Example generated
{ "apiVersion": "example", "code": 1, "details": { "causes": [ { "field": "example", "message": "example", "reason": "example" } ], "group": "example", "kind": "example", "name": "example", "retryAfterSeconds": 1, "uid": "example" }, "docs": "example", "fix": "example", "kind": "example", "message": "example", "metadata": { "continue": "example", "remainingItemCount": 1, "resourceVersion": "example", "selfLink": "example", "shardInfo": { "selector": "example" } }, "reason": "example", "requestId": "example", "status": "example"}