SetApps - Создать/заменить список приложений
Общая информация
-
Команда актуальна, начиная с версии 1.9.
Входные параметры
| Параметр | Значение | Формат значения |
|---|---|---|
name |
Имя списка |
Строка |
domain |
Домен списка. |
Текст длиной до 235 символов, удовлетворяющий правилам FQDN. |
appsList |
Список имен приложений |
Выходные параметры
| Параметр | Значение | Формат значения |
|---|---|---|
code |
Код ответа |
int |
detail |
Пояснение к ответу |
String |
Примеры команд и кодов
| Код | Описание |
|---|---|
0 |
Успешно |
Запрос
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:nbi="http://nbi.radius.eltex.org" xmlns:xsd="http://apps.pcrf.response.object.nbi.radius.eltex.org/xsd">
<soapenv:Header/>
<soapenv:Body>
<nbi:SetApps>
<nbi:name>myapps</nbi:name>
<nbi:domain>root</nbi:domain>
<nbi:appsList>
<xsd:apps>dns</xsd:apps>
<xsd:apps>facebook</xsd:apps>
<xsd:apps>dropbox</xsd:apps>
</nbi:appsList>
</nbi:SetApps>
</soapenv:Body>
</soapenv:Envelope>
Ответ
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ns:SetAppsResponse xmlns:ns="http://nbi.radius.eltex.org">
<ns:return xsi:type="ax21:NbiResponse" xmlns:ax219="http://statistics.object.nbi.radius.eltex.org/xsd" xmlns:ax216="http://statistic.response.object.nbi.radius.eltex.org/xsd" xmlns:ax227="http://apList.response.object.nbi.radius.eltex.org/xsd" xmlns:ax239="http://shaper.pcrf.response.object.nbi.radius.eltex.org/xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ax236="http://service.pcrf.response.object.nbi.radius.eltex.org/xsd" xmlns:ax258="http://service.response.object.nbi.radius.eltex.org/xsd" xmlns:ax28="http://request.object.nbi.radius.eltex.org/xsd" xmlns:ax248="http://userLists.pcrf.response.object.nbi.radius.eltex.org/xsd" xmlns:ax245="http://urlFilters.pcrf.response.object.nbi.radius.eltex.org/xsd" xmlns:ax213="http://authService.object.nbi.radius.eltex.org/xsd" xmlns:ax224="http://sorm3.response.object.nbi.radius.eltex.org/xsd" xmlns:ax221="http://ssidstats.response.object.nbi.radius.eltex.org/xsd" xmlns:ax211="http://tariff.object.nbi.radius.eltex.org/xsd" xmlns:ax23="http://object.nbi.radius.eltex.org/xsd" xmlns:ax233="http://locationHistory.response.object.nbi.radius.eltex.org/xsd" xmlns:ax255="http://apps.pcrf.response.object.nbi.radius.eltex.org/xsd" xmlns:ax230="http://domains.response.object.nbi.radius.eltex.org/xsd" xmlns:ax252="http://sorm2.response.object.nbi.radius.eltex.org/xsd" xmlns:ax242="http://subnets.pcrf.response.object.nbi.radius.eltex.org/xsd" xmlns:ax25="http://radiusUser.response.object.nbi.radius.eltex.org/xsd" xmlns:ax21="http://response.object.nbi.radius.eltex.org/xsd">
<ax21:code>0</ax21:code>
<ax21:detail/>
</ns:return>
</ns:SetAppsResponse>
</soapenv:Body>
</soapenv:Envelope>
| Код | Описание ошибки |
|---|---|
447 |
Некорректное имя приложения |
Запрос
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:nbi="http://nbi.radius.eltex.org" xmlns:xsd="http://apps.pcrf.response.object.nbi.radius.eltex.org/xsd">
<soapenv:Header/>
<soapenv:Body>
<nbi:SetApps>
<nbi:name>myapps</nbi:name>
<nbi:domain>root</nbi:domain>
<nbi:appsList>
<xsd:apps>unknownApp1</xsd:apps>
<xsd:apps>facebook</xsd:apps>
<xsd:apps>unknownApp2</xsd:apps>
</nbi:appsList>
</nbi:SetApps>
</soapenv:Body>
</soapenv:Envelope>
Ответ
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ns:SetAppsResponse xmlns:ns="http://nbi.radius.eltex.org">
<ns:return xsi:type="ax21:NbiResponse" xmlns:ax219="http://statistics.object.nbi.radius.eltex.org/xsd" xmlns:ax216="http://statistic.response.object.nbi.radius.eltex.org/xsd" xmlns:ax227="http://apList.response.object.nbi.radius.eltex.org/xsd" xmlns:ax239="http://shaper.pcrf.response.object.nbi.radius.eltex.org/xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ax236="http://service.pcrf.response.object.nbi.radius.eltex.org/xsd" xmlns:ax258="http://service.response.object.nbi.radius.eltex.org/xsd" xmlns:ax28="http://request.object.nbi.radius.eltex.org/xsd" xmlns:ax248="http://userLists.pcrf.response.object.nbi.radius.eltex.org/xsd" xmlns:ax245="http://urlFilters.pcrf.response.object.nbi.radius.eltex.org/xsd" xmlns:ax213="http://authService.object.nbi.radius.eltex.org/xsd" xmlns:ax224="http://sorm3.response.object.nbi.radius.eltex.org/xsd" xmlns:ax221="http://ssidstats.response.object.nbi.radius.eltex.org/xsd" xmlns:ax211="http://tariff.object.nbi.radius.eltex.org/xsd" xmlns:ax23="http://object.nbi.radius.eltex.org/xsd" xmlns:ax233="http://locationHistory.response.object.nbi.radius.eltex.org/xsd" xmlns:ax255="http://apps.pcrf.response.object.nbi.radius.eltex.org/xsd" xmlns:ax230="http://domains.response.object.nbi.radius.eltex.org/xsd" xmlns:ax252="http://sorm2.response.object.nbi.radius.eltex.org/xsd" xmlns:ax242="http://subnets.pcrf.response.object.nbi.radius.eltex.org/xsd" xmlns:ax25="http://radiusUser.response.object.nbi.radius.eltex.org/xsd" xmlns:ax21="http://response.object.nbi.radius.eltex.org/xsd">
<ax21:code>447</ax21:code>
<ax21:detail>unknownApp1,unknownApp2</ax21:detail>
</ns:return>
</ns:SetAppsResponse>
</soapenv:Body>
</soapenv:Envelope>
См. также
Вернуться к списку команд
Версия 1.19-62
Дата публикации 16-04-2021 12:11:48