Skip to content

Commit c14bf0c

Browse files
J JayasilanJ Jayasilan
authored andcommitted
Examples included for slcli file volume-list, volume-modify, volume-options command
1 parent bd95421 commit c14bf0c

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

SoftLayer/CLI/file/list.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,10 @@
6767
default=','.join(DEFAULT_COLUMNS))
6868
@environment.pass_env
6969
def cli(env, sortby, columns, datacenter, username, storage_type, order):
70-
"""List file storage."""
70+
"""List file storage.
71+
72+
Example:
73+
slcli file volume-list -d dal10 --storage-type endurance --sortby capacity_gb"""
7174
file_manager = SoftLayer.FileStorageManager(env.client)
7275
file_volumes = file_manager.list_file_volumes(datacenter=datacenter,
7376
username=username,

SoftLayer/CLI/file/modify.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@
3333
type=click.Choice(['0.25', '2', '4', '10']))
3434
@environment.pass_env
3535
def cli(env, volume_id, new_size, new_iops, new_tier):
36-
"""Modify an existing file storage volume."""
36+
"""Modify an existing file storage volume.
37+
38+
Examples:
39+
slcli file volume-modify 12345678 --new-size 1000 --new-iops 400
40+
"""
3741
file_manager = SoftLayer.FileStorageManager(env.client)
3842

3943
if new_tier is not None:

SoftLayer/CLI/file/options.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,12 @@
1919
'add it to the --prices option using location short name, e.g. --prices dal13')
2020
@environment.pass_env
2121
def cli(env, prices, location=None):
22-
"""List all options for ordering a block storage"""
22+
"""List all options for ordering a block storage
23+
24+
Examples:
25+
slcli file volume-options
26+
slcli file volume-options --prices dal13
27+
"""
2328

2429
order_manager = SoftLayer.OrderingManager(env.client)
2530
items = order_manager.get_items(PACKAGE_STORAGE)

0 commit comments

Comments
 (0)