Peer 정보 조회
- 인쇄
- PDF
Peer 정보 조회
- 인쇄
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
블록체인 네트워크의 Peer 정보를 조회합니다.
요청
요청 URL
GET {BLOCKCHAINSERVICE API_URL}/networks/{networkId}/peers/{peerId}
요청 파라미터
파라미터명 | 필수 여부 | 타입 | 제약 사항 | 설명 |
---|---|---|---|---|
networkId | Yes | long | Path Parameter | 네트워크 아이디 |
peerId | Yes | long | Path Parameter | Peer 아이디 |
요청 예시
curl -X GET "http://blockchainservice.apigw.ntruss.com/api/v1/networks/{networkId}/peers/{peerId}" \
-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}"
응답
응답 바디
항목 | 타입 | 설명 |
---|---|---|
status | string | 응답 성공 여부 |
body.content[].networkId | Long | 네트워크 아이디 |
body.content[].peerId | String | Peer 아이디 |
body.content[].peerName | String | Peer명 |
body.content[].statusDatabaseType | String | Peer DB 타입 (LEVEL_DB, COUCH_DB) |
body.content[].endpointAddr | String | Peer 주소 |
body.content[].importYn | Boolean | Import 여부 |
body.content[].adminIdentityName | String | 관리 Identity명 |
body.content[].peerResourceCpu | Float | Peer pod에 할당된 CPU 용량 |
body.content[].peerReousrceMem | Integer | Peer pod에 할당된 Memory 용량 |
body.content[].peerResourceStorage | Integer | Peer pod에 할당된 스토리지 용량 |
body.content[].statusDatabaseResourceCpu | Float | Peer DB에 할당된 CPU 용량 (0: Deafult 설정) |
body.content[].statusDatabaseResourceMem | Integer | Peer DB에 할당된 Memory 용량 (0: Deafult 설정) |
body.content[].statusDatabaseResourceStorage | Integer | Peer DB에 할당된 스토리지 용량 - (0: Deafult 설정) |
body.content[].nodeAffinityLabel | String | NKS 클러스터에 선택한 Node Pool |
body.content[].status | String | Orderer 상태 (ACTIVE, DEPLOY, DELETE) |
body.content[].channelList.networkId | String | 네트워크 아이디 |
body.content[].channelList.ordererId | String | Orderer 아이디 |
body.content[].channelList.mspId | String | MSP 아이디 |
body.content[].channelList.channelName | String | 채널명 |
body.content[].channelList.operator | String | 관리자 |
body.content[].installChaincodeList.networkId | Long | 네트워크 아이디 |
body.content[].installChaincodeList.peerId | Long | Peer 아이디 |
body.content[].installChaincodeList.chaincodeName | String | 체인 코드명 |
body.content[].installChaincodeList.chaincodeVersion | String | 체인 코드 버전 |
body.content[].installChaincodeList.creator | Long | Install 진행자 |
body.content[].installChaincodeList.createDt | LocalDateTime | Install 일시 |
body.content[].createDate | LocalDateTime | Orderer 생성 일시 |
body.content[].updateDate | LocalDateTime | Orderer 수정 일시 |
응답 예시
{
"content": {
"networkId": 100,
"peerId": "2000001",
"peerName": "peer",
"statusDatabaseType": "LEVEL_DB",
"mspId": "peer-msp",
"endpointAddr": "org1-peer0-hi5whf-hlf-peer.bc-kckahenu.kr.blockchain.naverncp.com",
"adminIdentityName": "peer",
"peerResourceCpu": 1.1,
"peerResourceMem": 2800,
"peerResourceStorage": 200,
"statusDatabaseResourceCpu": 0,
"statusDatabaseResourceMem": 0,
"statusDatabaseResourceStorage": 0,
"nodeAffinityLabel": "",
"createDate": "2021-12-06T20:42:44+0900",
"updateDate": "2021-12-06T20:42:44+0900",
"channelList": [
{
"networkId": 100,
"ordererId": "2000001",
"channelName": "channel",
"operator": "peer-msp"
}
],
"installChaincodeList": []
}
}
이 문서가 도움이 되었습니까?