Cisco Systems 78-11424-03 Network Router User Manual


 
Chapter 2 Configuring User Profiles and CSS Parameters
Configuring Content API
2-44
Cisco Content Services Switch Basic Configuration Guide
78-11424-03
XML Document Example
The following example is a complete XML document. The XML document
creates three services, an owner, and a content rule, and assigns one of the newly
created services to the content rule.
<?xml version="1.0" standalone="yes"?>
<config>
<service name="router">
<ip_address>10.0.3.1</ip_address>
<action>active</action>
</service>
<service name="sname2">
<ip_address>10.0.3.2</ip_address>
<weight>4</weight>
<action>active</action>
</service>
<service name="sname3">
<ip_address>10.0.3.3</ip_address>
<weight>5</weight>
<protocol>udp</protocol>
<action>suspend</action>
</service>
<service name="nick">
<ip_address>10.0.3.93</ip_address>
<action>active</action>
</service>
<owner name="test">
<content name="rule">
<vip_address>10.0.3.100</vip_address>
<protocol>udp</protocol>
<port>8080</port>
<add_service>nick</add_service>
<action>active</action>
</content>
</owner>
</config>