API节点服务找到 14 个接口
修改API节点
updateAPINode
POST/APINodeService/updateAPINode
- 定义文件
service_api_node.proto- 可用角色
- 管理员
rpc updateAPINode (UpdateAPINodeRequest) returns (RPCSuccess);
请求消息
UpdateAPINodeRequest修改API节点
message UpdateAPINodeRequest {
int64 apiNodeId = 1; // API节点ID
string name = 2; // API节点名称
string description = 3; // API节点描述
bytes httpJSON = 4; // 监听HTTP地址配置 @link json:http_protocol
bytes httpsJSON = 5; // 监听HTTPS地址配置 @link json:https_protocol
bytes accessAddrsJSON = 6; // 访问地址 @link json:network_address
bool isOn = 7; // 是否启用当前API节点
bool restIsOn = 8; // 是否启用API
bytes restHTTPJSON = 9; // API地址HTTP地址配置 @link json:http_protocol
bytes restHTTPSJSON = 10; // API地址HTTPS地址配置 @link json:https_protocol
bool isPrimary = 11; // 是否为主要API节点,日常任务主要运行在主要API节点上
}