[GH-ISSUE #25] How to get next bigger vmID? #21

Closed
opened 2026-02-26 17:32:08 +03:00 by kerem · 1 comment
Owner

Originally created by @OfflinePing on GitHub (Aug 31, 2023).
Original GitHub issue: https://github.com/Corsinvest/cv4pve-api-php/issues/25

Hey,
I want to automatically deploy new containers. How do I auto Increment the vmID?

my code:
$client->getNodes()->get('pve-claas')->getLxc()->createVm('debian-11-standard_11.7.1_amd64.tar.zst', '...AUTOINCREMENT-HERE');

Originally created by @OfflinePing on GitHub (Aug 31, 2023). Original GitHub issue: https://github.com/Corsinvest/cv4pve-api-php/issues/25 Hey, I want to automatically deploy new containers. How do I auto Increment the vmID? my code: `$client->getNodes()->get('pve-claas')->getLxc()->createVm('debian-11-standard_11.7.1_amd64.tar.zst', '...AUTOINCREMENT-HERE');`
kerem closed this issue 2026-02-26 17:32:08 +03:00
Author
Owner

@franklupo commented on GitHub (Sep 1, 2023):

$client->getCluster()->getNextId()

<!-- gh-comment-id:1702265650 --> @franklupo commented on GitHub (Sep 1, 2023): $client->getCluster()->getNextId()
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cv4pve-api-php#21
No description provided.