File: SoftLayer_Virtual_ReservedCapacityGroup.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 (85 lines) | stat: -rw-r--r-- 2,309 bytes parent folder | download | duplicates (4)
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
getObject = {
    'accountId': 1234,
    'backendRouterId': 1411193,
    'backendRouter': {
        'fullyQualifiedDomainName': 'bcr02a.dal13.softlayer.com',
        'hostname': 'bcr02a.dal13',
        'id': 1411193,
        'datacenter': {
            'id': 1854895,
            'longName': 'Dallas 13',
            'name': 'dal13',

        }
    },
    'createDate': '2018-09-24T16:33:09-06:00',
    'id': 3103,
    'modifyDate': '',
    'name': 'test-capacity',
    'instances': [
        {
            'createDate': '2018-09-24T16:33:09-06:00',
            'guestId': 62159257,
            'id': 3501,
            'billingItem': {
                'id': 348319479,
                'recurringFee': '3.04',
                'category': {'name': 'Reserved Capacity'},
                'item': {
                    'keyName': 'B1_1X2_1_YEAR_TERM'
                }
            },
            'guest': {
                'domain': 'cgallo.com',
                'hostname': 'test-reserved-instance',
                'id': 62159257,
                'modifyDate': '2018-09-27T16:49:26-06:00',
                'primaryBackendIpAddress': '10.73.150.179',
                'primaryIpAddress': '169.62.147.165'
            }
        },
        {
            'createDate': '2018-09-24T16:33:10-06:00',
            'guestId': 62159275,
            'id': 3519,
            'billingItem': {
                'id': 348319443,
                'recurringFee': '3.04',
                'category': {
                    'name': 'Reserved Capacity'
                },
                'item': {
                    'keyName': 'B1_1X2_1_YEAR_TERM'
                }
            }
        }
    ]
}


getObject_pending = {
    'accountId': 1234,
    'backendRouterId': 1411193,
    'backendRouter': {
        'fullyQualifiedDomainName': 'bcr02a.dal13.softlayer.com',
        'hostname': 'bcr02a.dal13',
        'id': 1411193,
        'datacenter': {
            'id': 1854895,
            'longName': 'Dallas 13',
            'name': 'dal13',

        }
    },
    'createDate': '2018-09-24T16:33:09-06:00',
    'id': 3103,
    'modifyDate': '',
    'name': 'test-capacity',
    'instances': [
        {
            'createDate': '2018-09-24T16:33:09-06:00',
            'guestId': 62159257,
            'id': 3501,
        }
    ]
}