TANDBERG D14172.01 Example, The new configuration value can be confirmed using the getxml request

Models: D14172.01

1 84
Download 84 pages 8.98 Kb
Page 15
Image 15
The new configuration value can be confirmed using the getxml request:

TANDBERG Gatekeeper/Border Controller API User Guide

Like getxml, it has the data URL form-data encoded with one single parameter. The Content-Type of the document must be of type “application/x-www-form-urlencoded" and the body must be encoded accordingly (e.g. first line will be xmldoc=<then the document>).

Example 1.16

Using the Unix curl command, the systems SNMP contact can be set in the Configuration document:

curl –k –u admin:<password> -d \ '<Configuration><SNMP><SystemContact>Alice</SystemContact></SNMP></Configur ation>' https://10.0.0.1/formputxml

<?xml version="1.0"?> <Configuration>

<Success/>

</Configuration>

The new configuration value can be confirmed using the getxml request:

curl –k –u admin:<password> \ https://10.0.0.1/getxml?location=Configuration/SNMP/SystemContact

<?xml version="1.0"?> <Configuration>

<SNMP item="1">

<SystemContact item="1">Alice</SystemContact> </SNMP>

</Configuration>

Example 1.17

Using the Unix curl command, the dial command can be invoked on the target system to place a call between Alice and Bob:

curl –k –u admin:<password> -d \ '<Command><Dial><callSrc>Alice</callSrc><callDst>Bob</callDst></Dial></Comm and>' https://10.0.0.1/formputxml

<?xml version=“1.0"?> <Command>

<DialResult item="1" status="OK"> <callSrc item="1">Alice</callSrc> <callDst item="1">Bob</callDst> <Bandwidth item="1">384</Bandwidth>

<CallSerialNumber item="1">00000000-0000-0000-0000-000000000000 </CallSerialNumber>

<EncryptionMode item="1">Auto</EncryptionMode> <EncryptionType item="1">Auto</EncryptionType>

</DialResult>

</Command>

D14172.01

page 15 of 84

Page 15
Image 15
TANDBERG D14172.01 manual Example, The new configuration value can be confirmed using the getxml request