调用JoinFabricChannel确认加入通道。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
| 名称 | 类型 | 是否必选 | 示例值 | 描述 |
|---|---|---|---|---|
| Action | String | 是 | JoinFabricChannel |
系统规定参数。取值:JoinFabricChannel。 |
| RegionId | String | 否 | cn-hangzhou |
地域 |
| ChannelId | String | 是 | chan-channelx-1l1hmckuu**** |
通道ID |
| Do | String | 是 | accept |
操作 |
| Location | String | 否 | cn-hangzhou |
位置 |
返回数据
| 名称 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| RequestId | String | 1890FA4F-067A-4CE9-AC9B-2BD2E58FB5D3 |
请求ID |
| Success | Boolean | true |
是否成功 |
| ErrorCode | Integer | 200 |
错误码 |
| Result | Array of Result |
结果 |
|
| WithPeer | Boolean | true |
是否包含节点 |
| AcceptTime | String | 1533025590 |
接受时间 |
| State | String | Running |
状态 |
| DestroyTime | String | 1533025590 |
销毁时间 |
| InviteTime | String | 1533025590 |
邀请时间 |
| ChannelId | String | channelid |
通道ID |
| ConfirmTime | String | 1533025590 |
确认时间 |
| ApproveTime | String | 1533025590 |
批准时间 |
| OrganizationId | String | peers-aaaaaa2-1eqnj5o5w9dt3 |
组织ID |
示例
请求示例
http(s)://[Endpoint]/?Action=JoinFabricChannel
&ChannelId=chan-channelx-1l1hmckuu****
&Do=accept
&<公共请求参数>
正常返回示例
XML格式
HTTP/1.1 200 OK
Content-Type:application/xml
<JoinFabricChannelResponse>
<RequestId>1890FA4F-067A-4CE9-AC9B-2BD2E58FB5D3</RequestId>
<Success>true</Success>
<ErrorCode>200</ErrorCode>
<Result>
<WithPeer>true</WithPeer>
<AcceptTime>1533025590</AcceptTime>
<State>Running</State>
<DestroyTime>1533025590</DestroyTime>
<InviteTime>1533025590</InviteTime>
<ChannelId>channelid</ChannelId>
<ConfirmTime>1533025590</ConfirmTime>
<ApproveTime>1533025590</ApproveTime>
<OrganizationId>peers-aaaaaa2-1eqnj5o5w9dt3</OrganizationId>
</Result>
</JoinFabricChannelResponse>
JSON格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "1890FA4F-067A-4CE9-AC9B-2BD2E58FB5D3",
"Success" : true,
"ErrorCode" : 200,
"Result" : [ {
"WithPeer" : true,
"AcceptTime" : "1533025590",
"State" : "Running",
"DestroyTime" : "1533025590",
"InviteTime" : "1533025590",
"ChannelId" : "channelid",
"ConfirmTime" : "1533025590",
"ApproveTime" : "1533025590",
"OrganizationId" : "peers-aaaaaa2-1eqnj5o5w9dt3"
} ]
}
错误码
访问错误中心查看更多错误码。