Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d10ca03

Browse files
Merge pull request #2062 from softlayer/jayasilan-issue2016
Example text for slcli block volume-list, slcli block volume-limit command #2016
2 parents 5f99361 + b080a50 commit d10ca03

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

SoftLayer/CLI/block/limit.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,13 @@
1818
@click.option('--datacenter', '-d', help='Filter by datacenter')
1919
@environment.pass_env
2020
def cli(env, sortby, datacenter):
21-
"""List number of block storage volumes limit per datacenter."""
21+
"""List number of block storage volumes limit per datacenter.
22+
23+
Example::
24+
slcli block volume-limits
25+
This command lists the storage limits per datacenter for this account.
26+
"""
27+
2228
block_manager = SoftLayer.BlockStorageManager(env.client)
2329
block_volumes = block_manager.list_block_volume_limit()
2430

SoftLayer/CLI/block/list.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,14 @@
6464
default=','.join(DEFAULT_COLUMNS))
6565
@environment.pass_env
6666
def cli(env, sortby, columns, datacenter, username, storage_type, order):
67-
"""List block storage."""
67+
"""List block storage.
68+
69+
Example::
70+
slcli block volume-list -d dal09 -t endurance --sortby capacity_gb
71+
This command lists all endurance volumes on current account \
72+
that are located at dal09, and sorts them by capacity.
73+
"""
74+
6875
block_manager = SoftLayer.BlockStorageManager(env.client)
6976
block_volumes = block_manager.list_block_volumes(datacenter=datacenter,
7077
username=username,

0 commit comments

Comments
 (0)