...
| Anchor | ||||
|---|---|---|---|---|
|
| 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 | ||||
|---|---|---|---|---|
|
| 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 | ||||
|---|---|---|---|---|
|
| 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 | ||||
|---|---|---|---|---|
| ||||
{
"agent": {"id":"agent id"}, // name etc will also work
"application": {"id": "application id"}, // name etc will also work
} |
...