Revision c41eea6e lib/rapi/rlib1.py

b/lib/rapi/rlib1.py
45 45
class R_version(baserlib.R_Generic):
46 46
  """/version resource.
47 47

  
48
  This resource should be used to determine the remote API version and to adapt
49
  clients accordingly.
48
  This resource should be used to determine the remote API version and
49
  to adapt clients accordingly.
50 50

  
51 51
  """
52 52
  DOC_URI = "/version"
......
84 84
  def GET(self):
85 85
    """Returns cluster information.
86 86

  
87
    Example: {
88
      "config_version": 3,
89
      "name": "cluster1.example.com",
90
      "software_version": "1.2.4",
91
      "os_api_version": 5,
92
      "export_version": 0,
93
      "master": "node1.example.com",
94
      "architecture": [
95
        "64bit",
96
        "x86_64"
97
      ],
98
      "hypervisor_type": "xen-pvm",
99
      "protocol_version": 12
100
    }
87
    Example::
88

  
89
      {
90
        "config_version": 3,
91
        "name": "cluster1.example.com",
92
        "software_version": "1.2.4",
93
        "os_api_version": 5,
94
        "export_version": 0,
95
        "master": "node1.example.com",
96
        "architecture": [
97
          "64bit",
98
          "x86_64"
99
        ],
100
        "hypervisor_type": "xen-pvm",
101
        "protocol_version": 12
102
      }
101 103

  
102 104
    """
103 105
    op = ganeti.opcodes.OpQueryClusterInfo()

Also available in: Unified diff