获取组织内2.2链码包信息。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String DescribeFabricOrganizationChaincodePackage

系统规定参数。取值:DescribeFabricOrganizationChaincodePackage

OrganizationId String peers-aaaaaa2-1eqnj5o5w9dt3

组织ID

返回数据

名称 类型 示例值 描述
Message String ok

信息

RequestId String 1890FA4F-067A-4CE9-AC9B-2BD2E58FB5D3

请求ID

Success Boolean true

是否成功

ErrorCode Integer 200

错误码

Result Array of ChaincodePackage

结果

示例

请求示例

http(s)://[Endpoint]/?Action=DescribeFabricOrganizationChaincodePackage
&OrganizationId=peers-aaaaaa2-1eqnj5o5w9dt3
&公共请求参数

正常返回示例

XML格式

HTTP/1.1 200 OK
Content-Type:application/xml

<DescribeFabricOrganizationChaincodePackageResponse>
    <Message>ok</Message>
    <RequestId>1890FA4F-067A-4CE9-AC9B-2BD2E58FB5D3</RequestId>
    <Success>true</Success>
    <ErrorCode>200</ErrorCode>
    <Result>
        <OrganizationId>peers-aaaaaa2-1eqnj5o5w9dt3</OrganizationId>
        <Label>label</Label>
        <Checksum>15bab12c29edbc095c33545b9867aec9be469c74a6dd5783df6ee74a24334c77</Checksum>
        <ChaincodePackageId>cmcc-1.5:227c3cd472a8a2fcaa1c63f15812a1894348a985dc723006dd47d9f2848d10ed</ChaincodePackageId>
        <Md5sum>N02eVKuRJDA2ODtieMUxVw==</Md5sum>
        <ProviderUid>1313158505072210</ProviderUid>
        <ProviderBid>26842</ProviderBid>
        <Type>0</Type>
        <TypeName>golang</TypeName>
        <UploadTime>1533025590</UploadTime>
        <InstallTime>1533025590</InstallTime>
        <State>Running</State>
        <OssURL>hi003/7efbe860-1a40-42c9-9e6b-0bc08d7ee3a4/cmcc.tar.gz</OssURL>
        <DeleteTime>1533025590</DeleteTime>
        <Deleted>false</Deleted>
        <Message>ok</Message>
    </Result>
</DescribeFabricOrganizationChaincodePackageResponse>

JSON格式

HTTP/1.1 200 OK
Content-Type:application/json

{
  "Message" : "ok",
  "RequestId" : "1890FA4F-067A-4CE9-AC9B-2BD2E58FB5D3",
  "Success" : true,
  "ErrorCode" : 200,
  "Result" : [ {
    "OrganizationId" : "peers-aaaaaa2-1eqnj5o5w9dt3",
    "Label" : "label",
    "Checksum" : "15bab12c29edbc095c33545b9867aec9be469c74a6dd5783df6ee74a24334c77",
    "ChaincodePackageId" : "cmcc-1.5:227c3cd472a8a2fcaa1c63f15812a1894348a985dc723006dd47d9f2848d10ed",
    "Md5sum" : "N02eVKuRJDA2ODtieMUxVw==",
    "ProviderUid" : "1313158505072210",
    "ProviderBid" : "26842",
    "Type" : 0,
    "TypeName" : "golang",
    "UploadTime" : "1533025590",
    "InstallTime" : "1533025590",
    "State" : "Running",
    "OssURL" : "hi003/7efbe860-1a40-42c9-9e6b-0bc08d7ee3a4/cmcc.tar.gz",
    "DeleteTime" : "1533025590",
    "Deleted" : false,
    "Message" : "ok"
  } ]
}

错误码

访问错误中心查看更多错误码。