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

# Get physicalMachines from Kubernetes cluster.

`POST /common/physicalmachines`

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

---

[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)
