Команда позволяет получить список интеграций определенного агента КЦ.
<?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
Ответ:
200
Пример xml с ответом:
<?xml version="1.0"?>
<out xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="integration_list.xsd">
<response>
<integrations>
<redmine>
<login value="123456789"/>
<password value="4444"/>
</redmine>
<confluence>
<access_key value="cghsdghoqwhregq3h401328thg3"/>
</confluence>
</integrations>
</response>
</out>
XML