Tools, FAQ, Tutorials:
Turn on Orderer Peer Operation RESTful API
How to Turn on Orderer Peer Operation RESTful API?
✍: FYIcenter.com
You can follow this tutorial to Turn on Orderer Peer Operation RESTful API.
1. Update Docker Compose YAML file, docker-compose-default.yaml to override the "operations" settings:
$ cd fabric-orderer
$ vi docker-compose-default.yaml
# Copyright (c) FYIcenter.com
version: '2'
services:
orderer:
container_name: orderer
image: hyperledger/fabric-orderer:amd64-1.4.0
command: orderer
environment:
- ORDERER_OPERATIONS_LISTENADDRESS=0.0.0.0:8443
- ORDERER_OPERATIONS_TLS_ENABLED=false
ports:
- "8443:8443"
2. Re-deploy the Orderer Docker container:
$ docker stop orderer $ docker rm orderer $ docker-compose -f docker-compose-default.yaml up -d $ docker ps hyperledger/fabric-orderer:amd64-1.4.0 Up 3 minutes 0.0.0.0:8443->8443/tcp orderer
3. Test the Operation RESTful API:
$ curl http://localhost:8443/healthz
{"status":"OK","time":"2019-01-01T17:57:57.3429122Z"}
$ curl http://localhost:8443/logspec
{"spec":"info"}
As you can see, the operation RESTful API is working. The container is running with 0.0.0.0 as the local IP address. The RESTful API server is listening at 0.0.0.0:8443, which is mapped to the hosting address of localhost:8443.
⇒ Setting Up Ledger Peer Manually
⇐ Orderer Peer Operation RESTful API
2019-05-14, ∼1591🔥, 0💬
Popular Posts:
How to access URL template parameters from "context.Request.Matched Parameters"object in Azure API P...
Where to find tutorials on PHP language? I want to know how to learn PHP. Here is a large collection...
What properties and functions are supported on http.client.HTTPResponse objects? If you get an http....
How To Pad an Array with the Same Value Multiple Times in PHP? If you want to add the same value mul...
What is EPUB 2.0 Metadata "dc:publisher" and "dc:rights" elements? EPUB 2.0 Metadata "dc:publisher" ...