Дерево страниц

Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

Оглавление

Hc_ alias_profile_list

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

...

Блок кода
<?xml version="1.0"?>
<out
    xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="alias_profile_list.xsd">
    <profiles>
        <profile domain="biysk.local" name="pr_office" description="for back-office">
            <properties/>
        </profile>
        <profile domain="biysk.local" name="user_default" description="Default user profile">
            <properties/>
        </profile>
    </profiles>
</out>

Hc_ alias_profile_declare

Команда создает новый профиль алиаса. Если не получается создать профиль, возвращает ошибку.

...

Блок кода
<?xml version="1.0" encoding="UTF-8"?>
<out
    xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="common_error.xsd">
    <error cmd="alias_profile_declare" reason="error" body="{error,"Declare profile error: {already_exists,{\"biysk.local\",\"front-office\"}}"}"/>
</out>

Hc_ alias_profile_remove

Команда удаляет профили алиасов из определенного домена.

...

Блок кода
<?xml version="1.0" encoding="UTF-8"?>
<in
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="alias_profile_remove.xsd">
    <request storage="ds1">
        <profiles>
            <profile name="pr_office" domain="biysk.local">
                <properties/>
            </profile>
            <profile name="test_profile2" domain="biysk.local">
                <properties/>
            </profile>
        </profiles>
    </request>
</in>

Ответ:

204

Hc_ alias_profile_info

Команда получает список свойств профиля алиаса.

...

Блок кода
<?xml version="1.0"?>
<out
    xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="alias_profile_info.xsd">
    <profiles>
        <profile domain="biysk.local" name="user_default" description="">
            <properties>
                <property name="category" type="profile" value="10"/>
            </properties>
        </profile>
    </profiles>
</out>

Hc_alias_profile_set

Команда изменяет имеющиеся/добавляет новые свойства профиля алиаса.

...

Блок кода
<?xml version="1.0" encoding="UTF-8"?>
<in
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="alias_profile_set.xsd">
    <request domain="biysk.local" profile_name="front-office">
        <properties>
            <property name="category" type="profile" value="testCall"/>
            <property name="provider" type="profile" value="6"/>
        </properties>
    </request>
</in>

Ответ:

201

Hc_alias_profile_clean

Команда удаляет определенные свойства (если они указаны) профиля или все свойства профиля.

...