調用DescribeFabricOrganizationChaincodes獲取組織的鏈碼列表。
調試
您可以在OpenAPI Explorer中直接運行該接口,免去您計算簽名的困擾。運行成功后,OpenAPI Explorer可以自動生成SDK代碼示例。
請求參數
名稱 |
類型 |
是否必選 |
示例值 |
描述 |
Action | String | 是 | DescribeFabricOrganizationChaincodes | 系統規定參數。取值:DescribeFabricOrganizationChaincodes。 |
OrganizationId | String | 是 | peers-aaaaaa2-1eqnj5o5w**** | 組織ID |
Location | String | 否 | cn-hangzhou | 位置信息 |
返回數據
名稱 |
類型 |
示例值 |
描述 |
RequestId | String | 1890FA4F-067A-4CE9-AC9B-2BD2E58FB5D3 | 請求ID |
Success | Boolean | true | 是否成功 |
ErrorCode | Integer | 200 | 錯誤碼 |
Result | Array of OrganizationChaincode | 組織的鏈碼列表 |
|
EndorsePolicy | String | OR ('perf9141MSP.member') | 背書策略 |
State | String | RUNNING | 狀態。取值:
|
CreateTime | String | 1533025590 | 創建時間 |
ChaincodeId | String | code-sacc-1pr09q7jmo0np | 鏈碼ID |
Message | String | OK | 消息 |
ChaincodeName | String | mycc | 鏈碼名 |
Installed | String | Installed | 是否安裝 |
Creator | String | uid-23425 | 創建者 |
DeployTime | String | 1533025590 | 部署時間 |
ChaincodeVersion | String | 0.3 | 鏈碼版本 |
ConsortiumId | String | consortium-lianmenyumingyi-hc5d1bwlulg7 | 聯盟ID |
ChannelName | String | first-channel | 通道名 |
ChannelId | String | chan-first-channel-31hlgpen5k5lig | 通道ID |
示例
請求示例
http(s)://[Endpoint]/?Action=DescribeFabricOrganizationChaincodes
&OrganizationId=peers-aaaaaa2-1eqnj5o5w****
&Location=cn-hangzhou
&公共請求參數
正常返回示例
XML
格式
HTTP/1.1 200 OK
Content-Type:application/xml
<DescribeFabricOrganizationChaincodesResponse>
<RequestId>1890FA4F-067A-4CE9-AC9B-2BD2E58FB5D3</RequestId>
<Success>true</Success>
<ErrorCode>200</ErrorCode>
<Result>
<EndorsePolicy>OR (&#39;perf9141MSP.member&#39;)</EndorsePolicy>
<State>RUNNING</State>
<CreateTime>1533025590</CreateTime>
<ChaincodeId>code-sacc-1pr09q7jmo0np</ChaincodeId>
<Message>OK</Message>
<ChaincodeName>mycc</ChaincodeName>
<Installed>Installed</Installed>
<Creator>uid-23425</Creator>
<DeployTime>1533025590</DeployTime>
<ChaincodeVersion>0.3</ChaincodeVersion>
<ConsortiumId>consortium-lianmenyumingyi-hc5d1bwlulg7</ConsortiumId>
<ChannelName>first-channel</ChannelName>
<ChannelId>chan-first-channel-31hlgpen5k5lig</ChannelId>
</Result>
</DescribeFabricOrganizationChaincodesResponse>
JSON
格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "1890FA4F-067A-4CE9-AC9B-2BD2E58FB5D3",
"Success" : true,
"ErrorCode" : 200,
"Result" : [ {
"EndorsePolicy" : "OR ('perf9141MSP.member')",
"State" : "RUNNING",
"CreateTime" : "1533025590",
"ChaincodeId" : "code-sacc-1pr09q7jmo0np",
"Message" : "OK",
"ChaincodeName" : "mycc",
"Installed" : "Installed",
"Creator" : "uid-23425",
"DeployTime" : "1533025590",
"ChaincodeVersion" : "0.3",
"ConsortiumId" : "consortium-lianmenyumingyi-hc5d1bwlulg7",
"ChannelName" : "first-channel",
"ChannelId" : "chan-first-channel-31hlgpen5k5lig"
} ]
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
文檔內容是否對您有幫助?