All URIs are relative to https://{{vc}}
Method | HTTP request | Description |
---|---|---|
restVcenterHostGet | GET /rest/vcenter/host | List |
restVcenterHostHost10ConnectPost | POST /rest/vcenter/host/host-10/connect | Connect |
restVcenterHostHost10DisconnectPost | POST /rest/vcenter/host/host-10/disconnect | Disconnect |
restVcenterHostHost12Delete | DELETE /rest/vcenter/host/host-12 | Delete |
restVcenterHostPost | POST /rest/vcenter/host | Add |
restVcenterHostGet()
List
List all the hosts available.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\HostsApi(
// 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->restVcenterHostGet();
} catch (Exception $e) {
echo 'Exception when calling HostsApi->restVcenterHostGet: ', $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]
restVcenterHostHost10ConnectPost($body)
Connect
Connect a disconnected host
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\HostsApi(
// 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 |
try {
$apiInstance->restVcenterHostHost10ConnectPost($body);
} catch (Exception $e) {
echo 'Exception when calling HostsApi->restVcenterHostHost10ConnectPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
body | object | [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]
restVcenterHostHost10DisconnectPost($body)
Disconnect
Disconnect a connected host
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\HostsApi(
// 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 |
try {
$apiInstance->restVcenterHostHost10DisconnectPost($body);
} catch (Exception $e) {
echo 'Exception when calling HostsApi->restVcenterHostHost10DisconnectPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
body | object | [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]
restVcenterHostHost12Delete($content_type)
Delete
Remove the specified standalone host
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\HostsApi(
// 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()
);
$content_type = "content_type_example"; // string |
try {
$apiInstance->restVcenterHostHost12Delete($content_type);
} catch (Exception $e) {
echo 'Exception when calling HostsApi->restVcenterHostHost12Delete: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
content_type | string | [optional] |
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]
restVcenterHostPost($body, $content_type)
Add
Add a new host to the specified folder
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\HostsApi(
// 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->restVcenterHostPost($body, $content_type);
} catch (Exception $e) {
echo 'Exception when calling HostsApi->restVcenterHostPost: ', $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]