@@ -7,7 +7,7 @@ API spec available at https://pve.proxmox.com/pve-docs/api-viewer/index.html
77
88## Requirements: ##
99
10- PHP 5/7 with cURL (including SSL/TLS) support.
10+ PHP 5/7/8 with cURL (including SSL/TLS) support.
1111
1212## Usage: ##
1313
@@ -28,7 +28,7 @@ Example - Return status array for each Proxmox Host in this cluster.
2828 exit;
2929 }
3030
31- Example - Create a new OpenVZ Container on the first host in the cluster.
31+ Example - Create a new Linux Container (LXC) on the first host in the cluster.
3232
3333 require_once("./pve2-api-php-client/pve2_api.class.php");
3434
@@ -43,7 +43,7 @@ Example - Create a new OpenVZ Container on the first host in the cluster.
4343 $first_node = $nodes[0];
4444 unset($nodes);
4545
46- # Create a VZ container on the first node in the cluster.
46+ # Create a Linux Container (LXC) on the first node in the cluster.
4747 $new_container_settings = array();
4848 $new_container_settings['ostemplate'] = "local:vztmpl/debian-6.0-standard_6.0-4_amd64.tar.gz";
4949 $new_container_settings['vmid'] = "1234";
@@ -57,7 +57,7 @@ Example - Create a new OpenVZ Container on the first host in the cluster.
5757 // print_r($new_container_settings);
5858 print("---------------------------\n");
5959
60- print_r($pve2->post("/nodes/".$first_node."/openvz ", $new_container_settings));
60+ print_r($pve2->post("/nodes/".$first_node."/lxc ", $new_container_settings));
6161 print("\n\n");
6262 } else {
6363 print("Login to Proxmox Host failed.\n");
@@ -84,7 +84,7 @@ Example - Modify DNS settings on an existing container on the first host.
8484 $container_settings['nameserver'] = "4.2.2.2";
8585
8686 # NOTE - replace XXXX with container ID.
87- var_dump($pve2->put("/nodes/".$first_node."/openvz /XXXX/config", $container_settings));
87+ var_dump($pve2->put("/nodes/".$first_node."/lxc /XXXX/config", $container_settings));
8888 } else {
8989 print("Login to Proxmox Host failed.\n");
9090 exit;
@@ -100,7 +100,7 @@ Example - Delete an existing container.
100100
101101 if ($pve2->login()) {
102102 # NOTE - replace XXXX with node short name, and YYYY with container ID.
103- var_dump($pve2->delete("/nodes/XXXX/openvz /YYYY"));
103+ var_dump($pve2->delete("/nodes/XXXX/lxc /YYYY"));
104104 } else {
105105 print("Login to Proxmox Host failed.\n");
106106 exit;
0 commit comments