Request Samples

Changing settings of a single domain

The following request packet changes Log Rotation settings of domain example.com:

<packet version="1.5.0.0">
  <log-rotation>
    <set>
        <filter>
        <domain-name>example.com</domain-name>
        </filter>
        <settings>
          <log-condition>
            <log-bysize>2073741824</log-bysize>
          </log-condition>
          <log-max-num-files>1</log-max-num-files>
          <log-compress>true</log-compress>
        </settings>
    </set>
  </log-rotation>
</packet>

 

Changing settings of multiple domains

The following request packet changes Log Rotation settings of domains used by the clients with ID 5 and ID 8:

<packet version="1.5.0.0">
  <log-rotation>
    <set>
        <filter>
          <client-id>5</client-id>
          <client-id>8</client-id>
        </filter>
        <settings>
          <log-condition>
            <log-bysize>2073741824</log-bysize>
          </log-condition>
        </settings>
    </set>
  </log-rotation>
</packet>

 

The following request packet changes Log Rotation settings of domain example.com and the domain with ID 6:

<packet version="1.5.0.0">
  <log-rotation>
    <set>
        <filter>
          <domain-id>6</domain-id>
        </filter>
        <settings>
          <log-condition>
            <log-bysize>2073741824</log-bysize>
          </log-condition>
          <log-max-num-files>1</log-max-num-files>
          <log-compress>true</log-compress>
        </settings>
    </set>
    <set>
        <filter>
          <domain-name>example.com</domain-name>
        </filter>
        <settings>
          <log-condition>
            <log-bysize>2073741824</log-bysize>
          </log-condition>
          <log-max-num-files>1</log-max-num-files>
          <log-compress>true</log-compress>
        </settings>
    </set>
  </log-rotation>
</packet>

 

The following request packet changes Log Rotation settings of all domains available for a packet sender:

<packet version="1.5.0.0">
  <log-rotation>
    <set>
        <filter/>
        <settings>
          <log-condition>
            <log-bysize>2073741824</log-bysize>
          </log-condition>
        </settings>
    </set>
  </log-rotation>
</packet>