Download the PHP package masoudniki/vcenter without Composer
On this page you can find all versions of the php package masoudniki/vcenter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download masoudniki/vcenter
More information about masoudniki/vcenter
Files in masoudniki/vcenter
Package vcenter
Short Description simple sdk for manage and working with vspahre automation api
License MIT
Homepage https://github.com/masoudniki
Informations about the package vcenter
VMware vSphere SDK
SDK for working with vSphere automation API. You can use it to manage ESXI and vCenter powered machines.
Supported Versions
vCenterApplianceVersion | status | description |
---|---|---|
7.0 |
supported | |
6.7 |
supported | some of api like ConsoleTicket is not working more information |
6.5 | supported |
Installation
It's super easy to use, just run the below command:
How to use it
just pass argument to the and create an instace:
Parameters
Host
only the domain name without any protocol and slash charcher or ip address is acceptable
Credentials
You have two options for authentication:
With username and password
you can pass username and password in array for getting session id
Or with Vmware-Api-Session-Id
increasing session timeout in vCenter and pass directly the session id
For the initiation & first time use you can pass username and password and then get the session with getSessionId() method on VmwareApiClient
Port
the port of vCenterAppliance application default value is: 443
SSL
if you are using self signed certificate pass the path of certificate or set true otherwise if you dont want to check certificate set false
Protocol
if you are running vCenterAppliance on HTTP protocol set http or if you are running it on HTTPS set https
BaseUrl
The main path of REST API default value is: "/rest/vcenter"
AuthUrl
The authetication URL for creating Vmware-Api-Session-Id default value is:"/rest/com/vmware/cis/session"
Client
You can create your guzzle http client and set its configuartion then pass it to VmwaareApiClient
License
Made with ❤️ in IRAN
The MIT License (MIT). Please see License File for more information.
:raising_hand: Contributing
If you find an issue or have a better way to do something, feel free to open an issue, or a pull request. If you use VmwareApiClient in your open source project, create a pull request to provide its URL as a sample application in the README.md file.
:exclamation: Security
If you discover any security-related issues, please email [email protected]
instead of using the issue tracker.
TODO
- [ ] Add other APIs to the SDK
- [ ] Writing more tests
- [ ] Creating request class for methods that send options like createVm
- [ ] Refactoring bad practice