Hc_ss_package_list

Команда для просмотра мнформации об установленных пакетах услуг у абонента(ов)

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

domain/<DOMAIN>/ss/limit --show-aliases
cluster/storage/<DS_CLUSTER>/ss/limit --show-aliases

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

POST

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

http://host:port/commands/ss_package_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">
	<xs:include schemaLocation="error.xsd"/>

	<xs:complexType name="packageInfoType">
		<xs:attribute name="package_name" type="xs:string"/>
		<xs:attribute name="allocate_time" type="xs:integer"/>
		<xs:attribute name="is_active" type="xs:boolean"/>
		<xs:attribute name="is_priority" type="xs:boolean"/>
		<xs:attribute name="description" type="xs:string"/>
		<xs:attribute name="ss_list" type="xs:string"/>
	</xs:complexType>

	<xs:complexType name="warningType">
		<xs:attribute name="reason" type="xs:string" use="required"/>
	</xs:complexType>

	<xs:complexType name="aliasInfoType">
		<xs:choice>
			<xs:element name="package_info" type="packageInfoType" maxOccurs="unbounded" minOccurs="0"/>
			<xs:element name="warning" type="warningType" maxOccurs="unbounded" minOccurs="0"/>
		</xs:choice>
		<xs:attribute name="address" type="xs:string" use="required"/>
	</xs:complexType>

	<xs:complexType name="resultType">
		<xs:sequence maxOccurs="unbounded" minOccurs="0">
			<xs:element name="alias_info" type="aliasInfoType" maxOccurs="unbounded" minOccurs="0"/>
		</xs:sequence>
	</xs:complexType>

	<!-- in-->
	<xs:element name="in">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="request">
					<xs:complexType>
						<xs:attribute name="domain" type="xs:string"/>
						<xs:attribute name="addresses" type="xs:string"/>
					</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>
XML

Примеры

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

<in xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss_alias_package_list.xsd">
    <request domain="biysk.local" addresses="{240101,240464}"/>
</in>
CODE

Ответ: 200

<?xml version="1.0"?>
<out
	xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss_alias_package_list.xsd">
	<result>
		<alias_info address="240101">
			<package_info package_name="ECSS-ADV" is_active="true" is_priority="false" allocate_time="1588648026947207783" description="Дополнительные услуги" ss_list="blf,call_recording,chunt,clir,cliro,conference,fax_to_email,mcid,mgm,presence,ring_back_tone,voicemail"/>
		</alias_info>
		<alias_info address="240464">
			<package_info package_name="ECSS-ADV" is_active="true" is_priority="false" allocate_time="1588647997838303176" description="Дополнительные услуги" ss_list="blf,call_recording,chunt,clir,cliro,conference,fax_to_email,mcid,mgm,presence,ring_back_tone,voicemail"/>
			<package_info package_name="ECSS-BAS+" is_active="true" is_priority="false" allocate_time="1588652854940887353" description="Расширение базовых услуг" ss_list="acb,alarm,autoredial,callback,cgg,ctr,cw,direct_call,dnd,intervention,personal_ivr,rbp,rfc,sca,sco_black,sco_white,scr,voice_page,zone_page"/>
		</alias_info>
	</result>
</out>
CODE