tc_members_list

Команда предназначена для просмотра списков всех участников и ведущих в домене сервиса селекторной связи (Teleconference).

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

domain/<DOMAIN>/tc/member/list

Метод HTTP-запроса:

POST

Шаблон HTTP-запроса:

http://server:9999/commands/tc_members_list

Код 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">
    <!-- Types -->
    <xs:simpleType name="respMemberType">
        <xs:restriction base="xs:string">
            <xs:enumeration value="member"/>
            <xs:enumeration value="master"/>
        </xs:restriction>
    </xs:simpleType>

          
    <xs:simpleType name="reqMemberType">
        <xs:restriction base="xs:string">
            <xs:enumeration value="members"/>
            <xs:enumeration value="masters"/>
            <xs:enumeration value="all"/>
        </xs:restriction>
    </xs:simpleType>

          
    <xs:complexType name="requestType">
        <xs:attribute name="domain" type="xs:string" use="required"/>
        <xs:attribute name="type" type="reqMemberType" use="optional"/>
    </xs:complexType>

          
    <xs:complexType name="responseType">
        <xs:sequence>
            <xs:element name="member" minOccurs="0" maxOccurs="unbounded">
                <xs:complexType>
                    <xs:attribute name="name" type="xs:string" use="required"/>
                    <xs:attribute name="type" type="respMemberType" use="required"/>
                </xs:complexType>
            </xs:element>
        </xs:sequence>
    </xs:complexType>

          
    <!-- in -->
    <xs:element name="in">
        <xs:complexType>
            <xs:all>
                <xs:element name="request" type="requestType"/>
            </xs:all>
        </xs:complexType>
    </xs:element>

          
    <!-- out -->
    <xs:element name="out">
        <xs:complexType>
            <xs:all>
                <xs:element name="response" type="responseType"/>
            </xs:all>
        </xs:complexType>
    </xs:element>
</xs:schema>
CODE

Пример

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

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

Ответ:

<?xml version="1.0"?>
<out
	xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="hc_tc_members_list.xsd">
	<response>
		<member name="240101" type="potential_master"/>
		<member name="240466" type="potential_master"/>
		<member name="240467" type="potential_master"/>
		<member name="240473" type="potential_master"/>
	</response>
</out>
CODE