Retrieval of VM managers
Use the GET
operation on the api/sam/vmmanagers
element
to retrieve information about VM managers that are defined in your infrastructure. The API
returns the same data as available on the VM Managers panel. The VM Managers that do not
report longer than the value allowed through maxVMManagerVisibility are not be returned by the API.
The REST API returns more information than is visible on the user interface. It returns information about VM managers that are managed both in central and distributed mode. It also returns information from virtualization technologies that do not require defining connection to the VM manager such as Xen or KVM without RHV-M. The scope of VM managers from which data is collected depends on which VM Manager Tools are installed on computers that belong to the computer group to which you are assigned.
Permission required: To retrieve information about VM managers, you must have the 'Manage VM Managers and Servers' permission.
Operation details | Description |
---|---|
Operation | GET /api/sam/vmmanagers |
Purpose | Returns a list of VM managers. |
HTTP method | GET |
Resource URI | https://server_host_name:port_number/api/sam/vmmanagers?token=token |
Request Content-Type |
application/json |
Response Content-Type |
application/json |
Normal HTTP response codes |
|
Error HTTP response codes |
Message body includes an error message with details. |
Response attributes
Attribute | Possible values |
---|---|
lastcollection |
Date and time when data was collected from the VM manager. |
deleted |
Indicates whether the VM manager was removed from BigFix Inventory. |
lastmodified |
The date and time when the VM manager was last modified. |
login |
User name that is used to access the VM manager. |
protocol
|
Communication protocol used by the VM manager. The attribute is applicable only for Hyper-V.
|
sharedcredentials |
Indicates whether the VM manager shares credentials with other hosts in the same cluster. The attribute is applicable only for Hyper-V. |
status |
Status of the VM manager.
|
type |
Type of the VM manager.
|
url |
Web address of the VM manager. |
vmmanagerid |
ID of the VM manager. |
vmmanagertoolid |
ID of the VM Manager tool that collects information from the particular VM manager. |
Example HTTP conversation
- Request
-
GET http://localhost:9081/api/sam/vmmanagers ?token=7adc3efb175e2bc0f4484bdd2efca54a8fa04623
- Response body (JSON)
-
[{ "vmmanagerid":1, "protocol":null, "deleted":false, "vmmanagertoolid":1, "sharecredentials":false, "lastmodified":"2016-06-12 09:06:51.723", "login":"admin@internal", "type":3, "url":"https:\/\/9.156.44.146:8443\/api", "status":98 }]