---
title: "Get pods from Kubernetes cluster."
method: POST
path: "/common/pods"
tags: ["common"]
---

# Get pods from Kubernetes cluster.

`POST /common/pods`

Get pods from Kubernetes cluster.

## Request body

- GithubComChaosMeshChaosMeshApiV1alpha1PodSelectorSpec
  - `annotationSelectors` object — Map of string keys and values that can be used to select objects. A selector based on annotations. +optional
  - `expressionSelectors` V1LabelSelectorRequirement[] — a slice of label selector expressions that can be used to select objects. A list of selectors based on set-based label expressions. +ui:form:ignore +optional
    - `key` string — key is the label key that the selector applies to.
    - `operator` 'In' | 'NotIn' | 'Exists' | 'DoesNotExist'
    - `values` string[] — values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. +optional +listType=atomic
  - `fieldSelectors` object — Map of string keys and values that can be used to select objects. A selector based on fields. +optional
  - `labelSelectors` object — Map of string keys and values that can be used to select objects. A selector based on labels. +optional
  - `namespaces` string[] — Namespaces is a set of namespace to which objects belong. +optional
  - `nodeSelectors` object — Map of string keys and values that can be used to select nodes. Selector which must match a node's labels, and objects must belong to these selected nodes. +optional
  - `nodes` string[] — Nodes is a set of node name and objects must belong to these nodes. +optional
  - `podPhaseSelectors` string[] — PodPhaseSelectors is a set of condition of a pod at the current time. supported value: Pending / Running / Succeeded / Failed / Unknown +optional
  - `pods` object — Pods is a map of string keys and a set values that used to select pods. The key defines the namespace which pods belong, and the each values is a set of pod names. +optional

## Response `200`

OK

- GithubComChaosMeshChaosMeshPkgDashboardApiserverTypesPod[]
  - `ip` string
  - `name` string
  - `namespace` string
  - `state` string

## Other responses

- `500` — Internal Server Error

---

[API](https://skmtc.net/chaos-mesh/apis/chaos-mesh-dashboard-api.md) · [All operations](https://skmtc.net/chaos-mesh/apis/chaos-mesh-dashboard-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/chaos-mesh/chaos-mesh-dashboard-api/revisions/c965f06ffb38/schema)
