All URIs are relative to http://localhost/api
| Method | HTTP request | Description |
|---|---|---|
| ChangePowerState | Put /vms/{id}/power | Changes the VM power state |
| GetPowerState | Get /vms/{id}/power | Returns the power state of the VM |
VmPowerState ChangePowerState(ctx, id, operation) Changes the VM power state
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | string | ID of VM | |
| operation | VmPowerOperation | VM power operation: on, off, shutdown, suspend, pause, unpause |
No authorization required
- Content-Type: application/vnd.vmware.vmw.rest-v1+json
- Accept: application/vnd.vmware.vmw.rest-v1+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
VmPowerState GetPowerState(ctx, id) Returns the power state of the VM
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | string | ID of VM |
No authorization required
- Content-Type: application/vnd.vmware.vmw.rest-v1+json
- Accept: application/vnd.vmware.vmw.rest-v1+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]