Linode http api methods and utilities
cargo run scale up --domain-id=2958920 --image-id=linode/arch --instance-type=g6-dedicated-2 --region=gb-lon --tag=test --n=20
scale_up_one does these tasks:
- creates an instance
- attaches the configured tag VLAN with a sequential
10.0.0.x/24address - restarts the instance
- updates or creates the DNS A record
- returns the instance ID, addresses, VLAN label, DNS name, and region in a
ScaleUpResult.
scale_down removes one tagged instance in the selected region. It first
points the matching DNS record to localhost, then destroys the instance.
scale_up_one_named reuses an existing instance with the requested label.
scale_down_named removes only the instance with that label.