metalcloud-cli resource-pool add-server
Add a server to a resource pool
Synopsis
Section titled “Synopsis”Add a server to a resource pool by specifying the resource pool ID and server ID.
This command assigns a server to a resource pool, making it available to users who have access to that pool. The server must exist and not be assigned to another resource pool.
Arguments: pool_id The numeric ID of the resource pool server_id The numeric ID of the server to add
Examples:
Add server with ID 456 to resource pool with ID 123
Section titled “Add server with ID 456 to resource pool with ID 123”metalcloud-cli resource-pool add-server 123 456
Add server using alias
Section titled “Add server using alias”metalcloud-cli rp add-server 789 101112
metalcloud-cli resource-pool add-server <pool_id> <server_id> [flags]Options
Section titled “Options” -h, --help help for add-serverOptions inherited from parent commands
Section titled “Options inherited from parent commands” -k, --api_key string MetalCloud API key -c, --config string Config file path -d, --debug Set to enable debug logging -e, --endpoint string MetalCloud API endpoint -f, --format string Output format. Supported values are 'text','csv','md','json','yaml'. (default "text") -i, --insecure_skip_verify Set to allow insecure transport -l, --log_file string Log file path -v, --verbosity string Log level verbosity (default "INFO")SEE ALSO
Section titled “SEE ALSO”- metalcloud-cli resource-pool - Manage resource pools and their associated resources