.pdf)
WHM Plugins
listips function from within your custom script:
/xml-api/listips function call name, plus the required variables (see below), to a URL which includes the address of your server.
example.com, you would include the following string in your script: https://example.com:2087/xml-api/listips
listips function from within your custom script:
/json-api/listips function call name, plus the required variables (see below), to a URL which includes the address of your server.
example.com, you would include the following string in your script: https://example.com:2087/json-api/listips
listips function. 1 — yes.
0 — no.
1 — yes.
0 — no.
1 — yes.
0 — no.
1 — yes.
0 — no.
1 — yes.
0 — no.
https://example.com:2087/xml-api/listips in WebHost Manager will produce output similar to the following:
<listips>
<result>
<active>1</active>
<configured>1</configured>
<if>eth0</if>
<ip>127.0.0.1</ip>
<mainaddr>1</mainaddr>
<removable>0</removable>
<used>1</used>
</result>
<result>
<active>1</active>
<configured>1</configured>
<if>eth0:1</if>
<ip>208.77.188.166</ip>
<mainaddr>0</mainaddr>
<removable>1</removable>
<used>0</used>
</result>
</listips>
https://example.com:2087/json-api/listips in WebHost Manager will produce output similar to:
{
"result":[
{
"used":1,
"ip":"127.0.0.1",
"removable":0,
"active":1,
"if":"eth0",
"mainaddr":1
},
{
"used":0,
"ip":"208.77.188.166",
"removable":1,
"active":1,
"if":"eth0:1",
"mainaddr":0
},
]
}