CAのIDリストを表示する
    • PDF

    CAのIDリストを表示する

    • PDF

    Article Summary

    CAに登録されているIDと情報のリストを表示します。

    リクエスト

    リクエスト URL

    GET {BLOCKCHAINSERVICE API_URL}/networks/{networkId}/cas/{caId}/identity
    

    リクエストパラメーター

    Parameter NameRequired statusTypeRestrictionDescription
    networkIdYeslongPath ParameterNetwork ID
    caIdYesStringPath Parameter CA ID

    リクエストの例

    curl -X GET "http://blockchainservice.apigw.ntruss.com/api/v1/networks/{networkId}/cas/{caId}/identity  \
        -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[].caIdStringCA ID
    body.content[].identityNameStringIdentity name
    body.content[].identityTypeStringIdentity typeblockchainservice-viewcapodsusag
    (ADMIN, PEER, ORDERER, CLIENT)
    body.content[].expireDateStringCerticate expire date
    body.content[].creatorLongID
    body.content[].createDtLocalDateTimecreated date
    body.content[].updateDtLocalDateTimelast modified date

    レスポンスボディ

    {
      "content": [
        {  
          "networkId": 100,
          "caId": "2000001",
          "identityName": "admin",
          "identityType": "ADMIN",
          "expireDate": "2024-12-05T20:40:00+0900",
          "creator": 100,
          "createDate": "2021-12-06T20:42:44+0900",
          "updateDate": "2021-12-06T20:42:44+0900"
        },
        {
          "networkId": 100,
          "caId": "2000002",
          "identityName": "orderer",
          "identityType": "ORDERER",
          "expireDate": "2024-12-05T20:40:00+0900",
          "creator": 100,
          "createDate": "2021-12-06T20:42:44+0900",
          "updateDate": "2021-12-06T20:42:44+0900"
        }
      ]
    }
    

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

    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.