iclientpy.rest.api.node_service 源代码

from ..decorator import get, post
from typing import List,Dict
from iclientpy.rest.api.model import CreateNodeResult, CreateServerEntity, BatchMethodResult, NodeInfo, NodeInfoList


[文档]class NodeService:
[文档] @post('/cloud/web/nodes/server', entityKW='entity') def create_server(self, entity: CreateServerEntity) -> CreateNodeResult: pass
[文档] @post('/web/api/service/stopped', entityKW='node_ids') def stop_nodes(self, node_ids: List[str]) -> BatchMethodResult: pass
[文档] @post('/web/api/service/started', entityKW='node_ids') def start_nodes(self, node_ids: List[str]) -> BatchMethodResult: pass
[文档] @post('/web/api/service/deleted', entityKW='node_ids') def delete_nodes(self, node_ids: List[str]) -> BatchMethodResult: pass
[文档] @post('/web/api/service/restarted', entityKW='node_ids') def restart_nodes(self, node_ids: List[str]) -> BatchMethodResult: pass
[文档] @get('/web/api/service') def get_services(self) -> NodeInfoList: pass
[文档] @get('/web/api/service/current', fixed_queryKWs={'itemName':'M_PortTCP'},queryKWs=['appid']) def get_current_M_PortTCP(self, appid: str) -> Dict[str, str]: pass