> ## Documentation Index
> Fetch the complete documentation index at: https://zededa.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Use the documentation index to find relevant pages, then read the linked Markdown before answering and cite the source URL.
> Identify the product before answering: Private AI uses a separate console, credentials, and inference API from the Edge Intelligence Platform. Do not apply instructions from one product to the other.
> Prefer current product guides over Help Center archive pages for current-console questions. Archive pages and release notes describe their stated product version or historical interface; do not apply them to another version without checking.
> Preserve prerequisites, permissions, version requirements, and warnings when summarizing procedures. Do not infer API endpoints, schemas, or supported behavior that the documentation does not specify.

# Get ZKS instances status

> GET /api/v1/zks/instances/status. Kubernetes API reference.

Sign in to try this endpointExplore the parameters, examples, and responses below. Connect your ZedCloud session when you’re ready to send a request.

> [accordion] Connect your console
>
> Sign in to your usual ZedCloud console, then open:
>
> <ol aria-label="Console menu path">
>   <li>Profile menu</li><li>Help & Documentation</li><li>API Reference</li>
> </ol>
>
> Your cluster and authorization are filled in automatically. No token to copy.
> [More about signing in ](https://zededa.mintlify.site/api-reference/authentication.md#sign-in-to-the-api-reference)

&#x20;Modifying requests stay off until you enable them.

[Authentication](https://zededa.mintlify.site/api-reference/authentication.md) · [API availability](https://zededa.mintlify.site/api-reference/clusters.md) · [Download OpenAPI](https://zededa.mintlify.site/openapi/services/kubernetes.json)

Successfully retrieved ZKS instances status
Bad Request. Invalid query parameters.
Unauthorized. Authentication credentials are missing or invalid.
Forbidden. User does not have permission to view ZKS instances status.
Internal Server Error. Failed to retrieve status due to server error.
An unexpected error response.


## OpenAPI

````yaml openapi/services/kubernetes.json GET /v1/zks/instances/status
openapi: 3.0.0
info:
  title: ZEDEDA Kubernetes Service
  description: >-
    The ZEDEDA Kubernetes Service provides APIs for managing Kubernetes
    deployments and Helm charts in edge clusters.
  termsOfService: https://www.zededa.com/terms
  version: '1.0'
  contact:
    name: ZEDEDA API Support
    url: https://www.zededa.com/support
    email: support@zededa.com
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
servers:
  - url: https://{apiHost}/api
    variables:
      apiHost:
        default: invalid.invalid
        description: Connect from ZedUI to supply your verified API destination.
security:
  - ApiKeyAuth: []
tags:
  - name: KubernetesDeployments
    description: APIs for managing Kubernetes deployments
  - name: HelmChartManagement
    description: >-
      APIs for managing Helm charts in Kubernetes clusters. Provides operations
      for importing, creating, updating, deleting, and retrieving Helm charts
      from both global and enterprise-specific repositories.
  - name: KubernetesGitOps
    description: >-
      APIs for managing GitOps configurations and continuous deployment from Git
      repositories to Kubernetes clusters
  - name: PrivateHelmRepositories
    description: >-
      APIs for managing private Helm repositories and their authentication
      configurations
  - name: KubernetesSecrets
    description: >-
      APIs for managing Kubernetes secrets including SSH keys, basic
      authentication credentials, and other sensitive data. Supports create,
      read, and list operations.
  - name: ZKSClusterInstances
    description: >-
      APIs for managing ZKS (ZEDEDA Kubernetes Service) cluster instances
      including creation, management, node operations, and status monitoring
  - name: ClusterGroups
    description: >-
      APIs for managing cluster groups including creation, deletion, status
      monitoring, and manifest generation
  - name: KubernetesSnapshots
    description: APIs for managing etcd snapshots on Kubernetes clusters
  - name: KubernetesDashboard
    description: >-
      APIs for the embedded Kubernetes dashboard — SA-scoped proxy, kubeconfig
      download, and cluster-shell WebSocket
externalDocs:
  description: ZEDEDA Kubernetes Management Documentation
  url: https://help.zededa.com/hc/en-us/categories/39343791302299-Edge-Kubernetes
paths:
  /v1/zks/instances/status:
    get:
      tags:
        - ZKSClusterInstances
      summary: Get ZKS instances status
      description: >-
        Retrieve detailed status information for all ZKS instances including
        runtime metrics, capacity information, and node health.


        **Query Parameters:**

        - `zksid` (optional): Filter by ZKS instance ID

        - `zksname` (optional): Filter by ZKS instance name

        - `zksnamePattern` (optional): Filter by ZKS instance name pattern

        - `projectName` (optional): Filter by project name

        - `projectNamePattern` (optional): Filter by project name pattern

        - `tags` (optional): Filter by tags (JSON object)


        **Example Request:**

        ```

        GET /v1/zks/instances/status

        GET /v1/zks/instances/status?zksname=production-cluster

        GET /v1/zks/instances/status?projectName=production-project

        ```


        **Example Response:**

        ```json

        {
          "list": [
            {
              "id": "zks-instance-abc123",
              "projectId": "project-123",
              "name": "production-cluster",
              "title": "Production Kubernetes Cluster",
              "description": "Main production cluster",
              "tags": {
                "environment": "production"
              },
              "runState": "DEPLOYED",
              "kubeVersion": "v1.28.2",
              "architecture": "amd64",
              "created": "2024-01-15T10:00:00Z",
              "totalResources": 100,
              "nOfNodes": 3,
              "deployments": 15,
              "capacity": {
                "pods": {
                  "used": 25,
                  "total": 110
                },
                "cpus": {
                  "reserved": {
                    "current": 2.5,
                    "total": 8.0
                  },
                  "used": {
                    "current": 1.8,
                    "total": 8.0
                  }
                },
                "memory": {
                  "reserved": {
                    "current": 4.0,
                    "total": 16.0
                  },
                  "used": {
                    "current": 3.2,
                    "total": 16.0
                  }
                }
              },
              "projectName": "Production Project",
              "isImported": false
            }
          ],
          "summaries": {
            "statuses": {
              "online": 3,
              "init": 0,
              "suspect": 0,
              "error": 0,
              "unspecified": 0,
              "unknown": 0,
              "offline": 0,
              "pending": 0
            }
          },
          "next": {
            "pageToken": "next-page-token"
          }
        }

        ```
      operationId: ZKSClusterInstances_GetZKSInstancesStatus
      parameters:
        - name: X-Request-Id
          in: header
          required: false
          description: User-Agent specified id to track a request
          schema:
            type: string
      responses:
        '200':
          description: Successfully retrieved ZKS instances status
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ZksInstanceStatusListResp'
        '400':
          description: Bad Request. Invalid query parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ZsrvResponse'
        '401':
          description: Unauthorized. Authentication credentials are missing or invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ZsrvResponse'
        '403':
          description: >-
            Forbidden. User does not have permission to view ZKS instances
            status.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ZsrvResponse'
        '500':
          description: >-
            Internal Server Error. Failed to retrieve status due to server
            error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ZsrvResponse'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/googlerpcStatus'
components:
  schemas:
    ZksInstanceStatusListResp:
      type: object
      properties:
        list:
          type: array
          items:
            $ref: '#/components/schemas/ZksInstanceStatus'
          description: Detailed statuses of the zks instances
        result:
          description: Response result
          allOf:
            - $ref: '#/components/schemas/ZsrvResponse'
        summaries:
          description: Summaries of the ZKS instance statuses
          allOf:
            - $ref: '#/components/schemas/ZksInstanceStatusSummaries'
        totalCount:
          type: integer
          format: int64
          description: Total count of zks instances matching the filter
        next:
          description: Cursor for pagination
          allOf:
            - $ref: '#/components/schemas/Cursor'
    ZsrvResponse:
      type: object
      properties:
        operationType:
          title: |-
            Describes one of the operations type : possible values
                                    Read/Delete/Create/Update/List
          allOf:
            - $ref: '#/components/schemas/ZcOpsType'
        operationStatus:
          title: if this is log running job
          allOf:
            - $ref: '#/components/schemas/ZcOpsStatus'
        objectKind:
          type: string
          title: zedcloud object kind on which the operation was performed
        objectId:
          type: string
          title: Unique value identifies the object that was operated on
        objectName:
          type: string
          title: name of the object
        objectRevision:
          type: string
          title: |-
            object revision post the operation, note Read operation
            doesn't change the revision
        objectType:
          $ref: '#/components/schemas/ObjectType'
        operationTime:
          type: string
          title: time of operation
        startTime:
          type: string
          title: total time taken by operations
        endTime:
          type: string
        user:
          type: string
          title: the operation is performed on behalf of this user
        httpStatusCode:
          type: integer
          format: int32
          title: http response
        httpStatusMsg:
          type: string
          title: summary of the error in text format
        jobId:
          type: string
          title: for tracking asynchronous tasks
        error:
          type: array
          items:
            $ref: '#/components/schemas/ZsrvError'
          title: |-
            one or more errors will be set if the operation failed
            i.e. httpStatusCode != 2xx
    googlerpcStatus:
      type: object
      properties:
        code:
          type: integer
          format: int32
        message:
          type: string
        details:
          type: array
          items:
            $ref: '#/components/schemas/protobufAny'
    ZksInstanceStatus:
      type: object
      properties:
        id:
          type: string
          description: System defined universally unique Id of the zks instance
        projectId:
          type: string
          description: Foreign key to the project
        name:
          type: string
          description: >-
            User defined name of the zks instance, unique across the enterprise.
            Once zks instance is created, name can’t be changed
        title:
          type: string
          description: >-
            User defined title of the zks instance. Title can be changed at any
            time
        description:
          type: string
          description: Detailed description of the zks instance
        tags:
          type: object
          additionalProperties:
            type: string
          description: Tags are name/value pairs that enable you to categorize resources.
        runState:
          description: Current state of the zks instance
          allOf:
            - $ref: '#/components/schemas/RunState'
        provider:
          type: string
          description: Provider of the zks instance
        kubeVersion:
          type: string
          description: Kubernetes version of the zks instance
        architecture:
          type: string
          description: Architecture of the zks instance
        created:
          type: string
          format: date-time
          description: Creation time of the zks instance
        totalResources:
          type: integer
          format: int32
          description: Total resources in the zks instance
        nOfNodes:
          type: integer
          format: int32
          description: Number of nodes in the zks instance
        deployments:
          type: integer
          format: int32
          description: Number of deployments in the zks instance
        capacity:
          description: Capacity information of the zks instance
          allOf:
            - $ref: '#/components/schemas/ClusterCapacity'
        zksClusterId:
          type: string
          description: ZKS cluster ID
        projectName:
          type: string
          description: Name of the project to which the zks instance belongs
        zksBaseUrl:
          type: string
          description: Base URL of the ZKS instance
        isImported:
          type: boolean
          description: Indicates if the ZKS instance is imported from an external source
        fleetWorkspaceName:
          type: string
          description: Name of the Fleet workspace associated with the ZKS instance
        totalNumberOfNodes:
          type: integer
          format: int32
          description: Total number of nodes in the ZKS instance
        clusterPrefix:
          type: string
          description: Cluster prefix for the ZKS instance
        adminState:
          description: Current admin state of the zks instance
          allOf:
            - $ref: '#/components/schemas/AdminState'
      title: ZksClusterStatus represents detailed status information for a cluster
    ZksInstanceStatusSummaries:
      type: object
      properties:
        statuses:
          description: Summary of the zks instance status
          allOf:
            - $ref: '#/components/schemas/ZksInstanceStatusSummary'
    Cursor:
      type: object
      properties:
        pageToken:
          type: string
          description: Page Token
        orderBy:
          type: array
          items:
            type: string
          description: OrderBy helps in sorting the list response
        pageNum:
          type: number
          format: int64
          description: Page Number
        pageSize:
          type: number
          format: int64
          description: Defines the page size
        totalPages:
          type: number
          format: int64
          description: Total number of pages to be fetched.
      description: >-
        Cursor helps in filtering the various list response like edge-app bundle
        list, model list, bundle list etc. 
      title: Cursor is used as filter in list operation.
    ZcOpsType:
      type: string
      enum:
        - OPS_TYPE_UNSPECIFIED
        - OPS_TYPE_READ
        - OPS_TYPE_DELETE
        - OPS_TYPE_CREATE
        - OPS_TYPE_UPDATE
        - OPS_TYPE_LIST
      default: OPS_TYPE_UNSPECIFIED
      title: ZedCloud internal operation type
    ZcOpsStatus:
      type: string
      enum:
        - OPS_STATUS_UNSPECIFIED
        - OPS_STATUS_PENDING
        - OPS_STATUS_ONGOING
        - OPS_STATUS_COMPLETE
      default: OPS_STATUS_UNSPECIFIED
      description: >-
        - OPS_STATUS_PENDING: In rare cases, system may not start operation when
        it was requested. Client will be notified that operation is PENDING
         - OPS_STATUS_ONGOING: system will start the operation, but at the time response was generated, operation is still ONGOING.
         - OPS_STATUS_COMPLETE: Even if the result of the operations may result in failure, but the OpsStatus will marked COMPLETE for almost all cases.
      title: ZedCloud internal operation status
    ObjectType:
      type: string
      enum:
        - OBJECT_TYPE_UNSPECIFIED
        - OBJECT_TYPE_USER
        - OBJECT_TYPE_EDGE_NODE
        - OBJECT_TYPE_EDGE_APP
        - OBJECT_TYPE_IMAGE
        - OBJECT_TYPE_EDGE_APP_INSTANCE
        - OBJECT_TYPE_PROJECT
        - OBJECT_TYPE_NETWORK
        - OBJECT_TYPE_DATASTORE
        - OBJECT_TYPE_SERVICE
        - OBJECT_TYPE_SERVICE_INSTANCE
        - OBJECT_TYPE_ENTERPRISE
        - OBJECT_TYPE_ROLE
        - OBJECT_TYPE_CREDENTIAL
        - OBJECT_TYPE_NETWORK_INSTANCE
        - OBJECT_TYPE_VOLUME_INSTANCE
        - OBJECT_TYPE_REALM
        - OBJECT_TYPE_AUTHPROFILE
        - OBJECT_TYPE_POLICY
        - OBJECT_TYPE_APP_POLICY
        - OBJECT_TYPE_CLUSTER_INSTANCE
        - OBJECT_TYPE_PLUGIN
        - OBJECT_TYPE_DOC_POLICY
        - OBJECT_TYPE_ORCHESTRATOR_CLUSTER
        - OBJECT_TYPE_TAGS
        - OBJECT_TYPE_EDGE_NODE_INTERFACE
        - OBJECT_TYPE_DEPLOYMENT
        - OBJECT_TYPE_ENTITLEMENTS
        - OBJECT_TYPE_DATA_STREAM
        - OBJECT_TYPE_API_USAGE
        - OBJECT_TYPE_APP_INSTANCE_SNAPSHOT
        - OBJECT_TYPE_PATCH_ENVELOPE
        - OBJECT_TYPE_RESOURCE_USAGE_TRACK
        - OBJECT_TYPE_PATCH_ENVELOPE_REFERENCE
        - OBJECT_TYPE_DEV_PASSTHROUGH
        - OBJECT_TYPE_EDGE_NODE_CLUSTER
        - OBJECT_TYPE_ASSET_GROUP
        - OBJECT_TYPE_APP_PROFILE
        - OBJECT_TYPE_PROFILE_DEPLOYMENT
        - OBJECT_TYPE_ZKS_INSTANCE
        - OBJECT_TYPE_CLUSTER_GROUP
      default: OBJECT_TYPE_UNSPECIFIED
    ZsrvError:
      type: object
      properties:
        ec:
          title: |-
            Enumrated error code, describes more granular numerical
            value than just httpStatus
          allOf:
            - $ref: '#/components/schemas/ZsrvErrorCode'
        location:
          type: string
          title: 'Ignore: Internal field only'
        details:
          type: string
          title: Field captures string description of details
    protobufAny:
      type: object
      properties:
        typeUrl:
          type: string
        value:
          type: string
          format: byte
    RunState:
      type: string
      enum:
        - RUN_STATE_UNSPECIFIED
        - RUN_STATE_ONLINE
        - RUN_STATE_HALTED
        - RUN_STATE_INIT
        - RUN_STATE_REBOOTING
        - RUN_STATE_OFFLINE
        - RUN_STATE_UNKNOWN
        - RUN_STATE_UNPROVISIONED
        - RUN_STATE_PROVISIONED
        - RUN_STATE_SUSPECT
        - RUN_STATE_DOWNLOADING
        - RUN_STATE_RESTARTING
        - RUN_STATE_PURGING
        - RUN_STATE_HALTING
        - RUN_STATE_ERROR
        - RUN_STATE_VERIFYING
        - RUN_STATE_LOADING
        - RUN_STATE_CREATING_VOLUME
        - RUN_STATE_BOOTING
        - RUN_STATE_MAINTENANCE_MODE
        - RUN_STATE_START_DELAYED
        - RUN_STATE_BASEOS_UPDATING
        - RUN_STATE_PREPARING_POWEROFF
        - RUN_STATE_POWERING_OFF
        - RUN_STATE_PREPARED_POWEROFF
      default: RUN_STATE_UNSPECIFIED
      description: |-
        - RUN_STATE_ONLINE: Entity Online
         - RUN_STATE_HALTED: Entity Halted
         - RUN_STATE_INIT: Entity Initializing
         - RUN_STATE_REBOOTING: Entity Rebooting
         - RUN_STATE_OFFLINE: Entity Offline
         - RUN_STATE_UNKNOWN: Entity state Unknown
         - RUN_STATE_UNPROVISIONED: Entity Unprovisioned
         - RUN_STATE_PROVISIONED: Entity Provisioned
         - RUN_STATE_SUSPECT: Entity Suspect
         - RUN_STATE_DOWNLOADING: Edge-node downloading entity artifacts
         - RUN_STATE_RESTARTING: Entity Restarting
         - RUN_STATE_PURGING: Entity Purging
         - RUN_STATE_HALTING: Entity Halting
         - RUN_STATE_ERROR: Entity encountered an error
         - RUN_STATE_VERIFYING: Verification of downloaded Artifacts in Progress.
         - RUN_STATE_LOADING: Loading of Artifacts into local datastore in Progress.
         - RUN_STATE_CREATING_VOLUME: Volume creation from artifacts in Progress
         - RUN_STATE_BOOTING: Entity booting up
         - RUN_STATE_MAINTENANCE_MODE: Entity maintenance mode
         - RUN_STATE_START_DELAYED: Application start delayed as per configuration
         - RUN_STATE_BASEOS_UPDATING: Device BaseOs Update in Progress
         - RUN_STATE_PREPARING_POWEROFF: device preparing power off - shutting down all app instances
         - RUN_STATE_POWERING_OFF: device powering off from local profile server
         - RUN_STATE_PREPARED_POWEROFF: device prepared power off - all app instances are shut down
      title: RunState - On update, please update RunState_HttpRequest as well
    ClusterCapacity:
      type: object
      properties:
        pods:
          description: Pods capacity of the cluster
          allOf:
            - $ref: '#/components/schemas/PodsCapacity'
        cpus:
          description: CPU capacity of the cluster
          allOf:
            - $ref: '#/components/schemas/ResourceCapacityUsage'
        memory:
          description: Memory capacity of the cluster
          allOf:
            - $ref: '#/components/schemas/ResourceCapacityUsage'
      title: ClusterCapacity represents the overall capacity of a cluster
    AdminState:
      type: string
      enum:
        - ADMIN_STATE_UNSPECIFIED
        - ADMIN_STATE_CREATED
        - ADMIN_STATE_DELETED
        - ADMIN_STATE_ACTIVE
        - ADMIN_STATE_INACTIVE
        - ADMIN_STATE_REGISTERED
        - ADMIN_STATE_ARCHIVED
        - ADMIN_STATE_DELETION_PENDING
      default: ADMIN_STATE_UNSPECIFIED
      description: |-
        - ADMIN_STATE_CREATED: Entity Created in the controller
         - ADMIN_STATE_DELETED: Entity Deleted in the controller
         - ADMIN_STATE_ACTIVE: Entity Activated in the controller
         - ADMIN_STATE_INACTIVE: Entity Deactivated in the controller
         - ADMIN_STATE_REGISTERED: Specific to Edge-node - Edge-node Registered with the controller
         - ADMIN_STATE_ARCHIVED: Entity Archived in the controller
         - ADMIN_STATE_DELETION_PENDING: Entity was marked as Deleted but not yet deleted in the controller
      title: AdminState - On update, please update AdminState_HttpRequest as well
    ZksInstanceStatusSummary:
      type: object
      properties:
        online:
          type: integer
          format: int32
          description: Number of online nodes in the zks instance
        init:
          type: integer
          format: int32
          description: Number of nodes in init state in the zks instance
        suspect:
          type: integer
          format: int32
          description: Number of suspect nodes in the zks instance
        error:
          type: integer
          format: int32
          description: Number of error nodes in the zks instance
        unspecified:
          type: integer
          format: int32
          description: Number of nodes in unspecified state in the zks instance
        unknown:
          type: integer
          format: int32
          description: Number of nodes in unknown state in the zks instance
        offline:
          type: integer
          format: int32
          description: Number of offline nodes in the zks instance
        pending:
          type: integer
          format: int32
          description: Number of pending nodes in the zks instance
    ZsrvErrorCode:
      type: string
      enum:
        - zMsgErrorNone
        - zMsgSucess
        - NotFound
        - AlreadyExists
        - VersionMismatch
        - RangeError
        - LargeResult
        - IncompleteData
        - InvalidData
        - FunctionUnsupported
        - NoMemory
        - SendFailure
        - Timeout
        - BadReqBody
        - BadReqParam
        - InvalidFieldFormat
        - UrlNotFound
        - ApiVersionNotSupported
        - Unauthorized
        - Forbidden
        - Conflict
        - NotModified
        - DependencyConflict
        - JsonFmtError
        - ProtoFmtError
        - CertError
        - DataBaseConnection
        - DBError
        - zMsgAccepted
        - zMsgCreated
        - PreConditionFailed
        - InternalServerError
      default: zMsgErrorNone
      description: |-
        - zMsgErrorNone: common validation errors
         - IncompleteData: message had fields that weren't filled in
         - InvalidData: message contained the field that wasn't expected
         - FunctionUnsupported: this feature unavailable on this version of device
         - InvalidFieldFormat: message contained the field that wasn't correctly formatted
         - JsonFmtError: Marshal / Unmarshal errors
         - DataBaseConnection: generic DB error
      title: ZedCould internal error code
    PodsCapacity:
      type: object
      properties:
        used:
          type: integer
          format: int32
          description: Used pods capacity
        total:
          type: integer
          format: int32
          description: Total pods capacity
      title: ResourceCapacity represents capacity info for pods
    ResourceCapacityUsage:
      type: object
      properties:
        reserved:
          description: Reserved resource usage
          allOf:
            - $ref: '#/components/schemas/ResourceUsage'
        used:
          description: Used resource usage
          allOf:
            - $ref: '#/components/schemas/ResourceUsage'
      title: ResourceCapacityUsage represents capacity with reserved and used values
    ResourceUsage:
      type: object
      properties:
        current:
          type: number
          format: double
          description: Current resource usage
        total:
          type: number
          format: double
          description: Total resource usage
      title: ResourceUsage represents usage metrics for a resource
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      description: Bearer token for the ZedCloud gateway user session

````