In this recipe, we have a closer look at the Orchestrator Control Center.
We need access to the Orchestrator Control Center.
Add the Orchestrator Control Center to the REST plugin as shown in the recipe Working with REST in Chapter 9, Essential Plugins .
The recipe has been broken up into several sections, just work through them.
We will be having a look at the possibilities of the Control Center API:
https://[Orchestrator]:8283/vco-controlcenter/docs/
GET /api/server/status
and POST /api/server/status/start
. We used these functions in recipe Working with REST in Chapter 9, Essential Plugins.
Create control workflows for your Remote Orchestrators.
/api/server/start
, stop
, and status
calls.The ability to tie the Orchestrator control into your workflow enables you to use Orchestrator to orchestrate remote Orchestrators much more easily. As there isn't any documentation except the swagger UI at this time, it may be a bit hard, but I wouldn't be surprised to see someone coming up with an Orchestrator Control Center plug-in soon.
You can also attach the Control Center using the swagger specification URL (see recipe Working with REST in Chapter 9, Essential Plugins). The URL for the swagger spec of Control Center is https://[FQDN Orchestrator]:8283/vco-controlcenter/api/api-docs
.
There are several examples in the example pack. They won't work, as you need to define the REST host and the REST call (see resource element in Workflows) but these are an example of what they could look like and what could be done with them:
07.04.1 Orchestrator Service Status
07.04.2 Start Orchestrator Service
07.04.3 Stop Orchestrator Service
07.04.4 Cluster Status