調用DescribeFabricCandidateOrganizations查詢接收邀請的候選組織。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
請求參數
| 名稱 | 類型 | 是否必選 | 樣本值 | 描述 |
| Action | String | 是 | DescribeFabricCandidateOrganizations | 系統規定參數。取值:DescribeFabricCandidateOrganizations。 |
| RegionId | String | 否 | cn-hangzhou | 地區 |
| Location | String | 否 | cn-hangzhou | 位置 |
返回資料
| 名稱 | 類型 | 樣本值 | 描述 |
| RequestId | String | 1890FA4F-067A-4CE9-AC9B-2BD2E58FB5D3 | 請求ID |
| Success | Boolean | true | 是否成功 |
| ErrorCode | Integer | 200 | 錯誤碼 |
| Result | Array of DescribeCandidateOrganization | 結果 |
|
| ServiceState | String | Running | 服務狀態 |
| OrganizationName | String | org1 | 組織名 |
| ClusterState | String | Running | 叢集狀態 |
| OrganizationId | String | peers-1oxw31d04**** | 組織ID |
樣本
請求樣本
http(s)://[Endpoint]/?Action=DescribeFabricCandidateOrganizations
&<公用請求參數>
正常返回樣本
XML格式
HTTP/1.1 200 OK
Content-Type:application/xml
<DescribeFabricCandidateOrganizationsResponse>
<RequestId>1890FA4F-067A-4CE9-AC9B-2BD2E58FB5D3</RequestId>
<Success>true</Success>
<ErrorCode>200</ErrorCode>
<Result>
<ServiceState>Running</ServiceState>
<OrganizationName>org1</OrganizationName>
<ClusterState>Running</ClusterState>
<OrganizationId>peers-1oxw31d04****</OrganizationId>
</Result>
</DescribeFabricCandidateOrganizationsResponse>
JSON格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "1890FA4F-067A-4CE9-AC9B-2BD2E58FB5D3",
"Success" : true,
"ErrorCode" : 200,
"Result" : [ {
"ServiceState" : "Running",
"OrganizationName" : "org1",
"ClusterState" : "Running",
"OrganizationId" : "peers-1oxw31d04****"
} ]
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。