View Peer list
- Print
- PDF
View Peer list
- Print
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
Retrieve the list of peers in the blockchain network.
request
Request URL
GET {BLOCKCHAINSERVICE API_URL}/networks/{networkId}/peers
request parameter
parameter name | Required | type | Restrictions | Description |
---|---|---|---|---|
page | No | int | - page number - default: 0 | |
size | No | int | - result list size - default: 20 | |
sort | No | String | Sort column name (ascending order) | |
networkId | Yes | long | Path Parameter | Network ID |
Example request
curl -X GET "http://blockchainservice.apigw.ntruss.com/api/v1/networks/{networkId}/peers?page={page}&size={size}&sort={sort}" \
-H "x-ncp-apigw-timestamp: {x-ncp-apigw-timestamp}" \
-H "x-ncp-iam-access-key: {x-ncp-iam-access-key}" \
-H "x-ncp-apigw-signature-v2: {x-ncp-apigw-signature-v2}"
reply
response body
Item | type | Description |
---|---|---|
status | string | Response Success |
body.content[].networkId | Long | Network ID |
body.content[].peerId | String | Peer ID |
body.content[].peerName | String | Peer people |
body.content[].statusDatabaseType | String | Peer DB type (LEVEL_DB, COUCH_DB) |
body.content[].mspId | String | Admin MSP ID |
body.content[].status | String | Orderer Status (ACTIVE, DEPLOY, DELETE) |
body.content[].createDate | LocalDateTime | Orderer Creation Date |
body.content[].updateDate | LocalDateTime | Orderer modification date |
body.totalElements | Long | Total number of Content |
body.totalPages | Integer | number of pages |
Example response
{
"content": [
{
"networkId": 100,
"peerId": "2000001",
"peerName": "peer",
"statusDatabaseType": "LEVEL_DB",
"mspId": "peer-msp",
"status": "ACTIVE",
"createDate": "2021-12-06T20:42:44+0900",
"updateDate": "2021-12-06T20:42:44+0900"
}
],
"totalElements": 1,
"totalPages": 1
}
Was this article helpful?