Autoscale Commands¶
These commands were added in version 5.8.1
For making changes to the triggers or the autoscale group itself, see the Autoscale Portal
autoscale list¶
List AutoScale Groups.
autoscale list [OPTIONS]
autoscale detail¶
Get details of an Autoscale groups.
autoscale detail [OPTIONS] IDENTIFIER
Arguments
- IDENTIFIER¶
Required argument
autoscale scale¶
Scales an Autoscale group. Bypasses a scale group’s cooldown period.
autoscale scale [OPTIONS] IDENTIFIER
Options
- --up, --down¶
‘–up’ adds guests, ‘–down’ removes guests.
- --by, --to¶
Required ‘–by’ will add/remove the specified number of guests. ‘–to’ will add/remove a number of guests to get the group’s guest count to the specified number.
- --amount <amount>¶
Required Number of guests for the scale action.
Arguments
- IDENTIFIER¶
Required argument
autoscale logs¶
Retreive logs for an autoscale group
autoscale logs [OPTIONS] IDENTIFIER
Options
- -d, --date-min <date_min>¶
Earliest date to retreive logs for.
Arguments
- IDENTIFIER¶
Required argument
autoscale tag¶
Tags all guests in an autoscale group.
–tags “Use, quotes, if you, want whitespace”
–tags Otherwise,Just,commas
autoscale tag [OPTIONS] IDENTIFIER
Options
- -g, --tags <tags>¶
Tags to set for each guest in this group. Existing tags are overwritten. An empty string will remove all tags
Arguments
- IDENTIFIER¶
Required argument
autoscale edit¶
Edits an Autoscale group.
autoscale edit [OPTIONS] IDENTIFIER
Options
- --name <name>¶
Scale group’s name.
- --min <minimum>¶
Set the minimum number of guests
- --max <maximum>¶
Set the maximum number of guests
- --userdata <userdata>¶
User defined metadata string
- -F, --userfile <userfile>¶
Read userdata from a file
- --cpu <cpu>¶
Number of CPUs for new guests (existing not effected
- --memory <memory>¶
RAM in MB or GB for new guests (existing not effected
Arguments
- IDENTIFIER¶
Required argument
autoscale delete¶
Delete this group and destroy all members of it.
Example: slcli autoscale delete autoscaleId
autoscale delete [OPTIONS] IDENTIFIER
Arguments
- IDENTIFIER¶
Required argument
autoscale create¶
Order/Create a scale group.
E.g.
‘slcli autoscale create –name test –cooldown 3600 –min 1 –max 2 -o CENTOS_7_64 –datacenter dal10 –termination-policy 2 -H testvs -D test.com –cpu 2 –memory 1024 –policy-relative absolute –policy-name policytest –policy-amount 3 –regional 102 –disk 25 –disk 30 –disk 25’
autoscale create [OPTIONS]
Options
- --name <name>¶
Required Scale group’s name.
- --cooldown <cooldown>¶
Required The number of seconds this group will wait after lastActionDate before performing another action.
- --min <minimum>¶
Required Set the minimum number of guests
- --max <maximum>¶
Required Set the maximum number of guests
- --regional <regional>¶
Required The identifier of the regional group this scaling group is assigned to.
- -i, --postinstall <postinstall>¶
Post-install script to download
- -o, --os <os>¶
Required OS install code. Tip: you can specify <OS>_LATEST
- -d, --datacenter <datacenter>¶
Required Datacenter shortname
- -H, --hostname <hostname>¶
Required Host portion of the FQDN
- -D, --domain <domain>¶
Required Domain portion of the FQDN
- --cpu <cpu>¶
Required Number of CPUs for new guests (existing not effected
- --memory <memory>¶
Required RAM in MB or GB for new guests (existing not effected
- --policy-relative <policy_relative>¶
Required The type of scale to perform(ABSOLUTE, PERCENT, RELATIVE).
- --termination-policy <termination_policy>¶
The termination policy for the group(CLOSEST_TO_NEXT_CHARGE=1, NEWEST=2, OLDEST=3).
- --policy-name <policy_name>¶
Collection of policies for this group. This can be empty.
- --policy-amount <policy_amount>¶
The number to scale by. This number has different meanings based on type.
- --userdata <userdata>¶
User defined metadata string
- -k, --key <key>¶
SSH keys to add to the root user (multiple occurrence permitted)
- --disk <disk>¶
Required Disk sizes (multiple occurrence permitted)