softlayer-python icon indicating copy to clipboard operation
softlayer-python copied to clipboard

Sub features were missing in slcli hardware list, slcli hardware power-cycle

Open ramkishor-ch opened this issue 2 years ago • 0 comments

  1. slcli hardware list Options: --order, --owner, --private-ip, --public-ip were missing, please add it. Options: -o, --order Filter by ID of the order which purchased hardware server --owner Filter by ID of the owner -v, --private-ip Filter by private IP address -p, --public-ip Filter by public IP address Expected:
./slcli hardware list --help
Usage: slcli hardware list [OPTIONS]

        List hardware servers.

┌────┬──────────────┬──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ -c │ --cpu        │ Filter by number of CPU cores                                                                                                            │
│ -D │ --domain     │ Filter by domain                                                                                                                         │
│ -d │ --datacenter │ Filter by datacenter                                                                                                                     │
│ -H │ --hostname   │ Filter by hostname                                                                                                                       │
│ -m │ --memory     │ Filter by memory in gigabytes                                                                                                            │
│ -n │ --network    │ Filter by network port speed in Mbps                                                                                                     │
│    │ --search     │ Use the more flexible Search API to list instances. See `slcli search --types` for list of searchable fields.                            │
│    │ --tag        │ Filter by tags (multiple occurrence permitted)                                                                                           │
│    │ --sortby     │ Column to sort by  [default: hostname]                                                                                                   │
│    │ --columns    │ Columns to display. [options: guid, primary_ip, backend_ip, datacenter, action, created_by, tags]  [default:                             │
│    │              │ id,hostname,primary_ip,backend_ip,datacenter,action]                                                                                     │
│ -l │ --limit      │ How many results to get in one api call, default is 100  [default: 100]                                                                  │
│ -h │ --help       │ Show this message and exit.                                                                                                              │
│ -o │ --order       │ Filter by ID of the order which purchased hardware server                                                                                         │
│    │ --owner       │ Filter by ID of the owner                                                                                                              │
│ -v │ --private-ip       │ Filter by private IP address                                                                                                              │
│ -p │ --public-ip       │ Filter by public IP address                                                                                                              │
└────┴──────────────┴──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
  1. slcli hardware power-cycle Options: --force was missing, please add it. Options: -f, --force Force operation without confirmation Expected:
 ./slcli hardware power-cycle --help  
Usage: slcli hardware power-cycle [OPTIONS] IDENTIFIER

        Power cycle a server.

┌────┬────────────┬─────────────────────────────┐
│    │ identifier │                             │
│ -h │ --help     │ Show this message and exit. │
│ -f │ --force     │ Force operation without confirmation │
└────┴────────────┴─────────────────────────────┘

ramkishor-ch avatar Jul 17 '23 08:07 ramkishor-ch