ピアの詳細を表示
    • PDF

    ピアの詳細を表示

    • PDF

    Article Summary

    ブロックチェーンネットワークのピア情報についてお問い合わせください。

    リクエスト

    リクエストURL

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

    リクエストパラメータ

    parameter nameRequiredtypeRestrictionsDescription
    networkIdYeslongPath ParameterNetwork ID
    peerIdYeslongPath ParameterPeer ID

    リクエストの例

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

    応答

    応答本文

    ItemtypeDescription
    statusstringResponse Success
    body.content[].networkIdLongNetwork ID
    body.content[].peerIdStringPeer ID
    body.content[].peerNameStringPeer people
    body.content[].statusDatabaseTypeStringPeer DB type
    (LEVEL_DB, COUCH_DB)
    body.content[].endpointAddrStringPeer Address
    body.content[].importYnBooleanImport or not
    body.content[].adminIdentityNameStringManagement Identity Name
    body.content[].peerResourceCpuFloatCPU capacity allocated to peer pods
    body.content[].peerReousrceMemIntegerMemory capacity allocated to peer pods
    body.content[].peerResourceStorageIntegerStorage capacity allocated to peer pods
    body.content[].statusDatabaseResourceCpuFloatCPU capacity allocated to peer DB
    (0: Deafult setting)
    body.content[].statusDatabaseResourceMemIntegerMemory capacity allocated to Peer DB
    (0: Deafult setting)
    body.content[].statusDatabaseResourceStorageIntegerStorage capacity allocated to Peer DB
    (0: Deafult setting)
    body.content[].nodeAffinityLabelStringNode Pool
    body.content[].statusStringOrderer Status (ACTIVE, DEPLOY, DELETE)
    body.content[].channelList.networkIdStringNetwork ID
    body.content[].channelList.ordererIdStringOrderer ID
    body.content[].channelList.mspIdStringMSP ID
    body.content[].channelList.channelNameStringChannel Name
    body.content[].channelList.operatorStringadmin
    body.content[].installChaincodeList.networkIdLongNetwork ID
    body.content[].installChaincodeList.peerIdLongPeer ID
    body.content[].installChaincodeList.chaincodeNameStringchaincode name
    body.content[].installChaincodeList.chaincodeVersionStringchaincode version
    body.content[].installChaincodeList.creatorLongInstall Moderator
    body.content[].installChaincodeList.createDtLocalDateTimeInstall Date
    body.content[].createDateLocalDateTimeOrderer Creation Date
    body.content[].updateDateLocalDateTimeOrderer modification date

    応答の例

    {
      "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.