// Module included in the following assemblies:
//
// * microshift_troubleshooting/microshift-version.adoc

:_mod-docs-content-type: PROCEDURE
[id="microshift-version-api_{context}"]
= Checking the {microshift-short} version using the API

[role="_abstract"]
To begin troubleshooting, you must know your {microshift-short} version. One way to get this information is by using the API.

.Procedure

* To get the version number using the {oc-first}, view the `kube-public/microshift-version` config map by running the following command:
+
[source,terminal]
----
$ oc get configmap -n kube-public microshift-version -o yaml
----
+
.Example output
[source,yaml]
----
apiVersion: v1
data:
  major: "4"
  minor: "20"
  version: 4.20.0-0.microshift-fa441af87431
kind: ConfigMap
metadata:
  creationTimestamp: "2025-11-03T21:06:11Z"
  name: microshift-version
  namespace: kube-public
----
