MCPcopy Index your code
hub / github.com/1Panel-dev/1Panel / getHostByID

Function getHostByID

frontend/src/api/modules/terminal.ts:9–11  ·  view source on GitHub ↗
(id: number)

Source from the content-addressed store, hash-verified

7 return http.postLocalNode<ResPage<Host.Host>>(`/hosts/search`, params);
8};
9export const getHostByID = (id: number) => {
10 return http.postLocalNode<Host.Host>(`/hosts/info`, { id: id });
11};
12export const getHostTree = (params: Host.ReqSearch) => {
13 return http.postLocalNode<Array<Host.HostTree>>(`/hosts/tree`, params);
14};

Callers

nothing calls this directly

Calls 1

postLocalNodeMethod · 0.80

Tested by

no test coverage detected