CreateTariff – Создание тарифного плана
Общая информация
-
Команда актуальна, начиная с версии 1.5
Входные параметры
| Параметр | Значение | Формат значения | Расшифровка формата | Ссылка |
|---|---|---|---|---|
nаme |
Имя тарифного плана |
^.\{1,64}$ |
Текст до 64-х символов. |
|
code |
Уникальный код тарифного плана |
[a-zA-Z0-9]\{1,64} |
Текст латинскими буквами и цифрами до 64-х символов. |
|
domain |
Домен тарифного плана. Пара имя и домен является уникальной. |
(?=^.{1,235}$)(^((?!-|_|.*(__|--).*)[a-zA-Z0-9_\-]{1,63}\.)*((?!-|_|.*(__|--).*)[a-zA-Z0-9_\-]{1,63})$) |
Текст длиной до 235 символов, удовлетворяющий правилам FQDN |
Domain |
descr |
Краткое описание тарифного плана. Может отсутствовать. |
.\{0,255} |
Текст длиной до 255 символов |
|
attribute |
Атрибуты тарифного плана, ожидается один или больше объект NbiAttr. |
Выходные параметры
| Параметр | Значение | Формат значения |
|---|---|---|
code |
Код ответа |
Целое неотрицательное число. |
detail |
Пояснение к ответу |
Текст. |
Примеры команд и кодов
| Код | Описание ошибки |
|---|---|
101 |
Некорректный код тарифного плана |
Запрос
<soap:Envelope
xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
xmlns:nbi="http://nbi.radius.eltex.org"
xmlns:xsd="http://response.object.nbi.radius.eltex.org/xsd">
<soap:Header/>
<soap:Body>
<nbi:CreateTariff>
<nbi:name>1</nbi:name>
<nbi:code></nbi:code>
<nbi:domain></nbi:domain>
<nbi:descr></nbi:descr>
</nbi:CreateTariff>
</soap:Body>
</soap:Envelope>
Ответ
<soapenv:Envelope
xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Body>
<ns:CreateTariffResponse
xmlns:ns="http://nbi.radius.eltex.org">
<ns:return xsi:type="ax21:NbiResponse"
xmlns:ax27="http://authService.object.nbi.radius.eltex.org/xsd"
xmlns:ax210="http://ssidstats.response.object.nbi.radius.eltex.org/xsd"
xmlns:ax23="http://object.nbi.radius.eltex.org/xsd"
xmlns:ax25="http://request.object.nbi.radius.eltex.org/xsd"
xmlns:ax21="http://response.object.nbi.radius.eltex.org/xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ax21:code>101</ax21:code>
<ax21:detail>Illegal tariff code</ax21:detail>
</ns:return>
</ns:CreateTariffResponse>
</soapenv:Body>
</soapenv:Envelope>
| Код | Описание ошибки |
|---|---|
255 |
Некорректное имя тарифного плана |
Запрос
<soap:Envelope
xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
xmlns:nbi="http://nbi.radius.eltex.org"
xmlns:xsd="http://response.object.nbi.radius.eltex.org/xsd">
<soap:Header/>
<soap:Body>
<nbi:CreateTariff>
<nbi:name></nbi:name>
<nbi:code>test</nbi:code>
<nbi:domain></nbi:domain>
<nbi:descr></nbi:descr>
</nbi:CreateTariff>
</soap:Body>
</soap:Envelope>
Ответ
<soapenv:Envelope
xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Body>
<ns:CreateTariffResponse
xmlns:ns="http://nbi.radius.eltex.org">
<ns:return xsi:type="ax21:NbiResponse"
xmlns:ax27="http://authService.object.nbi.radius.eltex.org/xsd"
xmlns:ax210="http://ssidstats.response.object.nbi.radius.eltex.org/xsd"
xmlns:ax23="http://request.object.nbi.radius.eltex.org/xsd"
xmlns:ax25="http://object.nbi.radius.eltex.org/xsd"
xmlns:ax21="http://response.object.nbi.radius.eltex.org/xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ax21:code>255</ax21:code>
<ax21:detail>Incorrect tariff name: ''</ax21:detail>
</ns:return>
</ns:CreateTariffResponse>
</soapenv:Body>
</soapenv:Envelope>
| Код | Описание ошибки |
|---|---|
8 |
Некорректный домен тарифного плана |
Запрос
<soap:Envelope
xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
xmlns:nbi="http://nbi.radius.eltex.org"
xmlns:xsd="http://response.object.nbi.radius.eltex.org/xsd">
<soap:Header/>
<soap:Body>
<nbi:CreateTariff>
<nbi:name>Test tariff</nbi:name>
<nbi:code>test</nbi:code>
<nbi:domain></nbi:domain>
<nbi:descr></nbi:descr>
</nbi:CreateTariff>
</soap:Body>
</soap:Envelope>
Ответ
<soapenv:Envelope
xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Body>
<ns:CreateTariffResponse
xmlns:ns="http://nbi.radius.eltex.org">
<ns:return xsi:type="ax21:NbiResponse"
xmlns:ax27="http://authService.object.nbi.radius.eltex.org/xsd"
xmlns:ax210="http://ssidstats.response.object.nbi.radius.eltex.org/xsd"
xmlns:ax23="http://request.object.nbi.radius.eltex.org/xsd"
xmlns:ax25="http://object.nbi.radius.eltex.org/xsd"
xmlns:ax21="http://response.object.nbi.radius.eltex.org/xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ax21:code>8</ax21:code>
<ax21:detail>Domain '' does not conform to the rules FQDN</ax21:detail>
</ns:return>
</ns:CreateTariffResponse>
</soapenv:Body>
</soapenv:Envelope>
| Код | Описание ошибки |
|---|---|
257 |
Не задан обязательный атрибут тарифного плана |
Запрос
<soap:Envelope
xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
xmlns:nbi="http://nbi.radius.eltex.org"
xmlns:xsd="http://response.object.nbi.radius.eltex.org/xsd">
<soap:Header/>
<soap:Body>
<nbi:CreateTariff>
<nbi:name>Test tariff</nbi:name>
<nbi:code>test</nbi:code>
<nbi:domain>root</nbi:domain>
<nbi:descr></nbi:descr>
</nbi:CreateTariff>
</soap:Body>
</soap:Envelope>
Ответ
<soapenv:Envelope
xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Body>
<ns:CreateTariffResponse
xmlns:ns="http://nbi.radius.eltex.org">
<ns:return xsi:type="ax21:NbiResponse"
xmlns:ax27="http://authService.object.nbi.radius.eltex.org/xsd"
xmlns:ax210="http://ssidstats.response.object.nbi.radius.eltex.org/xsd"
xmlns:ax23="http://request.object.nbi.radius.eltex.org/xsd"
xmlns:ax25="http://object.nbi.radius.eltex.org/xsd"
xmlns:ax21="http://response.object.nbi.radius.eltex.org/xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ax21:code>257</ax21:code>
<ax21:detail>No mandatory attribute 'Eltex-Tariff-Portal-Only'</ax21:detail>
</ns:return>
</ns:CreateTariffResponse>
</soapenv:Body>
</soapenv:Envelope>
| Код | Описание ошибки |
|---|---|
251 |
Некорректный оператор для атрибута |
Запрос
<soap:Envelope
xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
xmlns:nbi="http://nbi.radius.eltex.org"
xmlns:xsd="http://response.object.nbi.radius.eltex.org/xsd">
<soap:Header/>
<soap:Body>
<nbi:CreateTariff>
<nbi:name>Test tariff</nbi:name>
<nbi:code>test</nbi:code>
<nbi:domain>root</nbi:domain>
<nbi:descr></nbi:descr>
<nbi:attribute>
<xsd:name>Eltex-Tariff-Portal-Only</xsd:name>
<xsd:oper>!=</xsd:oper>
<xsd:value>false</xsd:value>
</nbi:attribute>
</nbi:CreateTariff>
</soap:Body>
</soap:Envelope>
Ответ
<soapenv:Envelope
xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Body>
<ns:CreateTariffResponse
xmlns:ns="http://nbi.radius.eltex.org">
<ns:return xsi:type="ax21:NbiResponse"
xmlns:ax27="http://authService.object.nbi.radius.eltex.org/xsd"
xmlns:ax210="http://ssidstats.response.object.nbi.radius.eltex.org/xsd"
xmlns:ax23="http://request.object.nbi.radius.eltex.org/xsd"
xmlns:ax25="http://object.nbi.radius.eltex.org/xsd"
xmlns:ax21="http://response.object.nbi.radius.eltex.org/xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ax21:code>251</ax21:code>
<ax21:detail>No such operator '!=' for tariff attr 'Eltex-Tariff-Portal-Only'</ax21:detail>
</ns:return>
</ns:CreateTariffResponse>
</soapenv:Body>
</soapenv:Envelope>
| Код | Описание ошибки |
|---|---|
25 |
Оператор не существует |
Запрос
<soap:Envelope
xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
xmlns:nbi="http://nbi.radius.eltex.org"
xmlns:xsd="http://response.object.nbi.radius.eltex.org/xsd">
<soap:Header/>
<soap:Body>
<nbi:CreateTariff>
<nbi:name>Test tariff</nbi:name>
<nbi:code>test</nbi:code>
<nbi:domain>root</nbi:domain>
<nbi:descr></nbi:descr>
<nbi:attribute>
<xsd:name>Eltex-Tariff-Portal-Only</xsd:name>
<xsd:oper>=!=</xsd:oper>
<xsd:value>false</xsd:value>
</nbi:attribute>
</nbi:CreateTariff>
</soap:Body>
</soap:Envelope>
Ответ
<soapenv:Envelope
xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Body>
<ns:CreateTariffResponse
xmlns:ns="http://nbi.radius.eltex.org">
<ns:return xsi:type="ax21:NbiResponse"
xmlns:ax27="http://authService.object.nbi.radius.eltex.org/xsd"
xmlns:ax210="http://ssidstats.response.object.nbi.radius.eltex.org/xsd"
xmlns:ax23="http://request.object.nbi.radius.eltex.org/xsd"
xmlns:ax25="http://object.nbi.radius.eltex.org/xsd"
xmlns:ax21="http://response.object.nbi.radius.eltex.org/xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ax21:code>25</ax21:code>
<ax21:detail>No such RADIUS operator '=!='</ax21:detail>
</ns:return>
</ns:CreateTariffResponse>
</soapenv:Body>
</soapenv:Envelope>
| Код | Описание ошибки |
|---|---|
252 |
Некорректное значение для атрибута |
Запрос
<soap:Envelope
xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
xmlns:nbi="http://nbi.radius.eltex.org"
xmlns:xsd="http://response.object.nbi.radius.eltex.org/xsd">
<soap:Header/>
<soap:Body>
<nbi:CreateTariff>
<nbi:name>Test tariff</nbi:name>
<nbi:code>test</nbi:code>
<nbi:domain>root</nbi:domain>
<nbi:descr></nbi:descr>
<nbi:attribute>
<xsd:name>Eltex-Tariff-Portal-Only</xsd:name>
<xsd:oper>=</xsd:oper>
<xsd:value>f</xsd:value>
</nbi:attribute>
</nbi:CreateTariff>
</soap:Body>
</soap:Envelope>
Ответ
<soapenv:Envelope
xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Body>
<ns:CreateTariffResponse
xmlns:ns="http://nbi.radius.eltex.org">
<ns:return xsi:type="ax21:NbiResponse"
xmlns:ax27="http://authService.object.nbi.radius.eltex.org/xsd"
xmlns:ax210="http://ssidstats.response.object.nbi.radius.eltex.org/xsd"
xmlns:ax23="http://request.object.nbi.radius.eltex.org/xsd"
xmlns:ax25="http://object.nbi.radius.eltex.org/xsd"
xmlns:ax21="http://response.object.nbi.radius.eltex.org/xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ax21:code>252</ax21:code>
<ax21:detail>Incorrect value 'f' for tariff attr 'Eltex-Tariff-Portal-Only'</ax21:detail>
</ns:return>
</ns:CreateTariffResponse>
</soapenv:Body>
</soapenv:Envelope>
| Код | Описание ошибки |
|---|---|
121 |
Для тарифного плана не задан сценарий (не указан атрибут Eltex-State-On-${1}) |
Запрос
<soap:Envelope
xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
xmlns:nbi="http://nbi.radius.eltex.org"
xmlns:xsd="http://response.object.nbi.radius.eltex.org/xsd">
<soap:Header/>
<soap:Body>
<nbi:CreateTariff>
<nbi:name>Test tariff</nbi:name>
<nbi:code>test</nbi:code>
<nbi:domain>root</nbi:domain>
<nbi:descr></nbi:descr>
<nbi:attribute>
<xsd:name>Eltex-Tariff-Portal-Only</xsd:name>
<xsd:oper>=</xsd:oper>
<xsd:value>true</xsd:value>
</nbi:attribute>
</nbi:CreateTariff>
</soap:Body>
</soap:Envelope>
Ответ
<soapenv:Envelope
xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Body>
<ns:CreateTariffResponse
xmlns:ns="http://nbi.radius.eltex.org">
<ns:return xsi:type="ax21:NbiResponse"
xmlns:ax27="http://authService.object.nbi.radius.eltex.org/xsd"
xmlns:ax210="http://ssidstats.response.object.nbi.radius.eltex.org/xsd"
xmlns:ax23="http://request.object.nbi.radius.eltex.org/xsd"
xmlns:ax25="http://object.nbi.radius.eltex.org/xsd"
xmlns:ax21="http://response.object.nbi.radius.eltex.org/xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ax21:code>121</ax21:code>
<ax21:detail>Tariff with code 'test' has no scenario with index 1</ax21:detail>
</ns:return>
</ns:CreateTariffResponse>
</soapenv:Body>
</soapenv:Envelope>
| Код | Описание ошибки |
|---|---|
258 |
Некорректное имя атрибута |
Запрос
<soap:Envelope
xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
xmlns:nbi="http://nbi.radius.eltex.org"
xmlns:xsd="http://response.object.nbi.radius.eltex.org/xsd">
<soap:Header/>
<soap:Body>
<nbi:CreateTariff>
<nbi:name>Test tariff</nbi:name>
<nbi:code>test</nbi:code>
<nbi:domain>root</nbi:domain>
<nbi:descr></nbi:descr>
<nbi:attribute>
<xsd:name>Eltex-Tariff-Portal-Only</xsd:name>
<xsd:oper>=</xsd:oper>
<xsd:value>true</xsd:value>
</nbi:attribute>
<nbi:attribute>
<xsd:name>Eltex-States-On-1</xsd:name>
<xsd:oper>=</xsd:oper>
<xsd:value>true</xsd:value>
</nbi:attribute>
</nbi:CreateTariff>
</soap:Body>
</soap:Envelope>
Ответ
<soapenv:Envelope
xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Body>
<ns:CreateTariffResponse
xmlns:ns="http://nbi.radius.eltex.org">
<ns:return xsi:type="ax21:NbiResponse"
xmlns:ax27="http://authService.object.nbi.radius.eltex.org/xsd"
xmlns:ax210="http://ssidstats.response.object.nbi.radius.eltex.org/xsd"
xmlns:ax23="http://request.object.nbi.radius.eltex.org/xsd"
xmlns:ax25="http://object.nbi.radius.eltex.org/xsd"
xmlns:ax21="http://response.object.nbi.radius.eltex.org/xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ax21:code>258</ax21:code>
<ax21:detail>Incorrect tariff attribute name 'Eltex-States-On-1'</ax21:detail>
</ns:return>
</ns:CreateTariffResponse>
</soapenv:Body>
</soapenv:Envelope>
| Код | Описание ошибки |
|---|---|
253 |
Не задан атрибут сценария, завершающий его (Eltex-State-External-Url-${1}, Eltex-State-Session-Timeout-${1}, Eltex-State-Traffic-Limit-${1} или Eltex-State-Work-Time-Limit-${1}) |
Запрос
<soap:Envelope
xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
xmlns:nbi="http://nbi.radius.eltex.org"
xmlns:xsd="http://response.object.nbi.radius.eltex.org/xsd">
<soap:Header/>
<soap:Body>
<nbi:CreateTariff>
<nbi:name>Test tariff</nbi:name>
<nbi:code>test</nbi:code>
<nbi:domain>root</nbi:domain>
<nbi:descr></nbi:descr>
<nbi:attribute>
<xsd:name>Eltex-Tariff-Portal-Only</xsd:name>
<xsd:oper>=</xsd:oper>
<xsd:value>true</xsd:value>
</nbi:attribute>
<nbi:attribute>
<xsd:name>Eltex-State-On-1</xsd:name>
<xsd:oper>=</xsd:oper>
<xsd:value>true</xsd:value>
</nbi:attribute>
<nbi:attribute>
<xsd:name>Eltex-State-On-2</xsd:name>
<xsd:oper>=</xsd:oper>
<xsd:value>true</xsd:value>
</nbi:attribute>
</nbi:CreateTariff>
</soap:Body>
</soap:Envelope>
Ответ
<soapenv:Envelope
xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Body>
<ns:CreateTariffResponse
xmlns:ns="http://nbi.radius.eltex.org">
<ns:return xsi:type="ax21:NbiResponse"
xmlns:ax27="http://authService.object.nbi.radius.eltex.org/xsd"
xmlns:ax210="http://ssidstats.response.object.nbi.radius.eltex.org/xsd"
xmlns:ax23="http://request.object.nbi.radius.eltex.org/xsd"
xmlns:ax25="http://object.nbi.radius.eltex.org/xsd"
xmlns:ax21="http://response.object.nbi.radius.eltex.org/xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ax21:code>253</ax21:code>
<ax21:detail>No end attribute for scenario 1</ax21:detail>
</ns:return>
</ns:CreateTariffResponse>
</soapenv:Body>
</soapenv:Envelope>
| Код | Описание ошибки |
|---|---|
254 |
Для сценария установлен страт сессии перед редиректом, но не задан URL-адрес для редиректа |
Запрос
<soap:Envelope
xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
xmlns:nbi="http://nbi.radius.eltex.org"
xmlns:xsd="http://response.object.nbi.radius.eltex.org/xsd">
<soap:Header/>
<soap:Body>
<nbi:CreateTariff>
<nbi:name>Test tariff</nbi:name>
<nbi:code>test</nbi:code>
<nbi:domain>root</nbi:domain>
<nbi:descr></nbi:descr>
<nbi:attribute>
<xsd:name>Eltex-Tariff-Portal-Only</xsd:name>
<xsd:oper>=</xsd:oper>
<xsd:value>true</xsd:value>
</nbi:attribute>
<nbi:attribute>
<xsd:name>Eltex-State-On-1</xsd:name>
<xsd:oper>=</xsd:oper>
<xsd:value>true</xsd:value>
</nbi:attribute>
<nbi:attribute>
<xsd:name>Eltex-State-Start-Session-Before-Redirect-1</xsd:name>
<xsd:oper>=</xsd:oper>
<xsd:value>true</xsd:value>
</nbi:attribute>
<nbi:attribute>
<xsd:name>Eltex-State-Traffic-Limit-1</xsd:name>
<xsd:oper>=</xsd:oper>
<xsd:value>102400</xsd:value>
</nbi:attribute>
</nbi:CreateTariff>
</soap:Body>
</soap:Envelope>
Ответ
<soapenv:Envelope
xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Body>
<ns:CreateTariffResponse
xmlns:ns="http://nbi.radius.eltex.org">
<ns:return xsi:type="ax21:NbiResponse"
xmlns:ax27="http://authService.object.nbi.radius.eltex.org/xsd"
xmlns:ax210="http://ssidstats.response.object.nbi.radius.eltex.org/xsd"
xmlns:ax23="http://request.object.nbi.radius.eltex.org/xsd"
xmlns:ax25="http://object.nbi.radius.eltex.org/xsd"
xmlns:ax21="http://response.object.nbi.radius.eltex.org/xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ax21:code>254</ax21:code>
<ax21:detail>Incorrect start session before redirect in scenario 1</ax21:detail>
</ns:return>
</ns:CreateTariffResponse>
</soapenv:Body>
</soapenv:Envelope>
| Код | Описание ошибки |
|---|---|
245 |
Тарифный план с таким кодом уже существует |
Запрос
<soap:Envelope
xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
xmlns:nbi="http://nbi.radius.eltex.org"
xmlns:xsd="http://response.object.nbi.radius.eltex.org/xsd">
<soap:Header/>
<soap:Body>
<nbi:CreateTariff>
<nbi:name>Test tariff</nbi:name>
<nbi:code>test</nbi:code>
<nbi:domain>root</nbi:domain>
<nbi:descr></nbi:descr>
<nbi:attribute>
<xsd:name>Eltex-Tariff-Portal-Only</xsd:name>
<xsd:oper>=</xsd:oper>
<xsd:value>true</xsd:value>
</nbi:attribute>
<nbi:attribute>
<xsd:name>Eltex-State-On-1</xsd:name>
<xsd:oper>=</xsd:oper>
<xsd:value>true</xsd:value>
</nbi:attribute>
<nbi:attribute>
<xsd:name>Eltex-State-Traffic-Limit-1</xsd:name>
<xsd:oper>=</xsd:oper>
<xsd:value>102400</xsd:value>
</nbi:attribute>
<nbi:attribute>
<xsd:name>Eltex-State-On-2</xsd:name>
<xsd:oper>=</xsd:oper>
<xsd:value>true</xsd:value>
</nbi:attribute>
<nbi:attribute>
<xsd:name>Eltex-State-Start-Session-Before-Redirect-2</xsd:name>
<xsd:oper>=</xsd:oper>
<xsd:value>true</xsd:value>
</nbi:attribute>
<nbi:attribute>
<xsd:name>Eltex-State-External-Url-2</xsd:name>
<xsd:oper>=</xsd:oper>
<xsd:value>http://google.com/</xsd:value>
</nbi:attribute>
<nbi:attribute>
<xsd:name>Eltex-State-Permitted-Ip1-2</xsd:name>
<xsd:oper>=</xsd:oper>
<xsd:value>192.168.26.0/24</xsd:value>
</nbi:attribute>
<nbi:attribute>
<xsd:name>Eltex-State-Permitted-Ip2-2</xsd:name>
<xsd:oper>=</xsd:oper>
<xsd:value>eltex.nsk.ru</xsd:value>
</nbi:attribute>
</nbi:CreateTariff>
</soap:Body>
</soap:Envelope>
Ответ
<soapenv:Envelope
xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Body>
<ns:CreateTariffResponse
xmlns:ns="http://nbi.radius.eltex.org">
<ns:return xsi:type="ax21:NbiResponse"
xmlns:ax27="http://authService.object.nbi.radius.eltex.org/xsd"
xmlns:ax210="http://ssidstats.response.object.nbi.radius.eltex.org/xsd"
xmlns:ax23="http://request.object.nbi.radius.eltex.org/xsd"
xmlns:ax25="http://object.nbi.radius.eltex.org/xsd"
xmlns:ax21="http://response.object.nbi.radius.eltex.org/xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ax21:code>245</ax21:code>
<ax21:detail>Tariff code 'test' already exists</ax21:detail>
</ns:return>
</ns:CreateTariffResponse>
</soapenv:Body>
</soapenv:Envelope>
| Код | Описание ошибки |
|---|---|
62 |
Домен не зарегистрирован |
Запрос
<soap:Envelope
xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
xmlns:nbi="http://nbi.radius.eltex.org"
xmlns:xsd="http://response.object.nbi.radius.eltex.org/xsd">
<soap:Header/>
<soap:Body>
<nbi:CreateTariff>
<nbi:name>Test tariff</nbi:name>
<nbi:code>test</nbi:code>
<nbi:domain>ro</nbi:domain>
<nbi:descr></nbi:descr>
</nbi:CreateTariff>
</soap:Body>
</soap:Envelope>
Ответ
<soapenv:Envelope
xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Body>
<ns:CreateTariffResponse
xmlns:ns="http://nbi.radius.eltex.org">
<ns:return xsi:type="ax21:NbiResponse"
xmlns:ax27="http://authService.object.nbi.radius.eltex.org/xsd"
xmlns:ax210="http://ssidstats.response.object.nbi.radius.eltex.org/xsd"
xmlns:ax23="http://request.object.nbi.radius.eltex.org/xsd"
xmlns:ax25="http://object.nbi.radius.eltex.org/xsd"
xmlns:ax21="http://response.object.nbi.radius.eltex.org/xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ax21:code>62</ax21:code>
<ax21:detail>Such domain 'ro' is not registered in ELTEX_EMS.DOMAINS</ax21:detail>
</ns:return>
</ns:CreateTariffResponse>
</soapenv:Body>
</soapenv:Envelope>
| Код | Описание ошибки |
|---|---|
10 |
Пользователь не может создать тарифный план в данном домене |
Запрос
<soap:Envelope
xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
xmlns:nbi="http://nbi.radius.eltex.org"
xmlns:xsd="http://response.object.nbi.radius.eltex.org/xsd">
<soap:Header/>
<soap:Body>
<nbi:CreateTariff>
<nbi:name>Test tariff</nbi:name>
<nbi:code>test</nbi:code>
<nbi:domain>root</nbi:domain>
<nbi:descr></nbi:descr>
</nbi:CreateTariff>
</soap:Body>
</soap:Envelope>
Ответ
<soapenv:Envelope
xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Body>
<ns:CreateTariffResponse
xmlns:ns="http://nbi.radius.eltex.org">
<ns:return xsi:type="ax21:NbiResponse"
xmlns:ax27="http://authService.object.nbi.radius.eltex.org/xsd"
xmlns:ax210="http://ssidstats.response.object.nbi.radius.eltex.org/xsd"
xmlns:ax23="http://request.object.nbi.radius.eltex.org/xsd"
xmlns:ax25="http://object.nbi.radius.eltex.org/xsd"
xmlns:ax21="http://response.object.nbi.radius.eltex.org/xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ax21:code>10</ax21:code>
<ax21:detail>The role of the user does not have rights to this domain: 'root'. Role`s domains: 'enterprise.root'</ax21:detail>
</ns:return>
</ns:CreateTariffResponse>
</soapenv:Body>
</soapenv:Envelope>
| Код | Описание ошибки |
|---|---|
246 |
Тарифный план с таким именем уже существует в данном домене |
Запрос
<soap:Envelope
xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
xmlns:nbi="http://nbi.radius.eltex.org"
xmlns:xsd="http://response.object.nbi.radius.eltex.org/xsd">
<soap:Header/>
<soap:Body>
<nbi:CreateTariff>
<nbi:name>Test tariff</nbi:name>
<nbi:code>test1</nbi:code>
<nbi:domain>root</nbi:domain>
<nbi:descr></nbi:descr>
<nbi:attribute>
<xsd:name>Eltex-Tariff-Portal-Only</xsd:name>
<xsd:oper>=</xsd:oper>
<xsd:value>true</xsd:value>
</nbi:attribute>
<nbi:attribute>
<xsd:name>Eltex-State-On-1</xsd:name>
<xsd:oper>=</xsd:oper>
<xsd:value>true</xsd:value>
</nbi:attribute>
<nbi:attribute>
<xsd:name>Eltex-State-Traffic-Limit-1</xsd:name>
<xsd:oper>=</xsd:oper>
<xsd:value>102400</xsd:value>
</nbi:attribute>
<nbi:attribute>
<xsd:name>Eltex-State-On-2</xsd:name>
<xsd:oper>=</xsd:oper>
<xsd:value>true</xsd:value>
</nbi:attribute>
<nbi:attribute>
<xsd:name>Eltex-State-Start-Session-Before-Redirect-2</xsd:name>
<xsd:oper>=</xsd:oper>
<xsd:value>true</xsd:value>
</nbi:attribute>
<nbi:attribute>
<xsd:name>Eltex-State-External-Url-2</xsd:name>
<xsd:oper>=</xsd:oper>
<xsd:value>http://google.com/</xsd:value>
</nbi:attribute>
<nbi:attribute>
<xsd:name>Eltex-State-Permitted-Ip1-2</xsd:name>
<xsd:oper>=</xsd:oper>
<xsd:value>192.168.26.0/24</xsd:value>
</nbi:attribute>
<nbi:attribute>
<xsd:name>Eltex-State-Permitted-Ip2-2</xsd:name>
<xsd:oper>=</xsd:oper>
<xsd:value>eltex.nsk.ru</xsd:value>
</nbi:attribute>
</nbi:CreateTariff>
</soap:Body>
</soap:Envelope>
Ответ
<soapenv:Envelope
xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Body>
<ns:CreateTariffResponse
xmlns:ns="http://nbi.radius.eltex.org">
<ns:return xsi:type="ax21:NbiResponse"
xmlns:ax27="http://authService.object.nbi.radius.eltex.org/xsd"
xmlns:ax210="http://ssidstats.response.object.nbi.radius.eltex.org/xsd"
xmlns:ax23="http://request.object.nbi.radius.eltex.org/xsd"
xmlns:ax25="http://object.nbi.radius.eltex.org/xsd"
xmlns:ax21="http://response.object.nbi.radius.eltex.org/xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ax21:code>246</ax21:code>
<ax21:detail>Tariff with name 'Test tariff' and domain 'root' already exists</ax21:detail>
</ns:return>
</ns:CreateTariffResponse>
</soapenv:Body>
</soapenv:Envelope>
| Код | Описание ошибки |
|---|---|
0 |
Успешно |
Запрос
<soap:Envelope
xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
xmlns:nbi="http://nbi.radius.eltex.org"
xmlns:xsd="http://response.object.nbi.radius.eltex.org/xsd">
<soap:Header/>
<soap:Body>
<nbi:CreateTariff>
<nbi:name>Test tariff №2</nbi:name>
<nbi:code>test1</nbi:code>
<nbi:domain>root</nbi:domain>
<nbi:descr></nbi:descr>
<nbi:attribute>
<xsd:name>Eltex-Tariff-Portal-Only</xsd:name>
<xsd:oper>=</xsd:oper>
<xsd:value>true</xsd:value>
</nbi:attribute>
<nbi:attribute>
<xsd:name>Eltex-State-On-1</xsd:name>
<xsd:oper>=</xsd:oper>
<xsd:value>true</xsd:value>
</nbi:attribute>
<nbi:attribute>
<xsd:name>Eltex-State-Traffic-Limit-1</xsd:name>
<xsd:oper>=</xsd:oper>
<xsd:value>102400</xsd:value>
</nbi:attribute>
<nbi:attribute>
<xsd:name>Eltex-State-On-2</xsd:name>
<xsd:oper>=</xsd:oper>
<xsd:value>true</xsd:value>
</nbi:attribute>
<nbi:attribute>
<xsd:name>Eltex-State-Start-Session-Before-Redirect-2</xsd:name>
<xsd:oper>=</xsd:oper>
<xsd:value>true</xsd:value>
</nbi:attribute>
<nbi:attribute>
<xsd:name>Eltex-State-External-Url-2</xsd:name>
<xsd:oper>=</xsd:oper>
<xsd:value>http://google.com/</xsd:value>
</nbi:attribute>
<nbi:attribute>
<xsd:name>Eltex-State-Permitted-Ip1-2</xsd:name>
<xsd:oper>=</xsd:oper>
<xsd:value>192.168.26.0/24</xsd:value>
</nbi:attribute>
<nbi:attribute>
<xsd:name>Eltex-State-Permitted-Ip2-2</xsd:name>
<xsd:oper>=</xsd:oper>
<xsd:value>eltex.nsk.ru</xsd:value>
</nbi:attribute>
</nbi:CreateTariff>
</soap:Body>
</soap:Envelope>
Ответ
<soapenv:Envelope
xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Body>
<ns:CreateTariffResponse
xmlns:ns="http://nbi.radius.eltex.org">
<ns:return xsi:type="ax21:NbiResponse"
xmlns:ax27="http://authService.object.nbi.radius.eltex.org/xsd"
xmlns:ax210="http://ssidstats.response.object.nbi.radius.eltex.org/xsd"
xmlns:ax23="http://request.object.nbi.radius.eltex.org/xsd"
xmlns:ax25="http://object.nbi.radius.eltex.org/xsd"
xmlns:ax21="http://response.object.nbi.radius.eltex.org/xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ax21:code>0</ax21:code>
<ax21:detail/>
</ns:return>
</ns:CreateTariffResponse>
</soapenv:Body>
</soapenv:Envelope>
Прочие коды ответов
| Код | Описание ошибки |
|---|---|
132 |
Некорректное cron-выражение для атрибута |
Вернуться к списку команд
Версия 1.24-2769
Дата публикации 18-10-2022 03:26:05