1getObject = { 2 'id': 1000, 3 'globalIdentifier': '1a2b3c-1701', 4 'datacenter': {'id': 50, 'name': 'TEST00', 5 'description': 'Test Data Center'}, 6 'billingItem': { 7 'id': 6327, 8 'recurringFee': 1.54, 9 'package': { 10 'id': 911 11 }, 12 'nextInvoiceTotalRecurringAmount': 16.08, 13 'children': [ 14 {'description': 'test', 'nextInvoiceTotalRecurringAmount': 1}, 15 ], 16 'nextInvoiceChildren': [ 17 {'description': 'test', 'nextInvoiceTotalRecurringAmount': 1, 'categoryCode': 'disk1'}, 18 {'description': 'test2', 'nextInvoiceTotalRecurringAmount': 2, 'categoryCode': 'disk3'} 19 ], 20 'orderItem': { 21 'order': { 22 'userRecord': { 23 'username': 'chechu', 24 } 25 } 26 } 27 }, 28 'primaryIpAddress': '172.16.1.100', 29 'hostname': 'hardware-test1', 30 'domain': 'test.sftlyr.ws', 31 'bareMetalInstanceFlag': True, 32 'fullyQualifiedDomainName': 'hardware-test1.test.sftlyr.ws', 33 'processorPhysicalCoreAmount': 2, 34 'memoryCapacity': 2, 35 'primaryBackendIpAddress': '10.1.0.2', 36 'networkManagementIpAddress': '10.1.0.3', 37 'hardwareStatus': {'status': 'ACTIVE'}, 38 'primaryNetworkComponent': {'maxSpeed': 10, 'speed': 10}, 39 'provisionDate': '2013-08-01 15:23:45', 40 'notes': 'These are test notes.', 41 'operatingSystem': { 42 'softwareLicense': { 43 'softwareDescription': { 44 'referenceCode': 'UBUNTU_12_64', 45 'name': 'Ubuntu', 46 'version': 'Ubuntu 12.04 LTS', 47 } 48 }, 49 'passwords': [ 50 {'username': 'root', 'password': 'abc123'} 51 ], 52 }, 53 'remoteManagementAccounts': [ 54 {'username': 'root', 'password': 'abc123'} 55 ], 56 'networkVlans': [ 57 { 58 'networkSpace': 'PRIVATE', 59 'vlanNumber': 1800, 60 'id': 9653 61 }, 62 { 63 'networkSpace': 'PUBLIC', 64 'vlanNumber': 3672, 65 'id': 19082 66 }, 67 ], 68 'tagReferences': [ 69 {'tag': {'name': 'test_tag'}} 70 ], 71 'activeTransaction': { 72 'transactionStatus': { 73 'name': 'TXN_NAME', 74 'friendlyName': 'Friendly Transaction Name', 75 'id': 6660 76 } 77 } 78} 79editObject = True 80setTags = True 81setPrivateNetworkInterfaceSpeed = True 82setPublicNetworkInterfaceSpeed = True 83toggleManagementInterface = True 84powerOff = True 85powerOn = True 86powerCycle = True 87rebootSoft = True 88rebootDefault = True 89rebootHard = True 90createFirmwareUpdateTransaction = True 91createFirmwareReflashTransaction = True 92setUserMetadata = ['meta'] 93reloadOperatingSystem = 'OK' 94getReverseDomainRecords = [ 95 {'resourceRecords': [{'data': '2.0.1.10.in-addr.arpa'}]}] 96bootToRescueLayer = True 97getFrontendNetworkComponents = [ 98 {'maxSpeed': 100}, 99 { 100 'maxSpeed': 1000, 101 'networkComponentGroup': { 102 'groupTypeId': 2, 103 'networkComponents': [{'maxSpeed': 1000}, {'maxSpeed': 1000}] 104 } 105 }, 106 { 107 'maxSpeed': 1000, 108 'networkComponentGroup': { 109 'groupTypeId': 2, 110 'networkComponents': [{'maxSpeed': 1000}, {'maxSpeed': 1000}] 111 } 112 }, 113 { 114 'maxSpeed': 1000, 115 'networkComponentGroup': { 116 'groupTypeId': 2, 117 'networkComponents': [{'maxSpeed': 1000}, {'maxSpeed': 1000}] 118 } 119 }, 120 { 121 'maxSpeed': 1000, 122 'networkComponentGroup': { 123 'groupTypeId': 2, 124 'networkComponents': [{'maxSpeed': 1000}, {'maxSpeed': 1000}] 125 } 126 } 127] 128 129getBandwidthAllotmentDetail = { 130 'allocationId': 25465663, 131 'bandwidthAllotmentId': 138442, 132 'effectiveDate': '2019-04-03T23:00:00-06:00', 133 'endEffectiveDate': None, 134 'id': 25888247, 135 'serviceProviderId': 1, 136 'allocation': { 137 'amount': '250' 138 } 139} 140 141getBillingCycleBandwidthUsage = [ 142 { 143 'amountIn': '.448', 144 'amountOut': '.52157', 145 'type': { 146 'alias': 'PUBLIC_SERVER_BW' 147 } 148 }, 149 { 150 'amountIn': '.03842', 151 'amountOut': '.01822', 152 'type': { 153 'alias': 'PRIVATE_SERVER_BW' 154 } 155 } 156] 157 158getMetricTrackingObjectId = 1000 159 160getAttachedNetworkStorages = [ 161 { 162 "accountId": 11111, 163 "capacityGb": 20, 164 "createDate": "2018-04-05T05:15:49-06:00", 165 "id": 22222, 166 "nasType": "NAS", 167 "serviceProviderId": 1, 168 "storageTypeId": "13", 169 "username": "SL02SEV311111_11", 170 "allowedHardware": [ 171 { 172 "id": 12345, 173 "datacenter": { 174 "id": 449506, 175 "longName": "Frankfurt 2", 176 "name": "fra02", 177 "statusId": 2 178 } 179 } 180 ], 181 "serviceResourceBackendIpAddress": "fsn-fra0201a-fz.service.softlayer.com", 182 "serviceResourceName": "Storage Type 02 File Aggregate stfm-fra0201a" 183 }, 184 { 185 "accountId": 11111, 186 "capacityGb": 12000, 187 "createDate": "2018-01-28T04:57:30-06:00", 188 "id": 3777111, 189 "nasType": "ISCSI", 190 "notes": "BlockStorage12T", 191 "password": "", 192 "serviceProviderId": 1, 193 "storageTypeId": "7", 194 "username": "SL02SEL32222-9", 195 "allowedHardware": [ 196 { 197 "id": 629222, 198 "datacenter": { 199 "id": 449506, 200 "longName": "Frankfurt 2", 201 "name": "fra02", 202 "statusId": 2 203 } 204 } 205 ], 206 "serviceResourceBackendIpAddress": "10.31.95.152", 207 "serviceResourceName": "Storage Type 02 Block Aggregate stbm-fra0201a" 208 } 209] 210 211getAllowedHost = { 212 "accountId": 11111, 213 "credentialId": 22222, 214 "id": 33333, 215 "name": "iqn.2020-03.com.ibm:sl02su11111-v62941551", 216 "resourceTableId": 6291111, 217 "resourceTableName": "VIRTUAL_GUEST", 218 "credential": { 219 "accountId": "11111", 220 "createDate": "2020-03-20T13:35:47-06:00", 221 "id": 44444, 222 "nasCredentialTypeId": 2, 223 "password": "SjFDCpHrjskfj", 224 "username": "SL02SU11111-V62941551" 225 } 226} 227 228getHardDrives = [ 229 { 230 "id": 11111, 231 "serialNumber": "z1w4sdf", 232 "serviceProviderId": 1, 233 "hardwareComponentModel": { 234 "capacity": "1000", 235 "description": "SATAIII:2000:8300:Constellation", 236 "id": 111, 237 "manufacturer": "Seagate", 238 "name": "Constellation ES", 239 "hardwareGenericComponentModel": { 240 "capacity": "1000", 241 "units": "GB", 242 "hardwareComponentType": { 243 "id": 1, 244 "keyName": "HARD_DRIVE", 245 "type": "Hard Drive", 246 "typeParentId": 5 247 } 248 } 249 } 250 } 251] 252 253getVirtualHost = { 254 "accountId": 11111, 255 "createDate": "2018-10-08T10:54:48-06:00", 256 "description": "host16.vmware.chechu.com", 257 "hardwareId": 22222, 258 "id": 33333, 259 "name": "host16.vmware.chechu.com", 260 "uuid": "00000000-0000-0000-0000-0cc11111", 261 "hardware": { 262 "accountId": 11111, 263 "domain": "chechu.com", 264 "hostname": "host16.vmware", 265 "id": 22222, 266 "hardwareStatus": { 267 "id": 5, 268 "status": "ACTIVE" 269 } 270 } 271} 272 273getUpgradeItemPrices = [ 274 { 275 "id": 21525, 276 "recurringFee": "0", 277 "categories": [ 278 { 279 "categoryCode": "port_speed", 280 "id": 26, 281 "name": "Uplink Port Speeds", 282 } 283 ], 284 "item": { 285 "capacity": "10000", 286 "description": "10 Gbps Redundant Public & Private Network Uplinks", 287 "id": 4342, 288 "keyName": "10_GBPS_REDUNDANT_PUBLIC_PRIVATE_NETWORK_UPLINKS" 289 } 290 }, 291 { 292 "hourlyRecurringFee": ".247", 293 "id": 209391, 294 "recurringFee": "164", 295 "categories": [ 296 { 297 "categoryCode": "ram", 298 "id": 3, 299 "name": "RAM" 300 } 301 ], 302 "item": { 303 "capacity": "32", 304 "description": "32 GB RAM", 305 "id": 11291, 306 "keyName": "RAM_32_GB_DDR4_2133_ECC_NON_REG" 307 } 308 }, 309 { 310 "hourlyRecurringFee": ".068", 311 "id": 22482, 312 "recurringFee": "50", 313 "categories": [ 314 { 315 "categoryCode": "disk_controller", 316 "id": 11, 317 "name": "Disk Controller", 318 } 319 ], 320 "item": { 321 "capacity": "0", 322 "description": "RAID", 323 "id": 4478, 324 "keyName": "DISK_CONTROLLER_RAID", 325 } 326 }, 327 { 328 "id": 50357, 329 "recurringFee": "0", 330 "categories": [ 331 { 332 "categoryCode": "bandwidth", 333 "id": 10, 334 "name": "Public Bandwidth", 335 } 336 ], 337 "item": { 338 "capacity": "500", 339 "description": "500 GB Bandwidth Allotment", 340 "id": 6177, 341 "keyName": "BANDWIDTH_500_GB" 342 } 343 }, 344 { 345 "hourlyRecurringFee": ".023", 346 "id": 49759, 347 "recurringFee": "15", 348 "categories": [ 349 { 350 "categoryCode": "disk2", 351 "id": 6, 352 "name": "Third Hard Drive" 353 } 354 ], 355 "item": { 356 "capacity": "1000", 357 "description": "1.00 TB SATA", 358 "id": 6159, 359 "keyName": "HARD_DRIVE_1_00_TB_SATA_2", 360 } 361 }, 362 { 363 "id": 49759, 364 "recurringFee": "0", 365 "categories": [ 366 { 367 "categoryCode": "disk1", 368 "id": 5, 369 "name": "Second Hard Drive" 370 } 371 ], 372 "item": { 373 "capacity": "1000", 374 "description": "1.00 TB SATA", 375 "id": 6159, 376 "keyName": "HARD_DRIVE_1_00_TB_SATA_2" 377 } 378 } 379] 380 381getComponents = [{ 382 "hardwareComponentModelId": 147, 383 "hardwareId": 1234, 384 "id": 369, 385 "modifyDate": "2017-11-10T16:59:38-06:00", 386 "serviceProviderId": 1, 387 "hardwareComponentModel": { 388 "name": "IMM2 - Onboard", 389 "firmwares": [ 390 { 391 "createDate": "2020-09-24T13:46:29-06:00", 392 "version": "5.60" 393 }, 394 { 395 "createDate": "2019-10-14T16:51:12-06:00", 396 "version": "5.10" 397 }]}}] 398