Skip to content

metalcloud-cli resource-pool add-subnet-pool

Add a subnet pool to a resource pool

Add a subnet pool to a resource pool by specifying the resource pool ID and subnet pool ID.

This command assigns a subnet pool to a resource pool, making the subnet pool’s network resources available to users who have access to that resource pool.

Arguments: pool_id The numeric ID of the resource pool subnet_pool_id The numeric ID of the subnet pool to add

Examples:

Add subnet pool with ID 789 to resource pool with ID 123

Section titled “Add subnet pool with ID 789 to resource pool with ID 123”

metalcloud-cli resource-pool add-subnet-pool 123 789

metalcloud-cli rp add-subnet-pool 456 101112

metalcloud-cli resource-pool add-subnet-pool <pool_id> <subnet_pool_id> [flags]
-h, --help help for add-subnet-pool
-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")

Auto generated by spf13/cobra on 11-Aug-2025

Section titled “Auto generated by spf13/cobra on 11-Aug-2025”