enguerr/vmware-api
最新稳定版本:v0.2.0
Composer 安装命令:
composer require enguerr/vmware-api
包简介
A PHP implementation for the VMWare API
README 文档
README
A PHP wrapper for the VMWare API. This is a pre-alpha release, so stuf isn't working correctly atm.
Installation
composer require enguerr/vmware-api
Guide
Our VMWare API implementation contains the following features:
- Simple login using application passwords.
- Automatic retry functionionality that retries requests when connection errors or status codes >= 500 occur.
- Direct function calls for much used api endpoints.
- Easy syntax for all other endpoints using
$api->request($method, $uri, $json = [], $query = []).
// Create a new API instance, endpoint should end on "/rest/". $api = new \enguerr\VMWare\[Vcenter|Appliance|Inventory]IApi('https://vcenter.local/api/');
// LEGACY LOGIN WITH TOKEN $api->login('yourusername', 'yourpassword');
Now your API should be ready to use:
$vms = $api->getListOfVms(); foreach($vms as $vm) { var_dump($vm); }
Documentation
统计信息
- 总下载量: 8
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-10-11