Download the PHP package ioguimaraes/vmware-rest-api without Composer

On this page you can find all versions of the php package ioguimaraes/vmware-rest-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package vmware-rest-api

VMWare Rest API PHP

Copyright 2023 Igor Guimarães

Version 1.0

Description

Basic class PHP compiling the main vCenter API calls, making it possible to simultaneously manage more than one virtualization environment.

Important

Installation

To install VMWare Rest API PHP, run the folling command:

Installation instructions to use the composer command can be found on https://github.com/composer/composer.

Authentication

The vCenter API supports the following methods to authenticate requests. Individual operations in the documentation will include their specific authentication types.

Attention Point!! the API key is only valid for 5 minutes and by default and vCenter allows the simultaneous creation of a maximum of 50 keys per environment, of which it is advisable that after finishing using the key, destroy it of the same before creating a new one.

Basic Auth Ex ...

return:

Destroy Session

Access with NGINX

If it is necessary to access an environment through a reverse proxy using NGINX, the class allows the reverse proxy access configuration to be carried out.

Attention Point!! The 'vmware-auth' variable must be configured with the same name within NGINX so that when it directs to the correct IP, this new auth is assigned. Otherwise, the reverse proxy Auth will be sent, which for security reasons must be different from that used by the VMWare environment.

Virtual Machines

The vcenter vm package provides services for managing virtual machines.

VM List & Details

Returns information about at most 4000 visible (subject to permission checks) virtual machines in vCenter matching the VM.FilterSpec.

Create VM

Creates a virtual machine. if you do not have all of the privileges described as follows: - The resource Folder referenced by the attribute VM.InventoryPlacementSpec.folder requires VirtualMachine.Inventory.Create.

Below are parameters that can be filled in when creating machines.

Attention Point!! The GuestOS enumerated type defines the valid guest operating system types used for configuring a virtual machine. (https://developer.vmware.com/apis/vsphere-automation/latest/vcenter/api/vcenter/vm/post/)

Delete VM

Deletes a virtual machine. if you do not have all of the privileges described as follows: - The resource VirtualMachine referenced by the parameter vm requires VirtualMachine.Inventory.Delete.

VM Tools

The Tools service provides operations for managing VMware Tools in the guest operating system.

VM Guest

The Customization service provides operations to apply a customization specification to a virtual machine in powered-off status.

VM Hardware Basic

The Hardware service provides operations for configuring the virtual hardware of a virtual machine.

VM HArdware Adapter

VM Hardware Boot

The Boot service provides operations for configuring the settings used when booting a virtual machine.

VM Hardware Other Info

List of the informations type:

VM Power

The Power service provides operations for managing the power state of a virtual machine.

VM Storage Policy

Get Folders

The Folder service provides operations for manipulating a vCenter Server folder.

vCenter Clusters

The Cluster service provides operations to manage clusters in the vCenter Server.

vCenter Datacenters

The Datacenter service provides operations to manage datacenters in the vCenter Server.

vCenter Datastore

The Datastore service provides operations for manipulating a datastore.


All versions of vmware-rest-api with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4.0
ext-hash Version *
ext-curl Version *
ext-json Version *
vlucas/phpdotenv Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ioguimaraes/vmware-rest-api contains the following files

Loading the files please wait ....