Deployments
Preview

Restart a pod

Deletes the pod so the controller that owns it makes a new one. The operator deletes it as the deployment's service account, through a signed pod-restart command, and only a pod owned by the objects Wardn applied for the deployment on that cluster. Answers once the delete was accepted; the new pod s

POST
/deployments/{deploymentId}/pods/{clusterId}/{pod}/restart
cookiebetter-auth.session_token<token>

Better Auth session cookie. Production uses the __Secure- prefixed name.

deploymentId*string
Formatuuid
clusterId*string
Formatuuid
pod*string
Lengthlength <= 253
Idempotency-Key?string

Makes retries safe. A repeated key with the same request returns the first result and sets Idempotent-Replayed: true. The same key with a different request answers 409 idempotency.key_reused, and while the first request is still running 409 idempotency.in_progress. Results are kept for 24 hours. Server errors and refusals for lack of sign-in or permission are not kept, so a retry runs again.

Match^[A-Za-z0-9_.:-]+$
Length1 <= length <= 255

Response Body

The pod was deleted; its controller makes a new one.

application/json
  1. response
deploymentId*string
Formatuuid
clusterId*string
Formatuuid
pod*string
workload*

The workload whose controller makes the new pod.

restartedAt*string
Formatdate-time
Example Request
curl -X POST 'https://wardn.example.com/api/v1/deployments/497f6eca-6276-4993-bfeb-53cbbbba6f08/pods/497f6eca-6276-4993-bfeb-53cbbbba6f08/string/restart'
Example Response
{  "deploymentId": "a73c85a1-d857-491e-a6b2-51dce05de7a2",  "clusterId": "a3d24843-7014-4490-bdd3-b7cb39b400c8",  "pod": "string",  "workload": {    "kind": "string",    "name": "string"  },  "restartedAt": "2019-08-24T14:15:22Z"}