Дерево страниц
Перейти к концу метаданных
Переход к началу метаданных

Команда просмотра списков, в которых состоит текущий оператор.

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

POST

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

http://host:port/<DOMAIN>/service/cc/arm/group_list

Коды ответов:

200 — Ошибки передаются в теле ответа

Ошибки, передаваемые в теле ответа:

  • cannot_perform_cmd

XSD-схема XML-запроса/ответа:

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">

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

    <xs:complexType name="Group">
        <xs:attribute name="name"/>
    </xs:complexType>

    <!-- responseType -->
    <xs:complexType name="GroupList">
        <xs:sequence>
            <xs:element name="group" type="Group" minOccurs="0" maxOccurs="unbounded"/>
        </xs:sequence>
    </xs:complexType>

    <!-- in -->
    <xs:element name="in">
        <xs:complexType>
            <xs:all>
                <xs:element name="request"/>
            </xs:all>
        </xs:complexType>
    </xs:element>
    <!-- out -->
    <xs:element name="out">
        <xs:complexType>
            <xs:choice>
                <xs:element name="response">
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element name="group_list" type="GroupList"/>
                        </xs:sequence>
                    </xs:complexType>
                </xs:element>
                <xs:element name="error" type="errorType"/>
            </xs:choice>
        </xs:complexType>
    </xs:element>
</xs:schema>

Пример использует технологию websocket

Пример:
Запрос:

0100000000970005group_list
[
  {
    "_name": "in",
    "_content": [
      {
        "_name": "request"
      }
    ]
  }
]                     

Код ответа:

200

Ответ:

0100000002890005200
[
  {
    "_name": "out",
    "_attributes": {
      "xmlns:xs": "http://www.w3.org/2001/XMLSchema-instance",
      "xs:noNamespaceSchemaLocation": "group_list.xsd"
    },
    "_content": [
      {
        "_name": "response",
        "_content": [
          {
            "_name": "group_list",
            "_content": [
              {
                "_name": "group",
                "_attributes": {
                  "name": "default"
                }
              }
            ]
          }
        ]
      }
    ]
  }
]




  • Нет меток
Написать комментарий...