Skip to content

Latest commit

 

History

History
250 lines (173 loc) · 6.71 KB

HostsApi.md

File metadata and controls

250 lines (173 loc) · 6.71 KB

Swagger\Client\HostsApi

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

restVcenterHostGet()

List

List all the hosts available.

Example

<?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;
}
?>

Parameters

This endpoint does not need any parameter.

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

restVcenterHostHost10ConnectPost

restVcenterHostHost10ConnectPost($body)

Connect

Connect a disconnected host

Example

<?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;
}
?>

Parameters

Name Type Description Notes
body object [optional]

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

restVcenterHostHost10DisconnectPost

restVcenterHostHost10DisconnectPost($body)

Disconnect

Disconnect a connected host

Example

<?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;
}
?>

Parameters

Name Type Description Notes
body object [optional]

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

restVcenterHostHost12Delete

restVcenterHostHost12Delete($content_type)

Delete

Remove the specified standalone host

Example

<?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;
}
?>

Parameters

Name Type Description Notes
content_type string [optional]

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

restVcenterHostPost

restVcenterHostPost($body, $content_type)

Add

Add a new host to the specified folder

Example

<?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;
}
?>

Parameters

Name Type Description Notes
body object [optional]
content_type string [optional]

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]