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

:_content-type: PROCEDURE
[id="microshift-version-api_{context}"]
= Checking the {product-title} version using the API

To begin troubleshooting, you must know your {product-title} version. One way to get this information is by using the API.

.Procedure

* To get the version number using the OpenShift CLI (`oc`), 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: "13"
  version: 4.13.8-0.microshift-fa441af87431
kind: ConfigMap
metadata:
  creationTimestamp: "2023-08-03T21:06:11Z"
  name: microshift-version
  namespace: kube-public
----
//update output to 4.14