---
title: "List pod scheduling policies"
method: GET
path: "/pod-scheduling-policies"
tags: ["Pod Scheduling Policy"]
---

# List pod scheduling policies

`GET /pod-scheduling-policies`

This API lists all pod scheduling policies in the kubernetes cluster.

## Query parameters

- `engineType` 'pxc' | 'psmdb' | 'postgresql'
- `hasRules` boolean

## Response `200`

Successful operation

- PodSchedulingPolicyList — PodSchedulingPolicyList is an object that contains the list of the existing pod scheduling policies.
  - `apiVersion` string — APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
  - `kind` string — Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
  - `items` PodSchedulingPolicy[]
    - `apiVersion` string — APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
    - `kind` string — Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
    - `metadata` object
    - `spec` object — PodSchedulingPolicySpec defines the desired state of PodSchedulingPolicy.
      - `affinityConfig` object — AffinityConfig is a configuration for the affinity settings depending on the engine type.
        - `postgresql` object — PostgreSQL is the affinity configuration for the PostgreSQL DB clusters.
          - `engine` object — Engine is the affinity configuration for the DB Engine pods.
            - `nodeAffinity` object — Describes node affinity scheduling rules for the pod.
              - …
            - `podAffinity` object — Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).
              - …
            - `podAntiAffinity` object — Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).
              - …
          - `proxy` object — Proxy is the affinity configuration for the DB Proxy pods.
            - `nodeAffinity` object — Describes node affinity scheduling rules for the pod.
              - …
            - `podAffinity` object — Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).
              - …
            - `podAntiAffinity` object — Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).
              - …
        - `psmdb` object — PSMDB is the affinity configuration for the PSMDB DB clusters.
          - `configServer` object — ConfigServer is the affinity configuration for the DB Config Server pods.
            - `nodeAffinity` object — Describes node affinity scheduling rules for the pod.
              - …
            - `podAffinity` object — Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).
              - …
            - `podAntiAffinity` object — Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).
              - …
          - `engine` object — Engine is the affinity configuration for the DB Engine pods.
            - `nodeAffinity` object — Describes node affinity scheduling rules for the pod.
              - …
            - `podAffinity` object — Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).
              - …
            - `podAntiAffinity` object — Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).
              - …
          - `proxy` object — Proxy is the affinity configuration for the DB Proxy pods.
            - `nodeAffinity` object — Describes node affinity scheduling rules for the pod.
              - …
            - `podAffinity` object — Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).
              - …
            - `podAntiAffinity` object — Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).
              - …
        - `pxc` object — PXC is the affinity configuration for the PXC DB clusters.
          - `engine` object — Engine is the affinity configuration for the DB Engine pods.
            - `nodeAffinity` object — Describes node affinity scheduling rules for the pod.
              - …
            - `podAffinity` object — Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).
              - …
            - `podAntiAffinity` object — Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).
              - …
          - `proxy` object — Proxy is the affinity configuration for the DB Proxy pods.
            - `nodeAffinity` object — Describes node affinity scheduling rules for the pod.
              - …
            - `podAffinity` object — Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).
              - …
            - `podAntiAffinity` object — Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).
              - …
      - `engineType` 'pxc' | 'postgresql' | 'psmdb', required — EngineType is type of DB engine that this policy can be applied to.
    - `status` object — PodSchedulingPolicyStatus defines the observed state of PodSchedulingPolicy.
      - `inUse` boolean — InUse is a flag that indicates if the policy is used by any DB cluster.
      - `lastObservedGeneration` integer — LastObservedGeneration is the most recent generation observed for this PodSchedulingPolicy.
  - `metadata` object

## Other responses

- `400` — Unsuccessful operation
- `500` — Internal server error

---

[API](https://skmtc.net/openeverest/apis/openeverest-schema.md) · [All operations](https://skmtc.net/openeverest/apis/openeverest-schema/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/openeverest/openeverest-schema/versions/46b19e13670b/schema)
