All URIs are relative to https://{{vc}}
Method | HTTP request | Description |
---|---|---|
restVcenterVmVm33HardwareMemoryGet | GET /rest/vcenter/vm/vm-33/hardware/memory | Get |
restVcenterVmVm33HardwareMemoryPatch | PATCH /rest/vcenter/vm/vm-33/hardware/memory | Update |
restVcenterVmVm33HardwareMemoryGet()
Get
Return the Memory related settings of a virtual machine.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\VMMemoryApi(
// 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->restVcenterVmVm33HardwareMemoryGet();
} catch (Exception $e) {
echo 'Exception when calling VMMemoryApi->restVcenterVmVm33HardwareMemoryGet: ', $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]
restVcenterVmVm33HardwareMemoryPatch($body, $content_type)
Update
Update the Memory related settings of a virtual machine.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\VMMemoryApi(
// 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()
);
$body = new \stdClass; // object |
$content_type = "content_type_example"; // string |
try {
$apiInstance->restVcenterVmVm33HardwareMemoryPatch($body, $content_type);
} catch (Exception $e) {
echo 'Exception when calling VMMemoryApi->restVcenterVmVm33HardwareMemoryPatch: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
body | object | [optional] | |
content_type | string | [optional] |
void (empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]