All URIs are relative to https://{{vc}}
Method | HTTP request | Description |
---|---|---|
restVcenterVmVm33PowerGet | GET /rest/vcenter/vm/vm-33/power | Details |
restVcenterVmVm33PowerResetPost | POST /rest/vcenter/vm/vm-33/power/reset | Reset |
restVcenterVmVm33PowerStartPost | POST /rest/vcenter/vm/vm-33/power/start | Power On |
restVcenterVmVm33PowerStopPost | POST /rest/vcenter/vm/vm-33/power/stop | Power Off |
restVcenterVmVm33PowerSuspendPost | POST /rest/vcenter/vm/vm-33/power/suspend | Suspend |
restVcenterVmVm33PowerGet()
Details
List power details for a VM
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\VMPowerApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
try {
$apiInstance->restVcenterVmVm33PowerGet();
} catch (Exception $e) {
echo 'Exception when calling VMPowerApi->restVcenterVmVm33PowerGet: ', $e->getMessage(), PHP_EOL;
}
?>
This endpoint does not need any parameter.
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
restVcenterVmVm33PowerResetPost()
Reset
Reset a VM
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\VMPowerApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
try {
$apiInstance->restVcenterVmVm33PowerResetPost();
} catch (Exception $e) {
echo 'Exception when calling VMPowerApi->restVcenterVmVm33PowerResetPost: ', $e->getMessage(), PHP_EOL;
}
?>
This endpoint does not need any parameter.
void (empty response body)
No authorization required
- Content-Type: multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
restVcenterVmVm33PowerStartPost()
Power On
Power On a VM
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\VMPowerApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
try {
$apiInstance->restVcenterVmVm33PowerStartPost();
} catch (Exception $e) {
echo 'Exception when calling VMPowerApi->restVcenterVmVm33PowerStartPost: ', $e->getMessage(), PHP_EOL;
}
?>
This endpoint does not need any parameter.
void (empty response body)
No authorization required
- Content-Type: multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
restVcenterVmVm33PowerStopPost()
Power Off
Power Off a VM
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\VMPowerApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
try {
$apiInstance->restVcenterVmVm33PowerStopPost();
} catch (Exception $e) {
echo 'Exception when calling VMPowerApi->restVcenterVmVm33PowerStopPost: ', $e->getMessage(), PHP_EOL;
}
?>
This endpoint does not need any parameter.
void (empty response body)
No authorization required
- Content-Type: multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
restVcenterVmVm33PowerSuspendPost()
Suspend
Suspend a VM
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\VMPowerApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
try {
$apiInstance->restVcenterVmVm33PowerSuspendPost();
} catch (Exception $e) {
echo 'Exception when calling VMPowerApi->restVcenterVmVm33PowerSuspendPost: ', $e->getMessage(), PHP_EOL;
}
?>
This endpoint does not need any parameter.
void (empty response body)
No authorization required
- Content-Type: multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]