IBM Blockchain Platform (IBP) provides a managed and full-stack Blockchain-as-a-Service (BaaS) offering that allows you to deploy blockchain components on any Kubernetes cluster.
Recently, we expanded its capability to allow IBP to run on multiple Kubernetes distributions on a private, public, or hybrid multicloud. We call this IBM Blockchain Platform for anywhere.
The IBM Blockchain Platform exposes RESTful APIs for you to create, import, edit, and delete your blockchain components, as well as to manage logging, notifications, and console settings. The linked document mentions API keys, but it is independent from the IBM Cloud platform, so we must use the username and password used to log in to IBP for anywhere. I am going to introduce how to run simple REST APIs against your IBP for anywhere instance.
Get all the components
IBM Blockchain Platform is comprised of three major components: Peers, Orderers, and Certificate Authorities (CAs). Each component has its own pod in the Kubernetes nodes and we have an API to show the component details. This API shows all the components (Peers, CAs, Orderers, and a service to manage identities) in your network:
You will use this command to obtain all the components available. Please make sure you replace the USERNAME and PASSWORD to the username and password used to log in to the above portal. Here is the sample output:
Get a specific component
By specifying the ID of the component in the same API, you can filter the result:
You will obtain information about a specific component using its ID. Please make sure you replace the USERNAME and PASSWORD with the username and password you use to log in to the portal. Here is the sample output:
By using REST APIs, you can obtain in-depth information about your components and even manipulate components. One example would be deleting a specific component using the same API with a different API method.
IBM Blockchain Platform for anywhere accepts the same set of APIs, so you can explore more in the documentation for IBP on IBM Cloud.