Skip to content

canerd7u/vm-rest-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SwaggerClient-php

The folders within this collection represent the Rest API resources and the different operations that can be performed on each. These are individual requests. In many cases, each request will require input that would come from other requests. It is left up to the user to insert the correct data into the URL, query parameters and request bodies for the requests to work correctly. Refer to the ReST API Documentation for further help.

This PHP package is automatically generated by the Swagger Codegen project:

  • API version: 1.0.0-oas3
  • Build package: io.swagger.codegen.v3.generators.php.PhpClientCodegen

Requirements

PHP 5.5 and later

Installation & Usage

Composer

To install the bindings via Composer, add the following to composer.json:

{
  "repositories": [
    {
      "type": "git",
      "url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
    }
  ],
  "require": {
    "GIT_USER_ID/GIT_REPO_ID": "*@dev"
  }
}

Then run composer install

Manual Installation

Download the files and include autoload.php:

    require_once('/path/to/SwaggerClient-php/vendor/autoload.php');

Tests

To run the unit tests:

composer install
./vendor/bin/phpunit

Getting Started

Please follow the installation procedure and then run the following:

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

$apiInstance = new Swagger\Client\Api\AuthenticationApi(
    // 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->restComVmwareCisSessionDelete();
} catch (Exception $e) {
    echo 'Exception when calling AuthenticationApi->restComVmwareCisSessionDelete: ', $e->getMessage(), PHP_EOL;
}
?>

Documentation for API Endpoints

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

Class Method HTTP request Description
AuthenticationApi restComVmwareCisSessionDelete DELETE /rest/com/vmware/cis/session Logout
DatacentersApi restVcenterDatacenterDatacenter34Delete DELETE /rest/vcenter/datacenter/datacenter-34 Delete
DatacentersApi restVcenterDatacenterDatacenter87Get GET /rest/vcenter/datacenter/datacenter-87 Details
DatacentersApi restVcenterDatacenterGet GET /rest/vcenter/datacenter Find
DatacentersApi restVcenterDatacenterPost POST /rest/vcenter/datacenter Create
DatastoresApi restVcenterDatastoreDatastore26Get GET /rest/vcenter/datastore/datastore-26 List details for a single datastore
DatastoresApi restVcenterDatastoreGet GET /rest/vcenter/datastore Find
HostsApi restVcenterHostGet GET /rest/vcenter/host List
HostsApi restVcenterHostHost10ConnectPost POST /rest/vcenter/host/host-10/connect Connect
HostsApi restVcenterHostHost10DisconnectPost POST /rest/vcenter/host/host-10/disconnect Disconnect
HostsApi restVcenterHostHost12Delete DELETE /rest/vcenter/host/host-12 Delete
HostsApi restVcenterHostPost POST /rest/vcenter/host Add
NetworkApi restVcenterNetworkGet GET /rest/vcenter/network List details
ResourcePoolApi restVcenterResourcePoolResgroup8Get GET /rest/vcenter/resource-pool/resgroup-8 Get details
VMApi restVcenterVmGet GET /rest/vcenter/vm Find
VMApi restVcenterVmVm22Get GET /rest/vcenter/vm/vm-22 Details
VMApi restVcenterVmVm32Delete DELETE /rest/vcenter/vm/vm-32 Delete
VMAdapterSATAApi restVcenterVmVm19HardwareAdapterSata15000Get GET /rest/vcenter/vm/vm-19/hardware/adapter/sata/15000 Details
VMAdapterSATAApi restVcenterVmVm19HardwareAdapterSataGet GET /rest/vcenter/vm/vm-19/hardware/adapter/sata List
VMAdapterSATAApi restVcenterVmVm19HardwareAdapterSataPost POST /rest/vcenter/vm/vm-19/hardware/adapter/sata Create
VMAdapterSATAApi restVcenterVmVm33HardwareAdapterSata15001Delete DELETE /rest/vcenter/vm/vm-33/hardware/adapter/sata/15001 Delete
VMAdapterSCSIApi restVcenterVmVm33HardwareAdapterScsi1000Get GET /rest/vcenter/vm/vm-33/hardware/adapter/scsi/1000 Details
VMAdapterSCSIApi restVcenterVmVm33HardwareAdapterScsi1001Delete DELETE /rest/vcenter/vm/vm-33/hardware/adapter/scsi/1001 Delete
VMAdapterSCSIApi restVcenterVmVm33HardwareAdapterScsi1001Patch PATCH /rest/vcenter/vm/vm-33/hardware/adapter/scsi/1001 Update
VMAdapterSCSIApi restVcenterVmVm33HardwareAdapterScsiGet GET /rest/vcenter/vm/vm-33/hardware/adapter/scsi List
VMAdapterSCSIApi restVcenterVmVm33HardwareAdapterScsiPost POST /rest/vcenter/vm/vm-33/hardware/adapter/scsi Create
VMAddApi restComVmwareCisSessionPost POST /rest/com/vmware/cis/session Login
VMAddApi restVcenterFolderGet GET /rest/vcenter/folder Find folers to create the VM in
VMAddApi restVcenterResourcePoolGet GET /rest/vcenter/resource-pool Find a resource pool to use
VMAddApi restVcenterVmPost POST /rest/vcenter/vm Create VM
VMCDRomApi restVcenterVmVm19HardwareCdrom3000Patch PATCH /rest/vcenter/vm/vm-19/hardware/cdrom/3000 CD-Rom: Update
VMCDRomApi restVcenterVmVm19HardwareCdromGet GET /rest/vcenter/vm/vm-19/hardware/cdrom CD-Rom: List for a single VM
VMCDRomApi restVcenterVmVm19HardwareCdromPost POST /rest/vcenter/vm/vm-19/hardware/cdrom CD-Rom: Create SATA
VMCDRomApi restVcenterVmVm22HardwareCdrom3001Get GET /rest/vcenter/vm/vm-22/hardware/cdrom/3001 CD-Rom: Get details for a single VM
VMCDRomApi restVcenterVmVm33HardwareCdrom16000ConnectPost POST /rest/vcenter/vm/vm-33/hardware/cdrom/16000/connect CD-Rom: Connect
VMCDRomApi restVcenterVmVm33HardwareCdrom16000DisconnectPost POST /rest/vcenter/vm/vm-33/hardware/cdrom/16000/disconnect CD-Rom: Disconnect
VMCDRomApi restVcenterVmVm33HardwareCdrom3000Delete DELETE /rest/vcenter/vm/vm-33/hardware/cdrom/3000 CD-Rom: Delete
VMCPUCopyApi restVcenterVmVm19HardwareCpuGet GET /rest/vcenter/vm/vm-19/hardware/cpu CPU: Get for a single VM
VMCPUCopyApi restVcenterVmVm33HardwareCpuPatch PATCH /rest/vcenter/vm/vm-33/hardware/cpu CPU: Update
VMDiskApi restVcenterVmVm19HardwareDisk3000Get GET /rest/vcenter/vm/vm-19/hardware/disk/3000 Details
VMDiskApi restVcenterVmVm19HardwareDisk3002Delete DELETE /rest/vcenter/vm/vm-19/hardware/disk/3002 Delete
VMDiskApi restVcenterVmVm19HardwareDiskGet GET /rest/vcenter/vm/vm-19/hardware/disk Get
VMDiskApi restVcenterVmVm19HardwareDiskPost POST /rest/vcenter/vm/vm-19/hardware/disk Create SATA
VMDiskApi restVcenterVmVm33HardwareDisk3002Patch PATCH /rest/vcenter/vm/vm-33/hardware/disk/3002 Change VMDK location
VMEthernetApi restVcenterVmVm19HardwareEthernet4000ConnectPost POST /rest/vcenter/vm/vm-19/hardware/ethernet/4000/connect Connect
VMEthernetApi restVcenterVmVm19HardwareEthernet4000Patch PATCH /rest/vcenter/vm/vm-19/hardware/ethernet/4000 Change Network
VMEthernetApi restVcenterVmVm20HardwareEthernet4000Get GET /rest/vcenter/vm/vm-20/hardware/ethernet/4000 Details
VMEthernetApi restVcenterVmVm20HardwareEthernetGet GET /rest/vcenter/vm/vm-20/hardware/ethernet Get
VMEthernetApi restVcenterVmVm20HardwareEthernetPost POST /rest/vcenter/vm/vm-20/hardware/ethernet Create E1000
VMEthernetApi restVcenterVmVm33HardwareEthernet4000Delete DELETE /rest/vcenter/vm/vm-33/hardware/ethernet/4000 Delete
VMEthernetApi restVcenterVmVm33HardwareEthernet4000DisconnectPost POST /rest/vcenter/vm/vm-33/hardware/ethernet/4000/disconnect Disconnect
VMFloppyApi restVcenterVmVm33HardwareFloppy8000Get GET /rest/vcenter/vm/vm-33/hardware/floppy/8000 Details
VMFloppyApi restVcenterVmVm33HardwareFloppy8001ConnectPost POST /rest/vcenter/vm/vm-33/hardware/floppy/8001/connect Connect
VMFloppyApi restVcenterVmVm33HardwareFloppy8001Delete DELETE /rest/vcenter/vm/vm-33/hardware/floppy/8001 Delete
VMFloppyApi restVcenterVmVm33HardwareFloppy8001DisconnectPost POST /rest/vcenter/vm/vm-33/hardware/floppy/8001/disconnect Disconnect
VMFloppyApi restVcenterVmVm33HardwareFloppy8001Patch PATCH /rest/vcenter/vm/vm-33/hardware/floppy/8001 Update
VMFloppyApi restVcenterVmVm33HardwareFloppyGet GET /rest/vcenter/vm/vm-33/hardware/floppy List
VMFloppyApi restVcenterVmVm33HardwareFloppyPost POST /rest/vcenter/vm/vm-33/hardware/floppy Create
VMMemoryApi restVcenterVmVm33HardwareMemoryGet GET /rest/vcenter/vm/vm-33/hardware/memory Get
VMMemoryApi restVcenterVmVm33HardwareMemoryPatch PATCH /rest/vcenter/vm/vm-33/hardware/memory Update
VMParallelApi restVcenterVmVm33HardwareParallel10000ConnectPost POST /rest/vcenter/vm/vm-33/hardware/parallel/10000/connect Connect
VMParallelApi restVcenterVmVm33HardwareParallel10000DisconnectPost POST /rest/vcenter/vm/vm-33/hardware/parallel/10000/disconnect Disconnect
VMParallelApi restVcenterVmVm33HardwareParallel10000Get GET /rest/vcenter/vm/vm-33/hardware/parallel/10000 Details
VMParallelApi restVcenterVmVm33HardwareParallel10001Delete DELETE /rest/vcenter/vm/vm-33/hardware/parallel/10001 Delete
VMParallelApi restVcenterVmVm33HardwareParallel10001Patch PATCH /rest/vcenter/vm/vm-33/hardware/parallel/10001 Update
VMParallelApi restVcenterVmVm33HardwareParallelGet GET /rest/vcenter/vm/vm-33/hardware/parallel List
VMParallelApi restVcenterVmVm33HardwareParallelPost POST /rest/vcenter/vm/vm-33/hardware/parallel/ Create
VMPowerApi restVcenterVmVm33PowerGet GET /rest/vcenter/vm/vm-33/power Details
VMPowerApi restVcenterVmVm33PowerResetPost POST /rest/vcenter/vm/vm-33/power/reset Reset
VMPowerApi restVcenterVmVm33PowerStartPost POST /rest/vcenter/vm/vm-33/power/start Power On
VMPowerApi restVcenterVmVm33PowerStopPost POST /rest/vcenter/vm/vm-33/power/stop Power Off
VMPowerApi restVcenterVmVm33PowerSuspendPost POST /rest/vcenter/vm/vm-33/power/suspend Suspend
VMSerialApi restVcenterVmVm33HardwareSerial9000ConnectPost POST /rest/vcenter/vm/vm-33/hardware/serial/9000/connect Connect
VMSerialApi restVcenterVmVm33HardwareSerial9000Delete DELETE /rest/vcenter/vm/vm-33/hardware/serial/9000 Delete
VMSerialApi restVcenterVmVm33HardwareSerial9000DisconnectPost POST /rest/vcenter/vm/vm-33/hardware/serial/9000/disconnect Disconnect
VMSerialApi restVcenterVmVm33HardwareSerial9000Get GET /rest/vcenter/vm/vm-33/hardware/serial/9000 Details
VMSerialApi restVcenterVmVm33HardwareSerial9000Patch PATCH /rest/vcenter/vm/vm-33/hardware/serial/9000 Update
VMSerialApi restVcenterVmVm33HardwareSerialGet GET /rest/vcenter/vm/vm-33/hardware/serial List
VMSerialApi restVcenterVmVm33HardwareSerialPost POST /rest/vcenter/vm/vm-33/hardware/serial/ Create

Documentation For Models

Documentation For Authorization

basicAuth

  • Type: HTTP basic authentication

noauthAuth

  • Type: HTTP basic authentication

Author

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published