bcs__BatchRemovePeersFromChannel
Batch removes specified peer nodes from a Huawei Cloud Blockchain Service channel for an organization, supporting node withdrawal when the channel still has other peers.
Instructions
[BCS] 该接口用于BCS某个组织中的节点退出某通道。当节点为通道中最后一个节点时,需要使用组织退通道的接口来将通道中的最后一个节点退出。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"blockchain_id": "<blockchain_id>",
"channel_id": "<channel_id>",
"org_name": "<org_name>",
"peers": "<peers>",
"project_id": "<project_id>"
},
"name": "bcs__BatchRemovePeersFromChannel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| peers | Yes | 要退出的节点个数。取值范围(0, 组织中节点总数) | |
| org_name | Yes | 组织名称。仅可输入一个组织名称 | |
| channel_id | Yes | 区块链通道名称。可调用“查询实例信息”接口获取,接口返回的“channels”中的name字段值 | |
| project_id | Yes | 租户从IAM申请到的projectid,一般为32位字符串。 | |
| blockchain_id | Yes | 区块链服务id。可调用“查询服务实例列表”接口获取ID |