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

# Get physicalMachines from Kubernetes cluster.

`POST /common/physicalmachines`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/common/physicalmachines`
- Auth: none declared

Get physicalMachines from Kubernetes cluster.

## Request body

- GithubComChaosMeshChaosMeshApiV1alpha1PhysicalMachineSelectorSpec
  - `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
  - `physicalMachines` object: PhysicalMachines is a map of string keys and a set values that used to select physical machines. The key defines the namespace which physical machine belong, and each value is a set of physical machine names. +optional

## Response `200`

OK

- GithubComChaosMeshChaosMeshPkgDashboardApiserverTypesPhysicalMachine[]
  - `address` string
  - `name` string
  - `namespace` string

## Other responses

- `500`: Internal Server Error

## Changes

- **2021-12-21** `fcecc9938e61`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/chaos-mesh/apis/chaos-mesh-dashboard-api/changes/common/physicalmachines/post.md)

---

[API](https://skmtc.dev/chaos-mesh/apis/chaos-mesh-dashboard-api.md) - [All operations](https://skmtc.dev/chaos-mesh/apis/chaos-mesh-dashboard-api/llms.txt) - [OpenAPI document](https://skmtc.dev/chaos-mesh/apis/chaos-mesh-dashboard-api/revisions/2d6f9ed9cc7f?raw)
