ピアリストを表示
    • PDF

    ピアリストを表示

    • PDF

    Article Summary

    ブロックチェーンネットワーク内のピアのリストを取得します。

    リクエスト

    リクエストURL

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

    リクエストパラメータ

    parameter nameRequiredtypeRestrictionsDescription
    pageNoint- page number
    - default: 0
    sizeNoint- result list size
    - default: 20
    sortNoStringSort column name (ascending order)
    networkIdYeslongPath ParameterNetwork ID

    リクエストの例

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

    応答

    応答本文

    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[].mspIdStringAdmin MSP ID
    body.content[].statusStringOrderer Status (ACTIVE, DEPLOY, DELETE)
    body.content[].createDateLocalDateTimeOrderer Creation Date
    body.content[].updateDateLocalDateTimeOrderer modification date
    body.totalElementsLongTotal number of Content
    body.totalPagesIntegernumber of pages

    応答の例

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

    この記事は役に立ちましたか?

    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.