Skip to content

Commit 8448ccd

Browse files
#1158 added LB docs
1 parent 2249724 commit 8448ccd

File tree

3 files changed

+74
-9
lines changed

3 files changed

+74
-9
lines changed

SoftLayer/managers/cdn.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@ def add_origin(self, unique_id, origin, path, origin_type="server", header=None,
7474
:param str protocol: the protocol of the origin (default: HTTP)
7575
:param str bucket_name: name of the available resource
7676
:param str file_extensions: file extensions that can be stored in the CDN, e.g. "jpg,png"
77-
:param str optimize_for: performance configuration, available options: web, video, and file
78-
where:
79-
'web' --> 'General web delivery'
80-
'video' --> 'Video on demand optimization'
81-
'file' --> 'Large file optimization'
77+
:param str optimize_for: performance configuration, available options: web, video, and file where:
78+
79+
- 'web' = 'General web delivery'
80+
- 'video' = 'Video on demand optimization'
81+
- 'file' = 'Large file optimization'
8282
:param str cache_query: rules with the following formats: 'include-all', 'ignore-all',
8383
'include: space separated query-names',
8484
'ignore: space separated query-names'.'

SoftLayer/managers/load_balancer.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,11 @@ def get_lb(self, identifier, mask=None):
7676
def update_lb_health_monitors(self, uuid, checks):
7777
"""calls SoftLayer_Network_LBaaS_HealthMonitor::updateLoadBalancerHealthMonitors()
7878
79-
https://sldn.softlayer.com/reference/services/SoftLayer_Network_LBaaS_HealthMonitor/updateLoadBalancerHealthMonitors/
80-
https://sldn.softlayer.com/reference/datatypes/SoftLayer_Network_LBaaS_LoadBalancerHealthMonitorConfiguration/
79+
- `updateLoadBalancerHealthMonitors <https://sldn.softlayer.com/reference/services/SoftLayer_Network_LBaaS_\
80+
HealthMonitor/updateLoadBalancerHealthMonitors/>`_
81+
- `SoftLayer_Network_LBaaS_LoadBalancerHealthMonitorConfiguration <https://sldn.softlayer.com/reference/\
82+
datatypes/SoftLayer_Network_LBaaS_LoadBalancerHealthMonitorConfiguration/>`_
83+
8184
:param uuid: loadBalancerUuid
8285
:param checks list: SoftLayer_Network_LBaaS_LoadBalancerHealthMonitorConfiguration[]
8386
"""
@@ -137,8 +140,8 @@ def add_lb_listener(self, identifier, listener):
137140
def add_lb_l7_pool(self, identifier, pool, members, health, session):
138141
"""Creates a new l7 pool for a LBaaS instance
139142
140-
https://sldn.softlayer.com/reference/services/SoftLayer_Network_LBaaS_L7Pool/createL7Pool/
141-
https://cloud.ibm.com/docs/infrastructure/loadbalancer-service?topic=loadbalancer-service-api-reference
143+
- https://sldn.softlayer.com/reference/services/SoftLayer_Network_LBaaS_L7Pool/createL7Pool/
144+
- https://cloud.ibm.com/docs/infrastructure/loadbalancer-service?topic=loadbalancer-service-api-reference
142145
143146
:param identifier: UUID of the LBaaS instance
144147
:param pool SoftLayer_Network_LBaaS_L7Pool: Description of the pool

docs/cli/loadbal.rst

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
.. _cli_loadbalancer:
2+
3+
LoadBalancers
4+
===================================
5+
These commands were added in version `5.8.0 <https://github.com/softlayer/softlayer-python/releases/tag/v5.8.0>`_
6+
7+
LBaaS Commands
8+
~~~~~~~~~~~~~~
9+
10+
- `LBaaS Product <https://www.ibm.com/cloud/load-balancer>`_
11+
- `LBaaS Documentation <https://cloud.ibm.com/docs/infrastructure/loadbalancer-service>`_
12+
13+
.. click:: SoftLayer.CLI.loadbal.detail:cli
14+
:prog: loadbal detail
15+
:show-nested:
16+
.. click:: SoftLayer.CLI.loadbal.list:cli
17+
:prog: loadbal list
18+
:show-nested:
19+
.. click:: SoftLayer.CLI.loadbal.health:cli
20+
:prog: loadbal health
21+
:show-nested:
22+
.. click:: SoftLayer.CLI.loadbal.members:add
23+
:prog: loadbal member-add
24+
:show-nested:
25+
.. click:: SoftLayer.CLI.loadbal.members:remove
26+
:prog: loadbal member-remote
27+
:show-nested:
28+
.. click:: SoftLayer.CLI.loadbal.pools:add
29+
:prog: loadbal pool-add
30+
:show-nested:
31+
.. click:: SoftLayer.CLI.loadbal.pools:edit
32+
:prog: loadbal pool-edit
33+
:show-nested:
34+
.. click:: SoftLayer.CLI.loadbal.pools:delete
35+
:prog: loadbal pool-delete
36+
:show-nested:
37+
.. click:: SoftLayer.CLI.loadbal.pools:l7pool_add
38+
:prog: loadbal l7pool-add
39+
:show-nested:
40+
.. click:: SoftLayer.CLI.loadbal.pools:l7pool_del
41+
:prog: loadbal l7pool-del
42+
:show-nested:
43+
.. click:: SoftLayer.CLI.loadbal.order:order
44+
:prog: loadbal order
45+
:show-nested:
46+
.. click:: SoftLayer.CLI.loadbal.order:order_options
47+
:prog: loadbal order-options
48+
:show-nested:
49+
.. click:: SoftLayer.CLI.loadbal.order:cancel
50+
:prog: loadbal cancel
51+
:show-nested:
52+
53+
54+
NetScaler Commands
55+
~~~~~~~~~~~~~~~~~~
56+
57+
.. click:: SoftLayer.CLI.loadbal.ns_detail:cli
58+
:prog: loadbal ns-detail
59+
:show-nested:
60+
.. click:: SoftLayer.CLI.loadbal.ns_list:cli
61+
:prog: loadbal ns-list
62+
:show-nested:

0 commit comments

Comments
 (0)