---
title: "Get Cluster"
method: GET
path: "/ske/v2alpha1/thr1-standard/workspaces/{workspaceUUID}/sotoonclusters/{resourceId}"
tags: ["Sotoon Kubernetes Engine"]
---

# Get Cluster

`GET /ske/v2alpha1/thr1-standard/workspaces/{workspaceUUID}/sotoonclusters/{resourceId}`

## Request

- Base URL: `https://api.sotoon.ir` (the document declares no server; this is the origin it was published from)
- URL: `https://api.sotoon.ir/ske/v2alpha1/thr1-standard/workspaces/{workspaceUUID}/sotoonclusters/{resourceId}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/sotoon/apis/sotoon-api/docs/ske/v2alpha1/thr1-standard/workspaces/:workspaceUUID/sotoonclusters/:resourceId/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieves detailed information about a specific Kubernetes cluster by cluster name

## Path parameters

- `resourceId` string, required
- `workspaceUUID` string, required

## Response `200`

Successfully retrieved the details of the specified Kubernetes cluster in the workspace.

- ContainerSotoonCluster
  - `apiVersion` 'ske.sotoon.ir/v1alpha1', required: Version identifier of the API schema
  - `kind` 'SotoonCluster', required: The string value 'SotoonCluster' that identifies the schema
  - `metadata` ContainerObjectMeta, required: Standard resource metadata fields
    - `annotations` object, required: Annotations store additional metadata about the resource
    - `creationTimestamp` string, date-time, required
    - `deletionTimestamp` string, date-time, required
    - `labels` object, required: Labels are key-value pairs attached to resources for organization and categorization
    - `name` string, required: User-provided name that uniquely identifies the resource within its workspace
    - `resourceVersion` string: Internal version for optimistic concurrency control
    - `uid` string, required: System-generated unique identifier for the resource
    - `workspace` string, required: Unique identifier of the workspace where the resource belongs
  - `spec` ContainerSotoonClusterSpec, required: Desired configuration for the Kubernetes cluster
    - `clusterNetwork` ContainerClusterNetwork, nullable: Network configuration for the cluster
      - `pods` ContainerNetworkRanges, nullable: Network ranges from which Pod networks are allocated
        - `cidrBlocks` string[], required: List of CIDR blocks
      - `services` ContainerNetworkRanges, nullable: Network ranges from which Pod networks are allocated
        - `cidrBlocks` string[], required: List of CIDR blocks
    - `infra` ContainerClusterInfrastructureSpec, required: Infrastructure configuration for the cluster
      - `VPC` string, required: Virtual Private Cloud Network that the cluster is created in
      - `subnet` string, required: Engine sub-network that the cluster is created in
      - `version` ContainerSKEVersion, required: Control-plane version configuration
        - `kubernetesVersion` string, required: Kubernetes version
        - `patchVersion` string, required: SKE patch version
  - `status` ContainerSotoonClusterStatus, required: Current observed state of the cluster
    - `conditions` V1Condition[]: Current conditions of the cluster
      - `lastTransitionTime` string, date-time, required
      - `message` string, required
      - `observedGeneration` integer
      - `reason` string, required
      - `status` string, required
      - `type` string, required
    - `kubeconfigSecretName` ContainerLocalObjectRef, nullable: Reference to the kubeconfig secret
      - `name` string, required: Name of the referenced object
    - `phase` 'Provisioned' | 'Provisioning' | 'Initialized' | 'Ready' | 'Failed' | 'Upgrading' | 'Deleting' | 'HighlyAvailable' | 'Unknown', required: Current phase of the cluster
    - `ready` boolean, required: Indicates if the cluster is ready for use
    - `readyReplicas` integer, required: Number of ready replicas
    - `replicas` integer, required: Total number of replicas
    - `unavailableReplicas` integer, required: Number of unavailable replicas
    - `updatedReplicas` integer, required: Number of updated replicas

## Other responses

- `400`: Bad request - invalid configuration
- `401`: Unauthorized - invalid or expired authentication token
- `403`: Forbidden - insufficient permissions for workspace operations
- `404`: Not found - workspace or resource does not exist
- `422`: Unprocessable entity - resource constraints or quota exceeded

---

[API](https://skmtc.dev/sotoon/apis/sotoon-api.md) - [All operations](https://skmtc.dev/sotoon/apis/sotoon-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sotoon/apis/sotoon-api/revisions/7b3e36d9e9a6?raw)
