View Organization list
    • PDF

    View Organization list

    • PDF

    Article Summary

    View the list of Organizations in the blockchain network.

    Request

    Request URL

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

    Request Parameter

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

    Example of Request

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

    Response

    Response 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

    Example of Response

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

    Was this article helpful?

    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.