All URIs are relative to https://{{vc}}
Method | HTTP request | Description |
---|---|---|
restVcenterVmVm19HardwareEthernet4000ConnectPost | POST /rest/vcenter/vm/vm-19/hardware/ethernet/4000/connect | Connect |
restVcenterVmVm19HardwareEthernet4000Patch | PATCH /rest/vcenter/vm/vm-19/hardware/ethernet/4000 | Change Network |
restVcenterVmVm20HardwareEthernet4000Get | GET /rest/vcenter/vm/vm-20/hardware/ethernet/4000 | Details |
restVcenterVmVm20HardwareEthernetGet | GET /rest/vcenter/vm/vm-20/hardware/ethernet | Get |
restVcenterVmVm20HardwareEthernetPost | POST /rest/vcenter/vm/vm-20/hardware/ethernet | Create E1000 |
restVcenterVmVm33HardwareEthernet4000Delete | DELETE /rest/vcenter/vm/vm-33/hardware/ethernet/4000 | Delete |
restVcenterVmVm33HardwareEthernet4000DisconnectPost | POST /rest/vcenter/vm/vm-33/hardware/ethernet/4000/disconnect | Disconnect |
restVcenterVmVm19HardwareEthernet4000ConnectPost()
Connect
Connect Ethernet device to the virtual machine.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\VMEthernetApi(
// 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->restVcenterVmVm19HardwareEthernet4000ConnectPost();
} catch (Exception $e) {
echo 'Exception when calling VMEthernetApi->restVcenterVmVm19HardwareEthernet4000ConnectPost: ', $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]
restVcenterVmVm19HardwareEthernet4000Patch($body, $content_type)
Change Network
Change Network the VM is attached to
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\VMEthernetApi(
// 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->restVcenterVmVm19HardwareEthernet4000Patch($body, $content_type);
} catch (Exception $e) {
echo 'Exception when calling VMEthernetApi->restVcenterVmVm19HardwareEthernet4000Patch: ', $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]
restVcenterVmVm20HardwareEthernet4000Get()
Details
Get details for a single Adapter
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\VMEthernetApi(
// 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->restVcenterVmVm20HardwareEthernet4000Get();
} catch (Exception $e) {
echo 'Exception when calling VMEthernetApi->restVcenterVmVm20HardwareEthernet4000Get: ', $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]
restVcenterVmVm20HardwareEthernetGet()
Get
Return the Ethernet related settings of a virtual machine.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\VMEthernetApi(
// 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->restVcenterVmVm20HardwareEthernetGet();
} catch (Exception $e) {
echo 'Exception when calling VMEthernetApi->restVcenterVmVm20HardwareEthernetGet: ', $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]
restVcenterVmVm20HardwareEthernetPost($body, $content_type)
Create E1000
Create E1000 Network Adapter
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\VMEthernetApi(
// 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->restVcenterVmVm20HardwareEthernetPost($body, $content_type);
} catch (Exception $e) {
echo 'Exception when calling VMEthernetApi->restVcenterVmVm20HardwareEthernetPost: ', $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]
restVcenterVmVm33HardwareEthernet4000Delete()
Delete
Delete a given ethernet adapter from a virtual machine.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\VMEthernetApi(
// 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->restVcenterVmVm33HardwareEthernet4000Delete();
} catch (Exception $e) {
echo 'Exception when calling VMEthernetApi->restVcenterVmVm33HardwareEthernet4000Delete: ', $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]
restVcenterVmVm33HardwareEthernet4000DisconnectPost()
Disconnect
Disconnect Ethernet device to the virtual machine.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\VMEthernetApi(
// 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->restVcenterVmVm33HardwareEthernet4000DisconnectPost();
} catch (Exception $e) {
echo 'Exception when calling VMEthernetApi->restVcenterVmVm33HardwareEthernet4000DisconnectPost: ', $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]