πŸ’€ KubeNidra
🌐 KubeNidra API v1NamespacesNamespaceDeploymentsDeployment

Enable KubeNidra

Enable KubeNidra monitoring and management for a deployment

POST
/api/v1/namespaces/{namespace}/deployments/{name}/enable
Authorization<token>

Api key authentication using Bearer tokens. Enter "Bearer " followed by your JWT token.

In: header

Path Parameters

namespacestring

Namespace name

namestring

Deployment name

Enable request

schedule?string

@Description Optional wake schedule in cron-like format (e.g., '9:00-17:00,mon-fri') @Example "9:00-17:00,mon-fri"

Response Body

curl -X POST "https://loading/api/v1/namespaces/string/deployments/string/enable" \
  -H "Content-Type: application/json" \
  -d '{}'
{
  "data": {
    "backoff_until": "2023-01-01T13:00:00Z",
    "current_replicas": 3,
    "enabled": true,
    "has_manual_override": false,
    "in_backoff_period": false,
    "is_snoozed": false,
    "last_replicas": 3,
    "manual_override_until": "2023-01-01T14:00:00Z",
    "name": "my-app",
    "namespace": "default",
    "operation_history": [
      {
        "duration": 0,
        "replicas": 0,
        "timestamp": "string",
        "trigger": "string",
        "type": "string"
      }
    ],
    "operation_in_progress": false,
    "pin_state": "active",
    "recent_operations": 2,
    "snooze_requested": false,
    "snoozed_at": "2023-01-01T12:00:00Z",
    "type": "deployment",
    "wake_requested": false,
    "wake_schedule": "9:00-17:00,mon-fri",
    "woken_at": "2023-01-01T12:00:00Z"
  },
  "message": "Operation completed successfully",
  "success": true,
  "timestamp": "2023-01-01T12:00:00Z"
}
{
  "error": {
    "code": "NOT_FOUND",
    "details": null,
    "message": "Resource not found"
  },
  "success": false,
  "timestamp": "2023-01-01T12:00:00Z"
}
{
  "error": {
    "code": "NOT_FOUND",
    "details": null,
    "message": "Resource not found"
  },
  "success": false,
  "timestamp": "2023-01-01T12:00:00Z"
}
{
  "error": {
    "code": "NOT_FOUND",
    "details": null,
    "message": "Resource not found"
  },
  "success": false,
  "timestamp": "2023-01-01T12:00:00Z"
}