aon_category_options_clean

Команда для сброса в значение по умолчанию таблицы мапинга категории АОН в категорию ОКС (для определенного АОН)

Аналог команды в CoCon:

domain/properties/aon/clean

Метод http запроса

POST

Шаблон http запроса

http://host:port/commands/aon_category_options_clean

Код http ответа:

200 – в случае успеха;
404 – в случае ошибки.

Xsd схема xml файла с ответом:

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
    <xs:annotation>
        <xs:documentation xml:lang="en">
            Clean AON category map.
            Usage: http://server:9999/commands/aon_category_options_clean.
            Implementation: hc_aon_category_options_clean.erl.
            Copyright (c) 2019, Eltex. All rights reserved.
        </xs:documentation>
    </xs:annotation>
    <xs:include schemaLocation="error.xsd"/>
    <xs:include schemaLocation="ecm_common.xsd"/>
    <!-- resultType-->
    <xs:complexType name="resultType">
        <xs:all>
            <xs:element name="domain_options" type="domainCleanOutType" minOccurs="1"/>
        </xs:all>
    </xs:complexType>
    <!-- in-->
    <xs:element name="in">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="request">
                    <xs:complexType>
                        <xs:all>
                            <xs:element name="domain_options" type="domainCleanInType"/>
                        </xs:all>
                    </xs:complexType>
                </xs:element>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
    <!-- out -->
    <xs:element name="out">
        <xs:complexType>
            <xs:choice>
                <xs:element name="result" type="resultType"/>
                <xs:element name="error" type="errorType"/>
            </xs:choice>
        </xs:complexType>
    </xs:element>
</xs:schema
CODE

Пример 1

Запрос: http://192.168.1.21:9999/commands/aon_category_options_clean

<?xml version="1.0" encoding="UTF-8"?>
<in xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="aon_category_options_clean.xsd">
    <request>
        <domain_options>
            <system>
                <option name="aon_0" />
            </system>
            <domain name="biysk.local">
                <option name="aon_0" />
            </domain>
        </domain_options>
    </request>
</in>
CODE

Ответ:

<?xml version="1.0"?>
<out
	xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="aon_category_options_clean.xsd">
	<result>
		<domain_options>
			<system>
				<success option="aon_0"/>
			</system>
			<domain name="biysk.local">
				<success option="aon_0"/>
			</domain>
		</domain_options>
	</result>
</out>
CODE

Пример 2

Запрос: http://192.168.1.21:9999/commands/aon_category_options_clean

<?xml version="1.0" encoding="UTF-8"?>
<in xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="aon_category_options_clean.xsd">
    <request>
        <domain_options>
            <system/>
            <domain name="biysk.local">
                <option name="aon_0" />
                <option name="aon_2" />
                <option name="aon_3" />
            </domain>
        </domain_options>
    </request>
</in>
CODE

Ответ:

<?xml version="1.0"?>
<out
	xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="aon_category_options_clean.xsd">
	<result>
		<domain_options>
			<system/>
			<domain name="biysk.local">
				<success option="aon_0"/>
				<success option="aon_2"/>
				<success option="aon_3"/>
			</domain>
		</domain_options>
	</result>
</out>
CODE

aon_category_options_info

Команда для просмотра таблицы перевода категории АОН в категорию ОКС, как на всей системе целиком, так и на определенном домене.

Аналог команды в CoCon:

domain/properties/aon/info

Метод http запроса

POST

Шаблон http запроса

http://host:port/commands/aon_category_options_info

Код http ответа:

200 – в случае успеха;
404 – в случае ошибки.

Xsd схема xml файла с ответом:

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
           attributeFormDefault="unqualified">
    <xs:annotation>
        <xs:documentation xml:lang="en">
            Show AON to Category map.
            Usage: http://server:9999/commands/aon_category_options_info.
            Implementation: hc_aon_category_options_info.erl.
            Copyright (c) 2019, Eltex. All rights reserved.
        </xs:documentation>
    </xs:annotation>

    <xs:include schemaLocation="error.xsd"/>
    <xs:include schemaLocation="ecm_common.xsd"/>

    <!-- Types -->
    <xs:simpleType name="aonCategoryMapType">
        <xs:annotation>
            <xs:documentation xml:lang="en">
                The list of categories joined by comma
                Example: 224, 225
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="xs:string"/>
    </xs:simpleType>

    <xs:complexType name="aonCategoryOptionsType">
        <xs:complexContent>
            <xs:extension base="baseOptionsType">
                <xs:attribute name="aon_0" type="aonCategoryMapType" use="optional"/>
                <xs:attribute name="aon_1" type="aonCategoryMapType" use="optional"/>
                <xs:attribute name="aon_2" type="aonCategoryMapType" use="optional"/>
                <xs:attribute name="aon_3" type="aonCategoryMapType" use="optional"/>
                <xs:attribute name="aon_4" type="aonCategoryMapType" use="optional"/>
                <xs:attribute name="aon_5" type="aonCategoryMapType" use="optional"/>
                <xs:attribute name="aon_6" type="aonCategoryMapType" use="optional"/>
                <xs:attribute name="aon_7" type="aonCategoryMapType" use="optional"/>
                <xs:attribute name="aon_8" type="aonCategoryMapType" use="optional"/>
                <xs:attribute name="aon_9" type="aonCategoryMapType" use="optional"/>
                <xs:attribute name="aon_10" type="aonCategoryMapType" use="optional"/>
            </xs:extension>
        </xs:complexContent>
    </xs:complexType>
    <!-- resultType-->
    <xs:complexType name="resultType">
        <xs:all>
            <xs:element name="domain_options" type="domainInfoOutType" minOccurs="1"/>
        </xs:all>
    </xs:complexType>
    <!-- in-->
    <xs:element name="in">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="request">
                    <xs:complexType>
                        <xs:all>
                            <xs:element name="domain_options" type="domainInfoInType" minOccurs="1"/>
                        </xs:all>
                    </xs:complexType>
                </xs:element>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
    <!-- out -->
    <xs:element name="out">
        <xs:complexType>
            <xs:choice>
                <xs:element name="result" type="resultType"/>
                <xs:element name="error" type="errorType"/>
            </xs:choice>
        </xs:complexType>
    </xs:element>
</xs:schema>
CODE

Пример 1

Запрос: http://192.168.1.21:9999/commands/aon_category_options_info

<?xml version="1.0"?>
<in xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="aon_category_options_info.xsd">
    <request>
        <domain_options domain="biysk.local"/>
    </request>
</in>
CODE

Ответ:

<?xml version="1.0"?>
<out
	xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="aon_category_options_info.xsd">
	<result>
		<domain_options>
			<system>
				<options xs:type="aonCategoryOptionsType"/>
			</system>
			<domain name="biysk.local">
				<options xs:type="aonCategoryOptionsType" aon_9="229" aon_8="12" aon_7="227,240" aon_6="15" aon_5="226" aon_4="11" aon_3="228" aon_2="225" aon_10="" aon_1="10" aon_0=""/>
			</domain>
		</domain_options>
	</result>
</out>
CODE

Пример 2

Запрос: http://192.168.1.21:9999/commands/aon_category_options_info

<?xml version="1.0"?>
<in xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="aon_category_options_info.xsd">
    <request>
        <domain_options/>
    </request>
</in>
CODE

Ответ:

<?xml version="1.0"?>
<out
	xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="aon_category_options_info.xsd">
	<result>
		<domain_options>
			<system>
				<options xs:type="aonCategoryOptionsType" aon_9="229" aon_8="12" aon_7="227,240" aon_6="15" aon_5="226" aon_4="11" aon_3="228" aon_2="225" aon_10="" aon_1="10" aon_0=""/>
			</system>
		</domain_options>
	</result>
</out>
CODE

aon_category_options_set

Команда для редактирования таблицы мапинга категории АОН в категорию ОКС, как на всей системе целиком, так и на определенном домене.

Аналог команды в CoCon:

domain/properties/aon/set

Метод http запроса

POST

Шаблон http запроса

http://host:port/commands/aon_category_options_set

Код http ответа:

200 – в случае успеха;
404 – в случае ошибки.

Xsd схема xml файла с ответом:

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
    <xs:annotation>
        <xs:documentation xml:lang="en">
            Set domain properties.
            Usage: http://server:9999/commands/domain_properties_set.
            Implementation: hc_domain_properties_set.erl.
            Git: git@git.eltex.loc:httpTerminal.git.
            Copyright (c) 2014, Eltex. All rights reserved.
        </xs:documentation>
    </xs:annotation>
    <xs:include schemaLocation="error.xsd"/>
    <xs:include schemaLocation="ecm_common.xsd"/>
    <!-- Types -->
    <xs:simpleType name="aonCategoryMapType">
        <xs:annotation>
            <xs:documentation xml:lang="en">
                The list of categories joined by comma
                Example: 224, 225
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="xs:string"/>
    </xs:simpleType>
    <!-- aonCategoryOptionsType -->
    <xs:complexType name="aonCategoryOptionsType">
        <xs:complexContent>
            <xs:extension base="baseOptionsType">
                <xs:attribute name="aon_0" type="aonCategoryMapType" use="optional"/>
                <xs:attribute name="aon_1" type="aonCategoryMapType" use="optional"/>
                <xs:attribute name="aon_2" type="aonCategoryMapType" use="optional"/>
                <xs:attribute name="aon_3" type="aonCategoryMapType" use="optional"/>
                <xs:attribute name="aon_4" type="aonCategoryMapType" use="optional"/>
                <xs:attribute name="aon_5" type="aonCategoryMapType" use="optional"/>
                <xs:attribute name="aon_6" type="aonCategoryMapType" use="optional"/>
                <xs:attribute name="aon_7" type="aonCategoryMapType" use="optional"/>
                <xs:attribute name="aon_8" type="aonCategoryMapType" use="optional"/>
                <xs:attribute name="aon_9" type="aonCategoryMapType" use="optional"/>
                <xs:attribute name="aon_10" type="aonCategoryMapType" use="optional"/>
            </xs:extension>
        </xs:complexContent>
    </xs:complexType>
    <!-- resultType-->
    <xs:complexType name="resultType">
        <xs:all>
            <xs:element name="domain_options" type="domainSetOutType" minOccurs="1"/>
        </xs:all>
    </xs:complexType>
    <!-- in-->
    <xs:element name="in">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="request">
                    <xs:complexType>
                        <xs:all>
                            <xs:element name="domain_options" type="domainSetInType"/>
                        </xs:all>
                    </xs:complexType>
                </xs:element>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
    <!-- out -->
    <xs:element name="out">
        <xs:complexType>
            <xs:choice>
                <xs:element name="result" type="resultType"/>
                <xs:element name="error" type="errorType"/>
            </xs:choice>
        </xs:complexType>
    </xs:element>
</xs:schema>
CODE

Пример

Запрос: http://192.168.1.21:9999/commands/aon_category_options_set

<?xml version="1.0" encoding="UTF-8"?>
<in xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="aon_category_options_set.xsd">
    <request>
        <domain_options>
            <system>
                <options xs:type="aonCategoryOptionsType" aon_0="1,2" />
            </system>
            <domain name="biysk.local">
                <options xs:type="aonCategoryOptionsType" aon_0="3, 4" aon_5="226,227" />
            </domain>
        </domain_options>
    </request>
</in>
CODE

Ответ:

<?xml version="1.0"?>
<out
	xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="aon_category_options_set.xsd">
	<result>
		<domain_options>
			<system>
				<success option="aon_0"/>
			</system>
			<domain name="biysk.local">
				<success option="aon_0"/>
				<success option="aon_5"/>
			</domain>
		</domain_options>
	</result>
</out>
CODE