Retrieve KVM system information for a target

Retrieve KVM system information for a target

POST api/v2/jobs/rvc '{"method":"kvm.system_info","hostnames":["<node_hostname>"]}'

Starts a SC//Reliantâ„¢ Virtual Controller (RVC) job to retrieve KVM system information for one or more targets, including the libvirt and QEMU versions, the capabilities the host offers to virtual machines, and the number of virtual machines and how many are running. The available targets are a node, node group, or saved filter. The response will indicate that the RVC job is created and is scheduled to run. You can use the job ID from the response to retrieve the job status and the payload.

The capabilities object is only returned when using RVC version 3.13.0 or later.

In order to perform this action, the following conditions must be met:

  • Must have the Remote Job Execution feature turned on at the site level.
  • The user must have the following capabilities:
    • Create and Update a RVC job
    • Call KVM read-only methods

Request syntax

post api/v2/jobs/rvc '{"method":"kvm.system_info","hostnames":["<node_hostname>"]}'

Request parameters

The request accepts the following data in JSON format.

ParameterTypeDescriptionRequired
methodStringThe RVC action to start. This value is specified as a combination of the RVC module and method. For example, to retrieve KVM system information you would specify the kvm module and the system_info method combined as kvm.system_info.Yes
hostnamesString arrayThe list of node hostnames on which to run the RVC job.Dependent. Only if no node group or saved filter is provided.
node_group_nameStringThe name of the node group on which to run the RVC job. The RVC job will run on all nodes that are members of the node group.Dependent. Only if no hostnames or saved filter is provided.
node_group_idIntegerThe ID of the node group on which to run the RVC job. The RVC job will run on all nodes that are members of the node group.Dependent. Only if no hostnames or saved filter is provided.
saved_filter_nameStringThe name of the saved filter on which to run the RVC job. The RVC job will run on all nodes that match the saved filter.Dependent. Only if no hostnames or node group is provided.
saved_filter_idIntegerThe ID of the saved filter on which to run the RVC job. The RVC job will run on all nodes that match the saved filter.Dependent. Only if no hostnames or node group is provided.

Response syntax

When the hostnames request parameter is used, the following response syntax is received.

{
    "id": integer,
    "type": "RVC3",
    "status": "string",
    "message": "string",
    "trigged_by": "string",
    "parameters": {
        "method": "kvm.system_info",
        "params": {},
        "update_rpm": boolean,
        "hostnames": [
            "string",
            "string"
        ]
    },
    "time_started": "timestamp"
}

When the node group or saved filter request parameters are used, the following response syntax is received.

{
    "id": integer,
    "type": "RVC3",
    "status": "string",
    "message": "string",
    "trigged_by": "string",
    "parameters": {
        "method": "kvm.system_info",
        "params": {},
        "update_rpm": boolean,
        "hostnames": [],
        "node_group_name": "string",
        "node_group_id": integer,
        "saved_filter_name": "string",
        "saved_filter_id": integer
    },
    "time_started": "timestamp"
}

Response parameters

If the action is successful, an HTTP 200 response is returned. The following data is returned in JSON format.

FieldTypeDescription
idIntegerThe ID of the RVC job.
typeStringThe type of RVC job. For RVC jobs, it is RVC3.
statusStringThe status of the job.
messageStringThis field is reserved for internal use.
trigged_byStringThe username of the person who initiated the job.
parametersObjectThe request parameters indicating the method, method parameters, and the hostnames, node groups, or saved filters the RVC job ran on.
time_startedTimestampThe timestamp indicating when the job started. The timestamp is given in ISO 8601 UTC datetime format.

Errors

For a list of potential errors, refer to the common errors, as this action does not have any unique error responses. For more information, see Common errors.

Examples

Example 1: Retrieve KVM system information for a list of node hostnames.

This example starts a RVC job requesting KVM system information for the node with hostname sit0001red0.

ruby api.rb <customer_code> POST api/v2/jobs/rvc '{"method":"kvm.system_info","hostnames":["sit0001red0"]}'

Response

{
  "id": 1781937,
  "type": "RVC3",
  "status": "pending",
  "message": null,
  "trigged_by": "test.user",
  "parameters": {
    "method": "kvm.system_info",
    "params": {},
    "update_rpm": true,
    "hostnames": [
      "sit0001red0"
    ]
  },
  "time_started": "2026-10-11T20:35:46Z"
}

Example 2: Retrieve KVM system information for the nodes in a specified node group.

This example starts a RVC job requesting KVM system information for the nodes in node group Test Node Group.

ruby api.rb <customer_code> POST api/v2/jobs/rvc '{"method":"kvm.system_info","node_group_name":"Test Node Group"}'

Response

{
  "id": 1781944,
  "type": "RVC3",
  "status": "pending",
  "message": null,
  "trigged_by": "test.user",
  "parameters": {
    "method": "kvm.system_info",
    "params": {},
    "update_rpm": true,
    "hostnames": [],
    "node_group_name": "Test Node Group"
  },
  "time_started": "2026-10-11T20:40:12Z"
}

Example 3: Retrieving the payload from the RVC job.

This example retrieves the payload from RVC job ID 1781937, which displays the result of the kvm.system_info method.

ruby api.rb <customer_code> GET "api/jobs/1781937?include_payload=true"

Response

{
  "id": 1781937,
  "type": "RVC3",
  "status": "finished",
  "message": null,
  "trigged_by": "test.user",
  "success_nodes_count": 1,
  "failed_nodes_count": 0,
  "total_nodes_count": 1,
  "parameters": {
    "method": "kvm.system_info",
    "params": {},
    "hostnames": [
      "sit0001red0"
    ],
    "update_rpm": true
  },
  "time_started": "2026-10-11T20:35:46Z",
  "time_finished": "2026-10-11T20:35:47Z",
  "payload": {
    "sit0001red0": [
      {
        "result": {
          "libvirt": "11.3.0",
          "hypervisor": "QEMU 10.0.2",
          "capabilities": {
            "arch": "x86_64",
            "machine": "pc-i440fx-10.0",
            "vm_type": "kvm",
            "emulator": "/usr/bin/qemu-system-x86_64",
            "firmware": [
              "efi"
            ],
            "cpu_model": "Snowridge",
            "cpu_modes": [
              "host-passthrough",
              "maximum",
              "host-model",
              "custom"
            ],
            "max_vcpus": 255,
            "disk_buses": [
              "ide",
              "fdc",
              "scsi",
              "virtio",
              "usb",
              "sata"
            ],
            "video_models": [
              "vga",
              "cirrus",
              "vmvga",
              "qxl",
              "virtio",
              "none",
              "bochs",
              "ramfb"
            ]
          },
          "virtual_machines": {
            "total": 2,
            "running": 2,
            "cluster_managed": {
              "total": 2,
              "running": 2
            },
            "non_cluster_managed": {
              "total": 0,
              "running": 0
            }
          }
        },
        "timestamp": 1791750948
      }
    ]
  }
}