πŸ’€ KubeNidra
🌐 KubeNidra API v1NamespacesNamespaceDeployments

List all Deployments

List all Deployments in a namespace

GET
/api/v1/namespaces/{namespace}/deployments
Authorization<token>

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

In: header

Path Parameters

namespacestring

Namespace name

Response Body

curl -X GET "https://loading/api/v1/namespaces/string/deployments"
{
  "data": {
    "total": 5,
    "workloads": [
      {
        "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"
}