組織リストを表示
    • PDF

    組織リストを表示

    • PDF

    Article Summary

    ブロックチェーンネットワーク内の組織のリストを表示します。

    リクエスト

    リクエスト URL

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

    リクエストパラメーター

    Parameter NameParameter NameTypeRestrictionDescription
    networkIdYeslongPath ParameterNetwork ID
    pageNoint- Page number
    - Default : 0
    sizeNoint- Size of result list
    - Default: 20
    sortNoStringName of Order column (Ascending)

    リクエストの例

    curl -X GET "http://blockchainservice.apigw.ntruss.com/api/v1/networks/{networkId}/organizations?page=0&size=20&sort=mspId" \
        -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}" 
    

    レスポンス

    レスポンス Body

    CategoryTypeDescription
    statusstringIndicates whether response was successful
    body.content[].networkIdLongNetwork ID
    body.content[].mspIdStringMSP ID
    body.content[].mspNameStringMSP name
    body.content[].importYnStringIs imported Organization (Y/N)
    body.totalElementsLongTotal count of content
    body.totalPagesIntegerCount of page

    レスポンスボディ

    {
      "content": [
       {
          "mspId": "org1-msp",
          "mspName": "org1-msp",
          "importYn": "N",
          "networkId": 100
        },
        {
          "mspId": "orderer-msp",
          "mspName": "orderer-msp",
          "importYn": "N",
          "networkId": 100
        }
      ],
      "totalElements": 2,
      "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.