File: SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress.py

package info (click to toggle)
python-softlayer 6.2.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,508 kB
  • sloc: python: 57,195; makefile: 133; xml: 97; sh: 59
file content (98 lines) | stat: -rw-r--r-- 3,115 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
getBillingItem = {'id': 21370814}
getObject = {
    'accountId': 307608,
    'connectionLimit': 500,
    'connectionLimitUnits': "connections/second",
    'dedicatedFlag': False,
    'highAvailabilityFlag': False,
    'id': 22348,
    'ipAddressId': 7303278,
    'managedResourceFlag': False,
    'sslActiveFlag': False,
    'sslEnabledFlag': True,
    'virtualServers': [
        {
            'allocation': 10,
            'id': 50718,
            'port': 80,
            "serviceGroups": [
                {
                    'id': 51758,
                    'routingMethodId': 10,
                    'routingTypeId': 3,
                    'services': [
                        {
                            'enabled': 1,
                            'id': 1234,
                            'healthChecks': [
                                {
                                    'id': 112112
                                }
                            ],
                            'groupReferences': [
                                {
                                    'serviceGroupId': 51758,
                                    'serviceId': 84986,
                                    'weight': 2
                                }
                            ],
                            'ipAddressId': 14288108,
                            'port': 8080,
                            'status': "DOWN"
                        }
                    ]
                }
            ],
            "virtualIpAddress": {
                'accountId': 307608,
                'connectionLimit': 500,
                'connectionLimitUnits': "connections/second",
                'id': 22348,
                'ipAddressId': 7303278,
            },
            'virtualIpAddressId': 22348
        }]}
getVirtualServers = [
    {
        "allocation": 10,
        "id": 50718,
        "port": 80,
        "serviceGroups": [
            {
                "id": 51758,
                "routingMethodId": 10,
                "routingTypeId": 3,
                "services": [
                    {
                        "enabled": 1,
                        "id": 1234,
                        "healthChecks": [
                            {
                                "id": 112112
                            }
                        ],
                        "groupReferences": [
                            {
                                "serviceGroupId": 51758,
                                "serviceId": 84986,
                                "weight": 2
                            }
                        ],
                        "ipAddressId": 14288108,
                        "port": 8080,
                        "status": "DOWN"
                    }
                ]
            }
        ],
        "virtualIpAddress": {
            "accountId": 307608,
            "connectionLimit": 500,
            "connectionLimitUnits": "connections/second",
            "id": 22348,
            "ipAddressId": 7303278,
        },
        "virtualIpAddressId": 22348
    }
]
editObject = True