Skip to content

Latest commit

 

History

History
146 lines (100 loc) · 3.68 KB

VMApi.md

File metadata and controls

146 lines (100 loc) · 3.68 KB

Swagger\Client\VMApi

All URIs are relative to https://{{vc}}

Method HTTP request Description
restVcenterVmGet GET /rest/vcenter/vm Find
restVcenterVmVm22Get GET /rest/vcenter/vm/vm-22 Details
restVcenterVmVm32Delete DELETE /rest/vcenter/vm/vm-32 Delete

restVcenterVmGet

restVcenterVmGet($filter_names_1)

Find

Find a VM based on the specified filter, in this case the vm name when it was created.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$apiInstance = new Swagger\Client\Api\VMApi(
    // 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()
);
$filter_names_1 = "filter_names_1_example"; // string | 

try {
    $apiInstance->restVcenterVmGet($filter_names_1);
} catch (Exception $e) {
    echo 'Exception when calling VMApi->restVcenterVmGet: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
filter_names_1 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]

restVcenterVmVm22Get

restVcenterVmVm22Get()

Details

Get the details for the specified VM

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$apiInstance = new Swagger\Client\Api\VMApi(
    // 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->restVcenterVmVm22Get();
} catch (Exception $e) {
    echo 'Exception when calling VMApi->restVcenterVmVm22Get: ', $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]

restVcenterVmVm32Delete

restVcenterVmVm32Delete()

Delete

Delete the specified VM

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$apiInstance = new Swagger\Client\Api\VMApi(
    // 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->restVcenterVmVm32Delete();
} catch (Exception $e) {
    echo 'Exception when calling VMApi->restVcenterVmVm32Delete: ', $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]