Команда позволяет получить список интеграций определенного агента КЦ.

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

POST

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

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

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

200 

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

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">

    <xs:complexType name="Value">
        <xs:attribute name="value" type="xs:string" use="required"/>
    </xs:complexType>

    <xs:complexType name="RedmineIntegration">
        <xs:all>
            <xs:element name="login" type="Value" minOccurs="1" maxOccurs="1"/>
            <xs:element name="password" type="Value" minOccurs="1" maxOccurs="1"/>
        </xs:all>
    </xs:complexType>

    <xs:complexType name="ConfluenceIntegration">
        <xs:all>
            <xs:element name="api_key" type="Value" minOccurs="1" maxOccurs="1"/>
        </xs:all>
    </xs:complexType>

	<xs:complexType name="Integrations">
        <xs:sequence>
            <xs:element name="redmine" type="RedmineIntegration" minOccurs="0" maxOccurs="1"/>
            <xs:element name="confluence" type="ConfluenceIntegration" minOccurs="0" maxOccurs="1"/>
        </xs:sequence>
	</xs:complexType>

	<!-- in -->
	<xs:element name="in">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="request">
					<xs:complexType>
						<xs:all>
							<xs:element name="integration_list" minOccurs="1" maxOccurs="1"/>
						</xs:all>
					</xs:complexType>
				</xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<!-- out -->
	<xs:element name="out">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="response">
					<xs:complexType>
						<xs:all>
							<xs:element name="integrations" type="Integrations" minOccurs="1" maxOccurs="1"/>
						</xs:all>
					</xs:complexType>
				</xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
</xs:schema>
XML

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

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

0100000001390001integration_list
[
  {
    "_name": "in",
    "_content": [
      {
        "_name": "request",
        "_content": [
          {
            "_name": "integration_list"
          }
        ]
      }
    ]
  }
]                     
PY

Код ответа:

200

Ответ:

0100000002330001200
[
  {
    "_name": "out",
    "_attributes": {
      "xmlns:xs": "http://www.w3.org/2001/XMLSchema-instance",
      "xs:noNamespaceSchemaLocation": "integration_list.xsd"
    },
    "_content": [
      {
        "_name": "response",
        "_content": [
          {
            "_name": "integrations"
          }
        ]
      }
    ]
  }
]
PY