1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-07 09:46:53 +01:00
Files
openshift-docs/modules/microshift-oc-apis-errors.adoc
2023-02-03 19:25:58 +00:00

32 lines
997 B
Plaintext

// Module included in the following assemblies:
//
// * // * microshift_architecture/microshift-openshift-apis.adoc
:_content-type: CONCEPT
[id="microshift-oc-apis-errors_{context}"]
= {OCP} CLI tool (`oc`) and {product-title}
Not all {OCP} CLI tool (`oc`) commands are relevant for {product-title} deployments. When you use `oc` to make a request call against an unsupported API, the `oc` binary can generate 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 error 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"
----