1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 21:46:22 +01:00
Files
openshift-docs/modules/microshift-oc-apis-errors.adoc
2024-08-30 11:42:39 +00:00

33 lines
985 B
Plaintext

// Module included in the following assemblies:
//
// * microshift-cli-using-oc/microshift-oc-apis-errors.adoc
:_mod-docs-content-type: CONCEPT
[id="microshift-oc-apis-errors_{context}"]
= oc command errors in {product-title}
Not all {oc-first} commands are relevant for {microshift-short} deployments. When you use `oc` to make a request call against an unsupported API, the `oc` binary usually generates an error message about a resource that cannot be found.
.Example output
For example, when the following `new-project` command is run:
[source,terminal]
----
$ oc new-project test
----
The following error message can be generated:
[source,terminal]
----
Error from server (NotFound): the server could not find the requested resource (get projectrequests.project.openshift.io)
----
And when the `get projects` command is run, another error can be generated as follows:
[source,terminal]
----
$ oc get projects
error: the server doesn't have a resource type "projects"
----