Network Resources
The network category provides commands for managing network resources in Aruba Cloud.
Available Resources
VPC
Virtual Private Clouds (VPCs) provide isolated network environments for your resources.
Quick Commands:
# List all VPCs
acloud network vpc list
# Get VPC details
acloud network vpc get <vpc-id>
# Create a VPC
acloud network vpc create --name "my-vpc" --region ITBG-Bergamo
# Update a VPC
acloud network vpc update <vpc-id> --name "new-name" --tags tag1,tag2
# Delete a VPC
acloud network vpc delete <vpc-id>
Elastic IP
Elastic IPs are static public IP addresses that can be assigned to your resources.
Quick Commands:
# List all Elastic IPs
acloud network elasticip list
# Get Elastic IP details
acloud network elasticip get <eip-id>
# Create an Elastic IP
acloud network elasticip create --name "my-eip" --region ITBG-Bergamo --billing-period Hour
# Update an Elastic IP
acloud network elasticip update <eip-id> --name "new-name" --tags tag1,tag2
# Delete an Elastic IP
acloud network elasticip delete <eip-id>
Security Rule
Security Rules define the firewall rules for Security Groups. They specify direction (Ingress/Egress), protocol, ports, and target (IP addresses or Security Groups).
Quick Commands:
# List all security rules for a security group
acloud network securityrule list <vpc-id> <securitygroup-id>
# Get security rule details
acloud network securityrule get <vpc-id> <securitygroup-id> <securityrule-id>
# Create a security rule
acloud network securityrule create <vpc-id> <securitygroup-id> \
--name "allow-http" --region ITBG-Bergamo \
--direction Ingress --protocol TCP --port 80 \
--target-kind Ip --target-value "0.0.0.0/0"
# Update a security rule
acloud network securityrule update <vpc-id> <securitygroup-id> <securityrule-id> \
--port 443
# Delete a security rule
acloud network securityrule delete <vpc-id> <securitygroup-id> <securityrule-id>
Load Balancer
Load Balancers distribute traffic across multiple resources. Note: Load Balancers are read-only via the CLI.
Quick Commands:
# List all Load Balancers
acloud network loadbalancer list
# Get Load Balancer details
acloud network loadbalancer get <lb-id>
Common Patterns
Using Project Context
All network commands support project context. Set a context to avoid specifying --project-id every time:
# Set current context
acloud context use my-project
# Now you can run commands without --project-id
acloud network vpc list
acloud network elasticip list
Shell Auto-completion
The CLI provides intelligent auto-completion for resource IDs:
# Type the command and press TAB to see available VPC IDs
acloud network vpc get <TAB>
# Type the command and press TAB to see available Elastic IP IDs
acloud network elasticip update <TAB>
Tagging Resources
Use tags to organize and categorize your network resources:
# Create with tags
acloud network vpc create --name "prod-vpc" --region ITBG-Bergamo --tags production,critical
# Update tags
acloud network vpc update <vpc-id> --tags production,updated,network
acloud network elasticip update <eip-id> --tags production,public
Regional Resources
Network resources are regional. Supported regions:
ITBG-Bergamo- Italy, Bergamo
Specify the region when creating resources:
acloud network vpc create --name "my-vpc" --region ITBG-Bergamo
acloud network elasticip create --name "my-eip" --region ITBG-Bergamo --billing-period Hour
Resource Lifecycle
VPC Lifecycle
- InCreation - VPC is being created
- Active - VPC is ready to use
- Deleting - VPC is being deleted
Elastic IP Lifecycle
- InCreation - Elastic IP is being created
- NotUsed - Elastic IP is created but not attached
- InUse - Elastic IP is attached to a resource
Load Balancer Lifecycle
- InCreation - Load Balancer is being created
- Active - Load Balancer is ready to use