Peer 정보 조회
    • PDF

    Peer 정보 조회

    • PDF

    Article Summary

    블록체인 네트워크의 Peer 정보를 조회합니다.

    요청

    요청 URL

    GET {BLOCKCHAINSERVICE API_URL}/networks/{networkId}/peers/{peerId}
    

    요청 파라미터

    파라미터명필수 여부타입제약 사항설명
    networkIdYeslongPath Parameter네트워크 아이디
    peerIdYeslongPath ParameterPeer 아이디

    요청 예시

    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}" 
    

    응답

    응답 바디

    항목타입설명
    statusstring응답 성공 여부
    body.content[].networkIdLong네트워크 아이디
    body.content[].peerIdStringPeer 아이디
    body.content[].peerNameStringPeer명
    body.content[].statusDatabaseTypeStringPeer DB 타입 (LEVEL_DB, COUCH_DB)
    body.content[].endpointAddrStringPeer 주소
    body.content[].importYnBooleanImport 여부
    body.content[].adminIdentityNameString관리 Identity명
    body.content[].peerResourceCpuFloatPeer pod에 할당된 CPU 용량
    body.content[].peerReousrceMemIntegerPeer pod에 할당된 Memory 용량
    body.content[].peerResourceStorageIntegerPeer pod에 할당된 스토리지 용량
    body.content[].statusDatabaseResourceCpuFloatPeer DB에 할당된 CPU 용량
    (0: Deafult 설정)
    body.content[].statusDatabaseResourceMemIntegerPeer DB에 할당된 Memory 용량
    (0: Deafult 설정)
    body.content[].statusDatabaseResourceStorageIntegerPeer DB에 할당된 스토리지 용량
    - (0: Deafult 설정)
    body.content[].nodeAffinityLabelStringNKS 클러스터에 선택한 Node Pool
    body.content[].statusStringOrderer 상태
    (ACTIVE, DEPLOY, DELETE)
    body.content[].channelList.networkIdString네트워크 아이디
    body.content[].channelList.ordererIdStringOrderer 아이디
    body.content[].channelList.mspIdStringMSP 아이디
    body.content[].channelList.channelNameString채널명
    body.content[].channelList.operatorString관리자
    body.content[].installChaincodeList.networkIdLong네트워크 아이디
    body.content[].installChaincodeList.peerIdLongPeer 아이디
    body.content[].installChaincodeList.chaincodeNameString체인 코드명
    body.content[].installChaincodeList.chaincodeVersionString체인 코드 버전
    body.content[].installChaincodeList.creatorLongInstall 진행자
    body.content[].installChaincodeList.createDtLocalDateTimeInstall 일시
    body.content[].createDateLocalDateTimeOrderer 생성 일시
    body.content[].updateDateLocalDateTimeOrderer 수정 일시

    응답 예시

    {
      "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": []
      }
    }
    

    이 문서가 도움이 되었습니까?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.