Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 18 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
# (PVE2 API) PHP Client

This class provides the building blocks for someone wanting to use PHP to talk to Proxmox's API.

Relatively simple piece of code, just provides a get/put/post/delete abstraction layer as methods
on top of Proxmox's REST API, while also handling the Login Ticket headers required for authentication.

See http://pve.proxmox.com/wiki/Proxmox_VE_API for information about how this API works.
API spec available at https://pve.proxmox.com/pve-docs/api-viewer/index.html
## Docs

- API info available: http://pve.proxmox.com/wiki/Proxmox_VE_API
- API spec available: https://pve.proxmox.com/pve-docs/api-viewer/index.html

## Requirements: ##
## Requirements

PHP 5/7/8 with cURL (including SSL/TLS) support.
- PHP 7.x.x/8.x.x
- cURL (inc. SSL/TLS)

## Usage: ##
## Usage Examples

Example - Return status array for each Proxmox Host in this cluster.
### Return Status for each Node in Cluster

require_once("./pve2-api-php-client/pve2_api.class.php");

Expand All @@ -28,7 +34,7 @@ Example - Return status array for each Proxmox Host in this cluster.
exit;
}

Example - Create a new Linux Container (LXC) on the first host in the cluster.
### Create a new Linux Container (CT)

require_once("./pve2-api-php-client/pve2_api.class.php");

Expand Down Expand Up @@ -64,7 +70,7 @@ Example - Create a new Linux Container (LXC) on the first host in the cluster.
exit;
}

Example - Modify DNS settings on an existing container on the first host.
### Modify DNS settings for existing CT

require_once("./pve2-api-php-client/pve2_api.class.php");

Expand All @@ -90,7 +96,7 @@ Example - Modify DNS settings on an existing container on the first host.
exit;
}

Example - Delete an existing container.
### Delete an existing CT

require_once("./pve2-api-php-client/pve2_api.class.php");

Expand All @@ -106,5 +112,8 @@ Example - Delete an existing container.
exit;
}

## License

Licensed under the MIT License.

See LICENSE file.
1 change: 0 additions & 1 deletion TODO

This file was deleted.

Loading