Difference between revisions of "GOCDB/Transfer Data Format"
< GOCDB
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
= Introduction = | = Introduction = | ||
The format of data transferred between a regional and central GOCDB instance is documented here. This will be a single XML document containing all objects that have been inserted, updated or deleted. | The format of data transferred between a regional and central GOCDB instance is documented here. This will be a single XML document containing all objects that have been inserted, updated or deleted. | ||
= Example = | = Example = | ||
This example shows a single site being synchronised. This site is either new or to be updated (operation=update). | |||
<source lang="xml"><?xml version="1.0" encoding="UTF-8"?> | <source lang="xml"><?xml version="1.0" encoding="UTF-8"?> | ||
Line 18: | Line 20: | ||
<domain>rl.ac.uk</domain> | <domain>rl.ac.uk</domain> | ||
</site> | </site> | ||
</gocdb_data></source> | |||
= Example 2 = | |||
This example shows both a service endpoint and a downtime being synchronised. | |||
<source lang=""><?xml version="1.0" encoding="UTF-8"?> | |||
<gocdb_data> | |||
<service_endpoint scope="EGI" operation="Update"> | |||
<primary_key>449G3</primary_key> | |||
<hostname>test.host.com</hostname> | |||
<service_type>APEL</service_type> | |||
<ip>10.0.0.1</ | |||
<site>RAL-LCG2</site> | |||
</service_endpoint> | |||
<user scope="EGI" operation="Update"> | |||
</user> | |||
</gocdb_data></source> | </gocdb_data></source> |
Revision as of 09:54, 23 June 2011
Introduction
The format of data transferred between a regional and central GOCDB instance is documented here. This will be a single XML document containing all objects that have been inserted, updated or deleted.
Example
This example shows a single site being synchronised. This site is either new or to be updated (operation=update).
<?xml version="1.0" encoding="UTF-8"?>
<gocdb_data>
<site scope="EGI" operation="Update">
<primary_key>4839G3</primary_key>
<short_name>RAL-LCG2</short_name>
<description>STFC, e-Science, RAL</description>
<country>UK</country>
<ngi>UKI</ngi>
<timezone>GMT</timezone>
<certification_status>certified</certification_status>
<production_status>production</production_status>
<domain>rl.ac.uk</domain>
</site>
</gocdb_data>
Example 2
This example shows both a service endpoint and a downtime being synchronised.
<?xml version="1.0" encoding="UTF-8"?>
<gocdb_data>
<service_endpoint scope="EGI" operation="Update">
<primary_key>449G3</primary_key>
<hostname>test.host.com</hostname>
<service_type>APEL</service_type>
<ip>10.0.0.1</
<site>RAL-LCG2</site>
</service_endpoint>
<user scope="EGI" operation="Update">
</user>
</gocdb_data>