11"""
22usage: sl iscsi [<command>] [<args>...] [options]
33
4- Manage iSCSI targets
4+ Manage, order, delete iSCSI targets
55
66The available commands are:
7- cancel Cancel iSCSI target
8- create Create iSCSI target
9- detail Output details about iSCSI
10- list List iSCSI targets
7+ cancel Cancel an existing iSCSI target
8+ create Order and create an iSCSI target
9+ detail Output details about an iSCSI
10+ list List iSCSI targets on the account
1111
12- For several commands, <identifier> will be asked for. This can be the id
13- for iSCSI.
12+ For several commands, <identifier> will be asked for. This will be the id
13+ for iSCSI target .
1414"""
1515from SoftLayer .CLI import (CLIRunnable , Table , no_going_back , FormattedItem )
1616from SoftLayer .CLI .helpers import (
1717 CLIAbort , ArgumentError , NestedDict , blank , resolve_id , KeyValueTable )
1818from SoftLayer import ISCSIManager
1919
2020
21- class ListISCSI (CLIRunnable ):
21+ class ListISCSIs (CLIRunnable ):
2222
2323 """
24- usage: sl iscsi list [options]
24+ usage: sl iscsi list [options]
2525
26- List iSCSI accounts
26+ List iSCSI targets
2727"""
2828 action = 'list'
2929
@@ -60,14 +60,19 @@ def execute(self, args):
6060class CreateISCSI (CLIRunnable ):
6161
6262 """
63- usage: sl iscsi create [options]
63+ usage: sl iscsi create [options]
6464
65- Order/create an iSCSI storage .
65+ Orders and creates an iSCSI target .
6666
67- Required:
68- -s, --size=SIZE Size of the iSCSI volume to create
69- -d, --datacenter=DC Datacenter shortname (sng01, dal05, ...)
70- """
67+ Examples:
68+ sl iscsi create --size=1 --datacenter=dal05
69+ sl iscsi create --size 1 -d dal05
70+ sl iscsi create -s 1 -d dal05
71+
72+ Required:
73+ -s, --size=SIZE Size of the iSCSI volume to create
74+ -d, --datacenter=DC Datacenter shortname (sng01, dal05, ...)
75+ """
7176 action = 'create'
7277 options = ['confirm' ]
7378 required_params = ['--size' , '--datacenter' ]
@@ -83,9 +88,9 @@ def _parse_create_args(self, args):
8388 ISCSIManager.create_iscsi.
8489 :param dict args: CLI arguments
8590 """
86- size = int ( args ['--size' ])
87- location = str ( args ['--datacenter' ])
88- return size , location
91+ size = args ['--size' ]
92+ location = args ['--datacenter' ]
93+ return int ( size ), str ( location )
8994
9095 def _validate_create_args (self , args ):
9196 """ Raises an ArgumentError if the given arguments are not valid """
@@ -100,13 +105,17 @@ class CancelISCSI(CLIRunnable):
100105 """
101106usage: sl iscsi cancel <identifier> [options]
102107
103- Cancel iSCSI Storage
108+ Cancel existing iSCSI
104109
105- options :
106- --immediate Cancels the iSCSI immediately (instead of on the billing
107- anniversary)
108- --reason=REASON An optional cancellation reason.
110+ Examples :
111+ sl iscsi cancel 12345
112+ sl iscsi cancel 12345 --immediate
113+ sl iscsi cancel 12345 --immediate -- reason='no longer needed'
109114
115+ options :
116+ --immediate Cancels the iSCSI immediately (instead of on the billing
117+ anniversary)
118+ --reason=REASON An optional reason for cancellation.
110119"""
111120 action = 'cancel'
112121 options = ['confirm' ]
@@ -132,12 +141,14 @@ class ISCSIDetails(CLIRunnable):
132141 """
133142usage: sl iscsi detail [--password] <identifier> [options]
134143
135- Get details for a iSCSI
136-
137- Options:
138- --password Show password
144+ Get details for an iSCSI
139145
146+ Examples:
147+ sl iscsi detail 12345
148+ sl iscsi detail 12345 --password
140149
150+ Options:
151+ --password Show credentials to access the iSCSI target
141152"""
142153 action = 'detail'
143154
0 commit comments