Skip to content

Conversation

bannert1337
Copy link

Commands suitable for batch processing:
Server:

  • server poweroff
  • server poweron
  • server reboot
  • server reset
  • server shutdown
  • server add-label
  • server remove-label
  • server change-type
  • server create-image
  • server enable-backup
  • server disable-backup
  • server enable-protection
  • server disable-protection
  • server attach-to-network
  • server detach-from-network
  • server add-to-placement-group
  • server remove-from-placement-group

Firewall:

  • firewall delete
  • firewall add-label
  • firewall remove-label
  • firewall apply-to-resource
  • firewall remove-from-resource

Volume:

  • volume delete
  • volume add-label
  • volume remove-label
  • volume enable-protection
  • volume disable-protection

Floating IP:

  • floating-ip delete
  • floating-ip add-label
  • floating-ip remove-label
  • floating-ip enable-protection
  • floating-ip disable-protection

Network:

  • network delete
  • network add-label
  • network remove-label
  • network enable-protection
  • network disable-protection

Placement Group:

  • placement-group delete
  • placement-group add-label
  • placement-group remove-label

Primary IP:

  • primary-ip delete
  • primary-ip add-label
  • primary-ip remove-label
  • primary-ip enable-protection
  • primary-ip disable-protection

Closes #1111

…sources

Add support for processing multiple resources in parallel when adding labels,
improving efficiency for bulk operations. Includes batch fetching, validation,
and result display with error handling. Uses configurable batch size and
goroutines for concurrent processing.
Implement FetchBatch and SetLabelsBatch functions to enable concurrent fetching and updating of labels for multiple load balancers using goroutines, improving performance for bulk operations. This extends the existing label command functionality to support batch processing.
Add FetchBatch and SetLabelsBatch functions to the server label commands, enabling concurrent batch operations for fetching and updating labels on multiple servers using goroutines for improved performance.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add batch capabilities to commands
1 participant