beautypg.com

Import and export, Retrieving license information – Google Search Appliance Administrative API Developers Guide: Java User Manual

Page 51

background image

Google Search Appliance: Administrative API Developer’s Guide: Java

51

Retrieving License Information

Retrieve license information using the following properties.

Retrieving License Information Example

Retrieve the license Information from a search appliance as follows:

// Send the request and print the response
GsaEntry myEntry = myClient.getEntry("info", "licenseInfo");
System.out.println("Appliance ID: " + myEntry.getGsaContent("applianceID"));
System.out.println("License ID: " + myEntry.getGsaContent("licenseID"));
System.out.println("License Valid Until: " +

myEntry.getGsaContent("licenseValidUntil"));

System.out.println("Maximum Front Ends: " +

myEntry.getGsaContent("maxFrontends"));

System.out.println("Maximum Pages: " + myEntry.getGsaContent("maxPages"));
System.out.println("Maximum Collections: " +

myEntry.getGsaContent("maxCollections"));

Import and Export

Import or export a search appliance configuration using the importExport entry of the config feed.

The following is the common query parameter for all requests.

Specify importExport entry properties.

Property

Description

applianceID

Provides the identification value for the Google Search Appliance software.
This value is also known as the serial number for the search appliance.

licenseID

Provides the unique license identification value.

licenseValidUntil

Identifies when the search appliance software license expires.

maxCollections

Indicates the maximum number of collections. You can configure
collections at the Index > Collections page.

maxFrontends

Indicates the maximum number of front ends. You can configure front ends
at the Search > Search Features > Front Ends page.

maxPages

Maximum number of content items that you can index with this product.
Content items include documents, images, and content from the feeds
interface.

Parameter

Description

password

The password of the exported configuration.

Property

Description

password

The password of the configuration file.

xmlData

The content of an exported configuration saved as XML data.