beautypg.com

TANDBERG Gatekeeper/Border Controller API D14172.01 User Manual

Page 15

background image

TANDBERG Gatekeeper/Border Controller API User Guide

D14172.01

page 15 of 84

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=).


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 \
'Aliceation>' https://10.0.0.1/formputxml






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




Alice





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 \
'AliceBoband>' https://10.0.0.1/formputxml




Alice
Bob
384
00000000-0000-0000-0000-000000000000

Auto
Auto