Samples for Wallix AdminBastion (WAB) vault providing vault definition in vault record and as part of authentication record.
API request
curl -u "USERNAME:PASSWORD" -H "X-Requested-With: Curl" -d
"action=create&type=Wallix AdminBastion (WAB)&title=My WAB Vault&url=https://wab.example.com/api&ssl_verify=1&username=user&password=abc123&comments=creating wab vault from api" "https://qualysapi.qualys.com/api/2.0/fo/vault/"
XML output
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE SIMPLE_RETURN SYSTEM "https://qualysapi.qualys.com/api/2.0/simple_return.dtd">
<SIMPLE_RETURN>
<RESPONSE>
<DATETIME>2018-05-08T18:02:13Z</DATETIME>
<TEXT>Success</TEXT>
<ITEM_LIST>
<ITEM>
<KEY>ID</KEY>
<VALUE>246031</VALUE>
</ITEM>
</ITEM_LIST>
</RESPONSE>
</SIMPLE_RETURN>
API request
curl -u "USERNAME:PASSWORD" -H "X-Requested-With: Curl" -d
"action=create&type=Wallix AdminBastion (WAB)&title=My WAB Vault2&url= https://wab.example.com/api&ssl_verify=0&username=user&appkey= AyZJNAyDIaPpzCBsT6ElNRO8o9Sfa6fsbZ2LHH8V6G&comments=creating wab vault from api using appkey" "https://qualysapi.qualys.com/api/2.0/fo/vault/"
XML output
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE SIMPLE_RETURN SYSTEM "https://qualysapi.qualys.com/api/2.0/simple_return.dtd">
<SIMPLE_RETURN>
<RESPONSE>
<DATETIME>2018-05-08T18:26:14Z</DATETIME>
<TEXT>Success</TEXT>
<ITEM_LIST>
<ITEM>
<KEY>ID</KEY>
<VALUE>246040</VALUE>
</ITEM>
</ITEM_LIST>
</RESPONSE>
</SIMPLE_RETURN>
API request
curl -u "USERNAME:PASSWORD" -H "X-Requested-With: Curl" -d "action=create&title=WINDOWS_AUTH_WAB&username=administrator&ips=10.20.31.112&login_type=vault&vault_id=246044&vault_type=Wallix AdminBastion (WAB)&authorization_name=my_authorization&target_name=administrator@TEMP-WIN81-X86@Windows-8" "https://qualysapi.qualys.com/api/2.0/fo/auth/windows/"
XML output
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE BATCH_RETURN SYSTEM "https://qualysapi.qualys.com/api/2.0/batch_return.dtd">
<BATCH_RETURN>
<RESPONSE>
<DATETIME>2018-05-08T21:17:37Z</DATETIME>
<BATCH_LIST>
<BATCH>
<TEXT>Successfully Created</TEXT>
<ID_SET>
<ID>241064</ID>
</ID_SET>
</BATCH>
</BATCH_LIST>
</RESPONSE>
</BATCH_RETURN>
API request
curl -u "USERNAME:PASSWORD" -H "X-Requested-With: Curl" -d "action=update&ids=241064&title=WINDOWS_AUTH_WAB2&ips=10.20.31.112,10.10.10.10&login_type=vault&vault_id=246044&vault_type=Wallix AdminBastion (WAB)&authorization_name=my_authorization2&target_name=administrator@TEMP-WIN81-X86@Windows-8" "https://qualysapi.qualys.com/api/2.0/fo/auth/windows/">update_windows.xml
XML output
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE BATCH_RETURN SYSTEM "https://qualysapi.qualys.com/api/2.0/batch_return.dtd">
<BATCH_RETURN>
<RESPONSE>
<DATETIME>2018-05-08T22:01:02Z</DATETIME>
<BATCH_LIST>
<BATCH>
<TEXT>Successfully Updated</TEXT>
<ID_SET>
<ID>241064</ID>
</ID_SET>
</BATCH>
</BATCH_LIST>
</RESPONSE>
</BATCH_RETURN>