C H A P T E R
7-1
Cisco Content Services Switch Administration Guide
OL-5647-02
7
Using an XML Document to Configure the
CSS
The CSS Content Application Program Interface (API) feature allows you to use
a network management workstation to make web-based configuration changes to
the CSS using Extensible Markup Language (XML) documents. XML is a
powerful tool that can be used to automatically configure a CSS using all of the
CLI commands included in the CSS software, such as to specify server weight and
load, to configure load balancing across a group of servers, or to configure content
rules to restrict access to a group of directories or files on the servers.
XML code loads a series of CLI commands into the CSS without the need to
respond to the prompts, similar to operating in expert mode. As the CSS
administrator, plan which type of changes you want to implement and the
consequences of these changes as they are performed.
After you create the XML document, you publish (upload) the XML file to the
Hypertext Transfer Protocol (HTTP) server embedded in the CSS using an HTTP
PUT method.
This chapter contains the following major sections:
•
Creating XML Code
•
Allowing the Transfer of XML Configuration Files on the CSS
•
Parsing the XML Code
•
Publishing the XML Code to the CSS
•
Testing the Output of the XML Code