Gsa:content, Xml request formats – Google Search Appliance Administrative API Developers Guide: Protocol User Manual
Page 10

Google Search Appliance: Administrative API Developer’s Guide: Protocol
10
gsa:content
Definition
The <gsa:content> tag specifies properties of the search appliance Admin Console settings. The
<entry> must contain at least one <gsa:content>. The attribute name specifies the name of property
and the value for the property should be put in content.
Example
<gsa:content name=’crawlURLs’>http://yourdomain.com/</gsa:content>
Parent Element
Content Format
Complex
XML Request Formats
For API requests to create or update information (HTTP POST and PUT requests), the body of a request
must be an XML document that provides the data necessary to complete a request.
For API requests to retrieve or delete information (HTTP GET and DELETE requests), the URL and HTTP
request type specify all of the information that the search appliance needs to fulfill the request. Put all
necessary information in the <gsa:content> XML tag.
The following example updates the crawl URLs in a search appliance:
<?xml version=’1.0’ encoding=’UTF-8’?>
<entry xmlns=’http://www.w3.org/2005/Atom’
xmlns:gsa=’http://schemas.google.com/gsa/2007’>
<id>http://ent1:8000/feeds/config/crawlURLs</id>
<gsa:content name=’crawlURLs’>http://yourdomain.com/</gsa:content>
<gsa:content name=’startURLs’>http://yourdomain.com/</gsa:content>
<gsa:content name=’doNotCrawlURLs’>
http://yourdomain.com/not_allow
</gsa:content>
</entry>