RetrieveTariffWithBrasParams — Запрос атрибутов тарифного плана, включая атрибуты bras

Общая информация

  1. Команда актуальна, начиная с версии 1.5

Входные параметры
Параметр Значение Формат значения Расшифровка формата Ссылка

tariffCode

Код тарифного плана.

^.{1,64}$

Текст до 64-х символов.

Выходные параметры

Параметр Значение Формат значения

code

Код ответа

Целое неотрицательное число.

detail

Пояснение к ответу

Текст английскими буквами с пробелами и спецсимволами.

response

Объектов NbiSingleTariffWithBrasAttrs

Примеры команд и кодов

Код Описание ошибки

101

Код тарифного плана некорректен

Запрос
<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsd="http://nbi.radius.eltex.org">
    <soapenv:Header/>
    <soapenv:Body>
        <xsd:RetrieveTariffWithBrasParams>
            <xsd:tariffCode></xsd:tariffCode>
        </xsd:RetrieveTariffWithBrasParams>
    </soapenv:Body>
</soapenv:Envelope>
Ответ
<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
        <ns:RetrieveTariffWithBrasParamsResponse
            xmlns:ns="http://org.eltex.radius.nbi/xsd">
            <ns:return>
                <ns:code>101</ns:code>
                <ns:detail>Incorrect field 'tariffCode'</ns:detail>
                <ns:response>
                    <ns:createDate xsi:nil="true"
                        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
                        <ns:deactivated>false</ns:deactivated>
                        <ns:tariffCode/>
                        <ns:tariffDescr/>
                        <ns:tariffDomain/>
                        <ns:tariffName/>
                        <ns:users>0</ns:users>
                        <ns:check/>
                        <ns:groupcheck/>
                        <ns:groupreply/>
                        <ns:portal/>
                        <ns:reply/>
                    </ns:response>
                </ns:return>
            </ns:RetrieveTariffWithBrasParamsResponse>
        </soapenv:Body>
    </soapenv:Envelope>

Код Описание ошибки

100

Тарифного плана с таким кодом не существует

Запрос
<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsd="http://nbi.radius.eltex.org">
    <soapenv:Header/>
    <soapenv:Body>
        <xsd:RetrieveTariffWithBrasParams>
            <xsd:tariffCode>test</xsd:tariffCode>
        </xsd:RetrieveTariffWithBrasParams>
    </soapenv:Body>
</soapenv:Envelope>
Ответ
<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
        <ns:RetrieveTariffWithBrasParamsResponse
            xmlns:ns="http://org.eltex.radius.nbi/xsd">
            <ns:return>
                <ns:code>100</ns:code>
                <ns:detail>No Tariff with code 'test'</ns:detail>
                <ns:response>
                    <ns:createDate xsi:nil="true"
                        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
                        <ns:deactivated>false</ns:deactivated>
                        <ns:tariffCode/>
                        <ns:tariffDescr/>
                        <ns:tariffDomain/>
                        <ns:tariffName/>
                        <ns:users>0</ns:users>
                        <ns:check/>
                        <ns:groupcheck/>
                        <ns:groupreply/>
                        <ns:portal/>
                        <ns:reply/>
                    </ns:response>
                </ns:return>
            </ns:RetrieveTariffWithBrasParamsResponse>
        </soapenv:Body>
    </soapenv:Envelope>

Код Описание ошибки

10

Домен роли не имеет прав на домен тарифного плана

Запрос
<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsd="http://nbi.radius.eltex.org">
    <soapenv:Header/>
    <soapenv:Body>
        <xsd:RetrieveTariffWithBrasParams>
            <xsd:tariffCode>red</xsd:tariffCode>
        </xsd:RetrieveTariffWithBrasParams>
    </soapenv:Body>
</soapenv:Envelope>
Ответ
<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
        <ns:RetrieveTariffWithBrasParamsResponse
            xmlns:ns="http://org.eltex.radius.nbi/xsd">
            <ns:return>
                <ns:code>10</ns:code>
                <ns:detail>The role of the user does not have rights to tariff domain: 'enterprise.root'. Role`s domains: 'hotspot.root'</ns:detail>
                <ns:response>
                    <ns:createDate xsi:nil="true"
                        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
                        <ns:deactivated>false</ns:deactivated>
                        <ns:tariffCode/>
                        <ns:tariffDescr/>
                        <ns:tariffDomain/>
                        <ns:tariffName/>
                        <ns:users>0</ns:users>
                        <ns:check/>
                        <ns:groupcheck/>
                        <ns:groupreply/>
                        <ns:portal/>
                        <ns:reply/>
                    </ns:response>
                </ns:return>
            </ns:RetrieveTariffWithBrasParamsResponse>
        </soapenv:Body>
    </soapenv:Envelope>

Код Описание ошибки

0

Успешно

Запрос
<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsd="http://nbi.radius.eltex.org">
    <soapenv:Header/>
    <soapenv:Body>
        <xsd:RetrieveTariffWithBrasParams>
            <xsd:tariffCode>brastar</xsd:tariffCode>
        </xsd:RetrieveTariffWithBrasParams>
    </soapenv:Body>
</soapenv:Envelope>
Ответ
<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
        <ns:RetrieveTariffWithBrasParamsResponse
            xmlns:ns="http://org.eltex.radius.nbi/xsd">
            <ns:return>
                <ns:code>0</ns:code>
                <ns:detail/>
                <ns:response>
                    <ns:createDate>2016-08-09T14:46:56.000+06:00</ns:createDate>
                    <ns:deactivated>false</ns:deactivated>
                    <ns:tariffCode>brastar</ns:tariffCode>
                    <ns:tariffDescr>Брасовский тариф</ns:tariffDescr>
                    <ns:tariffDomain>root</ns:tariffDomain>
                    <ns:tariffName>Брасовский тариф</ns:tariffName>
                    <ns:users>0</ns:users>
                    <ns:check/>
                    <ns:groupcheck/>
                    <ns:groupreply>
                        <ns:attr>
                            <ns:name>Cisco-Account-Info</ns:name>
                            <ns:oper>+=</ns:oper>
                            <ns:value>Aserv1</ns:value>
                        </ns:attr>
                        <ns:attr>
                            <ns:name>Cisco-Account-Info</ns:name>
                            <ns:oper>+=</ns:oper>
                            <ns:value>Nserv2</ns:value>
                        </ns:attr>
                        <ns:attr>
                            <ns:name>Eltex-User-Create-Date</ns:name>
                            <ns:oper>=</ns:oper>
                            <ns:value>2016-08-09 14:46:56</ns:value>
                        </ns:attr>
                    </ns:groupreply>
                    <ns:portal>
                        <ns:attr>
                            <ns:name>Eltex-Tariff-Portal-Only</ns:name>
                            <ns:oper>=</ns:oper>
                            <ns:value>false</ns:value>
                        </ns:attr>
                    </ns:portal>
                    <ns:reply/>
                    <ns:bras>
                        <ns:attr>
                            <ns:name>Eltex-Tariff-Bras</ns:name>
                            <ns:oper>=</ns:oper>
                            <ns:value>true</ns:value>
                        </ns:attr>
                    </ns:bras>
                </ns:response>
            </ns:return>
        </ns:RetrieveTariffWithBrasParamsResponse>
    </soapenv:Body>
</soapenv:Envelope>

Вернуться к списку команд
Версия 1.23-2695
Дата публикации 02-09-2022 11:42:18