Manage existing virtual machines
The manage existing virtual machines APIs provide the capability to specify the existing virtual machines that must be managed by the PowerVC Management System. The capabilities include listing virtual machines that exist in the environment, managing individual virtual machines, and unmanaging virtual machines that are currently being managed.
Manage existing virtual machines options
Method | URI | Description |
---|---|---|
POST |
|
Finishes the process of managing a virtual
machine. Specify the |
Finish managing an existing virtual machine
The operation finishes the management process of an existing virtual machine by selecting the operating system distribution and, if the virtual machine has more than one volume, the boot volume. This API takes the identifier of the virtual machine in the URI and takes the identifiers of the boot volume and the operating system distribution in the request body. The API returns no response body if successful.
- Normal response code: No Content (204)
- Error Response Codes: Bad Request (400), Not Found (404), Server Error (500)
Request parameters
Name | Style | Type | Description |
---|---|---|---|
|
body |
string |
The operating system distribution. The values are either |
|
body |
list of strings |
A list of volume identifiers that are boot volumes for this virtual machine. If only one boot volume exists, it is a list of one identifier. If multiple boot volumes exist, the boot order is based on the ordering of identifiers in the list. (The first identifier in the list is the first volume in the boot order). |
|
body |
list of strings |
An ordered list of volume identifiers for this virtual machine. If only one volume exists, it is
a list of one identifier. If multiple volumes exist, the order is based on the ordering of
identifiers in the list. (The first identifier in the list is the first volume attached). If
|
|
body |
string |
Specifies whether the operating system on the virtual machine is little or big endian. Valid
values are |
{"finishOnboard": {
"os_distro": "rhel",
"boot_volume_ids": ["84030856-700e-4984-beaa-b72eb43ac017","a486f7a9-d8e2-42a8-a035-3776a9775187","5bd0eeab-1842-48c6-9a55-f4a2e94be442"],
"endianness": "big-endian"}}
For information on unmanaging virtual machines, see Compute host registration topic.