MCPcopy Create free account
hub / github.com/OpenSN-Library/OpenSN-Library / StartInstanceWebshell

Function StartInstanceWebshell

ui/src/Request/webshell.js:4–12  ·  view source on GitHub ↗
(nodeIndex,instanceID,callback)

Source from the content-addressed store, hash-verified

2import { UrlBase } from "./base";
3
4export const StartInstanceWebshell = (nodeIndex,instanceID,callback) => {
5 axios.post(UrlBase+"/webshell/instance",{
6 node_index:Number(nodeIndex),
7 instance_id:instanceID,
8 expire_minute:5,
9 }).then((response)=>{
10 callback(response)
11 })
12}
13
14export const StartLinkWebshell = (linkID,nodeIndex,callback) => {
15 axios.post(UrlBase+"/webshell/link",{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected