mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-09 16:50:25 +08:00
增加修改节点停用/启用状态API
This commit is contained in:
@@ -208,6 +208,9 @@ service NodeService {
|
||||
|
||||
// 查找节点的WebP策略
|
||||
rpc findNodeWebPPolicies(FindNodeWebPPoliciesRequest) returns (FindNodeWebPPoliciesResponse);
|
||||
|
||||
// 修改节点的启用状态
|
||||
rpc updateNodeIsOn(UpdateNodeIsOnRequest) returns (RPCSuccess);
|
||||
}
|
||||
|
||||
// 创建节点
|
||||
@@ -844,4 +847,10 @@ message FindNodeWebPPoliciesResponse {
|
||||
int64 nodeClusterId = 1; // 集群ID
|
||||
bytes webPPolicyJSON = 2; // WebP策略配置
|
||||
}
|
||||
}
|
||||
|
||||
// 修改节点的启用状态
|
||||
message UpdateNodeIsOnRequest {
|
||||
int64 nodeId = 1; // 节点ID
|
||||
bool isOn = 2; // 是否启用
|
||||
}
|
||||
Reference in New Issue
Block a user