Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

Anchor
_Toc341972613
_Toc341972613
/agent/create


Wiki Markup
+Examples:+
Method:/agent/create
Parameters: 
\{
 "attrs":
\{
type:"WEB_AGENT",
 ipaddress:"192.168.222.9",
 name:"testAgent1",
 description:"an agent",
 subjectDn:"CN=agent test,L=Milton Keynes,OU=R&D,O=Deepnet,C=UK",
//data:"xxxx some data xxx",
 applications:\[\[id:aid1\],\[id:aid2\]\]
\},
"return": \["id", "certificatePfx", "agentConfigurePack"\]
\}
Response: 
\{
 "error":0,
"result":\{"id":1\}
\}


Anchor
_Toc341972614
_Toc341972614
/agent/listTypes


Wiki Markup
+Examples:+
Method:/agent/listTypes
Parameters: 
\{
\}
Response: 
\{
 "error":0,
"result":
\{
"total":5,
"rows":
\[
\{"value":"MANAGEMENT_CONSOLE","description":"Management Console"\},
\{"value":"WEB_AGENT","description":"Web Agent"\},
\{"value":"WINDOWS_AGENT","description":"Windows Agent"\},
\{"value":"RADIUS_AGENT","description":"RADIUS Agent"\},
\{"value":"OTHERS_AGENT","description":"Other Agent"\}
\]
\}
\}
\\


Anchor
_Toc341972615
_Toc341972615
/agent/listApplications


Wiki Markup
+Examples:+
Method:/agent/listApplications
Parameters: 
\{
"return": \["*"\]
\}
Response: 
\{
 "error":0,
"result":
\{
"total":2,
"rows":
\[
 \{
 "id":"aid1",
 "name":"aaa application"
\},
 \{
 "id":"aid2",
 "name":"aaa application 2"
\}
\]
\}
\}
\\
\\
\\
\\


/agent/addApplication

Code Block
languagejs
titleRequest
{
    "agent": {"id":"agent id"}, // name etc will also work
    "application": {"id": "application id"}, // name etc will also work
}

...