Using the Cluster API Inspector
-
To use the API client, the Cluster schema needs to have an Action and an Event
added. To edit the schema, click the Edit Schema button
in the Cluster configuration.
Figure 1.
-
Add the following Action:
"send-api": { "description": "Send an API request to the cluster.", "input": { "properties": { "correlationId": { "type": "string" }, "href": { "type": "string" }, "requestBody": { "type": "string" }, "requestMethod": { "type": "string" } }, "type": "object" }, "title": "Send API" },
-
Add the following Event:
"send-api": { "data": { "type": "object" }, "description": "Final response of API request", "title": "API request is done" },
- Click Save and they will be created.
- The Cluster’s Overview pane will show details of the Deployments and Pods. Click on the arrow in front of the name to expand the item to show more details.
-
To make the API calls click the API client button
displayed on the Cluster’s Overview pane.
Figure 2.
This will open the API Client pane where REST API calls to the Edge Compute Platform running on the Asset can be made:
Figure 3.See Edge Compute Platform API for details on the available API endpoints.