Rest API Examples
You are viewing documentation for a release that is no longer supported. The latest supported version of version 3 is [3.11]. For the most recent version 4, see
This page includes usage examples for OpenShift’s REST API. The examples are presented as curl and command calls. The examples are parameterised using environment variables as follows:
To try out the usage examples by copy/paste, first set all of the previously mentioned environment variables, for example:
Templates include one or more objects to be instantiated, as well as optionally specifying parameters to be used at instantiation time. The flow to instantiate a using the TemplateInstance API follows: