All URIs are relative to https://{{vc}}
Method | HTTP request | Description |
---|---|---|
restVcenterVmVm33HardwareSerial9000ConnectPost | POST /rest/vcenter/vm/vm-33/hardware/serial/9000/connect | Connect |
restVcenterVmVm33HardwareSerial9000Delete | DELETE /rest/vcenter/vm/vm-33/hardware/serial/9000 | Delete |
restVcenterVmVm33HardwareSerial9000DisconnectPost | POST /rest/vcenter/vm/vm-33/hardware/serial/9000/disconnect | Disconnect |
restVcenterVmVm33HardwareSerial9000Get | GET /rest/vcenter/vm/vm-33/hardware/serial/9000 | Details |
restVcenterVmVm33HardwareSerial9000Patch | PATCH /rest/vcenter/vm/vm-33/hardware/serial/9000 | Update |
restVcenterVmVm33HardwareSerialGet | GET /rest/vcenter/vm/vm-33/hardware/serial | List |
restVcenterVmVm33HardwareSerialPost | POST /rest/vcenter/vm/vm-33/hardware/serial/ | Create |
restVcenterVmVm33HardwareSerial9000ConnectPost()
Connect
Connect Serial device to a VM
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\VMSerialApi(
// 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->restVcenterVmVm33HardwareSerial9000ConnectPost();
} catch (Exception $e) {
echo 'Exception when calling VMSerialApi->restVcenterVmVm33HardwareSerial9000ConnectPost: ', $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]
restVcenterVmVm33HardwareSerial9000Delete()
Delete
Delete Serial device on VM
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\VMSerialApi(
// 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->restVcenterVmVm33HardwareSerial9000Delete();
} catch (Exception $e) {
echo 'Exception when calling VMSerialApi->restVcenterVmVm33HardwareSerial9000Delete: ', $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]
restVcenterVmVm33HardwareSerial9000DisconnectPost()
Disconnect
Disconnect Serial device from a VM
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\VMSerialApi(
// 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->restVcenterVmVm33HardwareSerial9000DisconnectPost();
} catch (Exception $e) {
echo 'Exception when calling VMSerialApi->restVcenterVmVm33HardwareSerial9000DisconnectPost: ', $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]
restVcenterVmVm33HardwareSerial9000Get()
Details
Get Serial details for a single VM
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\VMSerialApi(
// 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->restVcenterVmVm33HardwareSerial9000Get();
} catch (Exception $e) {
echo 'Exception when calling VMSerialApi->restVcenterVmVm33HardwareSerial9000Get: ', $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]
restVcenterVmVm33HardwareSerial9000Patch($body, $content_type)
Update
Update Serial to use new file
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\VMSerialApi(
// 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->restVcenterVmVm33HardwareSerial9000Patch($body, $content_type);
} catch (Exception $e) {
echo 'Exception when calling VMSerialApi->restVcenterVmVm33HardwareSerial9000Patch: ', $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]
restVcenterVmVm33HardwareSerialGet()
List
List Serial IDs for a VM
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\VMSerialApi(
// 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->restVcenterVmVm33HardwareSerialGet();
} catch (Exception $e) {
echo 'Exception when calling VMSerialApi->restVcenterVmVm33HardwareSerialGet: ', $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]
restVcenterVmVm33HardwareSerialPost($body, $content_type)
Create
Create Serial device on VM
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\VMSerialApi(
// 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->restVcenterVmVm33HardwareSerialPost($body, $content_type);
} catch (Exception $e) {
echo 'Exception when calling VMSerialApi->restVcenterVmVm33HardwareSerialPost: ', $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]