diff --git a/SoftLayer/CLI/loadbal/health.py b/SoftLayer/CLI/loadbal/health.py index 00107229c..10619d941 100644 --- a/SoftLayer/CLI/loadbal/health.py +++ b/SoftLayer/CLI/loadbal/health.py @@ -17,7 +17,13 @@ @click.option('--url', '-u', help="Url path for HTTP/HTTPS checks.") @environment.pass_env def cli(env, identifier, uuid, interval, retry, timeout, url): - """Manage LBaaS health checks.""" + """Manage LBaaS health checks. + + Example:: + + slcli loadbal health-edit (--lb-id LOADBAL_ID) (--health-uuid HEALTH_CHECK_UUID) [-i, --interval INTERVAL] + [-r, --retry RETRY] [-t, --timeout TIMEOUT] [-u, --url URL] + """ if not any([interval, retry, timeout, url]): raise exceptions.ArgumentError("Specify either interval, retry, timeout, url") diff --git a/SoftLayer/CLI/loadbal/layer7_policy_list.py b/SoftLayer/CLI/loadbal/layer7_policy_list.py index 60c938973..d304def15 100644 --- a/SoftLayer/CLI/loadbal/layer7_policy_list.py +++ b/SoftLayer/CLI/loadbal/layer7_policy_list.py @@ -13,7 +13,12 @@ help="Front-end Protocol identifier") @environment.pass_env def policies(env, protocol_id): - """List policies of the front-end protocol (listener).""" + """List policies of the front-end protocol (listener). + + Example:: + + slcli loadbal l7policies (--protocol-id PROTOCOL_ID) + """ mgr = SoftLayer.LoadBalancerManager(env.client) if protocol_id: diff --git a/SoftLayer/CLI/loadbal/pools.py b/SoftLayer/CLI/loadbal/pools.py index e33f26969..8ef46737f 100644 --- a/SoftLayer/CLI/loadbal/pools.py +++ b/SoftLayer/CLI/loadbal/pools.py @@ -169,6 +169,13 @@ def l7pool_add(env, identifier, **args): """Adds a new l7 pool -S is in colon deliminated format to make grouping IP:port:weight a bit easier. + + Example:: + + slcli loadbal l7pool-add (--id LOADBAL_ID) (-n, --name NAME) [-m, --method METHOD] + [-s, --server BACKEND_IP:PORT] [-p, --protocol PROTOCOL] [--health-path PATH] + [--health-interval INTERVAL] [--health-retry RETRY] + [--health-timeout TIMEOUT] [--sticky cookie | source-ip] """ mgr = SoftLayer.LoadBalancerManager(env.client)