1getPrivateBlockDeviceTemplateGroups = [{ 2 'accountId': 1234, 3 'blockDevices': [], 4 'createDate': '2013-12-05T21:53:03-06:00', 5 'globalIdentifier': 'E6DBD73B-1651-4B28-BCBA-A11DF7C9D79E', 6 'id': 200, 7 'name': 'test_image', 8 'parentId': '', 9 'publicFlag': False, 10}, { 11 'accountId': 1234, 12 'blockDevices': [], 13 'createDate': '2013-12-05T21:53:03-06:00', 14 'globalIdentifier': 'F9329795-4220-4B0A-B970-C86B950667FA', 15 'id': 201, 16 # 'name': 'private_image2', 17 'name': u'a¬ሴ€耀', 18 'parentId': '', 19 'publicFlag': False, 20}] 21 22getVirtualGuests = [{ 23 'id': 100, 24 'metricTrackingObjectId': 1, 25 'hostname': 'vs-test1', 26 'domain': 'test.sftlyr.ws', 27 'fullyQualifiedDomainName': 'vs-test1.test.sftlyr.ws', 28 'status': {'keyName': 'ACTIVE', 'name': 'Active'}, 29 'datacenter': {'id': 50, 'name': 'TEST00', 30 'description': 'Test Data Center'}, 31 'powerState': {'keyName': 'RUNNING', 'name': 'Running'}, 32 'maxCpu': 2, 33 'maxMemory': 1024, 34 'primaryIpAddress': '172.16.240.2', 35 'globalIdentifier': '1a2b3c-1701', 36 'primaryBackendIpAddress': '10.45.19.37', 37 'hourlyBillingFlag': False, 38 39 'billingItem': { 40 'id': 6327, 41 'recurringFee': 1.54, 42 'orderItem': { 43 'order': { 44 'userRecord': { 45 'username': 'chechu', 46 } 47 } 48 } 49 }, 50}, { 51 'id': 104, 52 'metricTrackingObjectId': 2, 53 'hostname': 'vs-test2', 54 'domain': 'test.sftlyr.ws', 55 'fullyQualifiedDomainName': 'vs-test2.test.sftlyr.ws', 56 'status': {'keyName': 'ACTIVE', 'name': 'Active'}, 57 'datacenter': {'id': 50, 'name': 'TEST00', 58 'description': 'Test Data Center'}, 59 'powerState': {'keyName': 'RUNNING', 'name': 'Running'}, 60 'maxCpu': 4, 61 'maxMemory': 4096, 62 'primaryIpAddress': '172.16.240.7', 63 'globalIdentifier': '05a8ac-6abf0', 64 'primaryBackendIpAddress': '10.45.19.35', 65 'hourlyBillingFlag': True, 66 'billingItem': { 67 'id': 6327, 68 'recurringFee': 1.54, 69 'orderItem': { 70 'order': { 71 'userRecord': { 72 'username': 'chechu', 73 } 74 } 75 } 76 }, 77 'virtualRack': {'id': 1, 'bandwidthAllotmentTypeId': 2}, 78}] 79 80getMonthlyVirtualGuests = [vs for vs in getVirtualGuests 81 if not vs['hourlyBillingFlag']] 82getHourlyVirtualGuests = [vs for vs in getVirtualGuests 83 if vs['hourlyBillingFlag']] 84 85getHardware = [{ 86 'id': 1000, 87 'metricTrackingObject': {'id': 3}, 88 'globalIdentifier': '1a2b3c-1701', 89 'datacenter': {'id': 50, 'name': 'TEST00', 90 'description': 'Test Data Center'}, 91 'billingItem': { 92 'id': 6327, 93 'recurringFee': 1.54, 94 'orderItem': { 95 'order': { 96 'userRecord': { 97 'username': 'chechu', 98 } 99 } 100 } 101 }, 102 'primaryIpAddress': '172.16.1.100', 103 'hostname': 'hardware-test1', 104 'domain': 'test.sftlyr.ws', 105 'fullyQualifiedDomainName': 'hardware-test1.test.sftlyr.ws', 106 'processorPhysicalCoreAmount': 2, 107 'memoryCapacity': 2, 108 'primaryBackendIpAddress': '10.1.0.2', 109 'networkManagementIpAddress': '10.1.0.3', 110 'hardwareStatus': {'status': 'ACTIVE'}, 111 'provisionDate': '2013-08-01 15:23:45', 112 'notes': 'These are test notes.', 113 'operatingSystem': { 114 'softwareLicense': { 115 'softwareDescription': { 116 'referenceCode': 'Ubuntu', 117 'name': 'Ubuntu 12.04 LTS', 118 } 119 }, 120 'passwords': [ 121 {'username': 'root', 'password': 'abc123'} 122 ], 123 }, 124 'networkVlans': [ 125 { 126 'networkSpace': 'PRIVATE', 127 'vlanNumber': 1800, 128 'id': 9653 129 }, 130 { 131 'networkSpace': 'PUBLIC', 132 'vlanNumber': 3672, 133 'id': 19082 134 }, 135 ], 136 'tagReferences': [ 137 {'tag': {'name': 'test_tag'}} 138 ], 139 'activeTransaction': { 140 'transactionStatus': { 141 'name': 'TXN_NAME', 142 'friendlyName': 'Friendly Transaction Name', 143 'id': 6660 144 } 145 }, 146 "virtualHost": { 147 "accountId": 11111, 148 "id": 22222, 149 "name": "vmware.chechu.com", 150 "guests": [ 151 { 152 "accountId": 11111, 153 "createDate": "2019-09-05T17:03:42-06:00", 154 "hostname": "NSX-T Manager", 155 "id": 33333, 156 "maxCpu": 16, 157 "maxCpuUnits": "CORE", 158 "maxMemory": 49152, 159 "powerState": { 160 "keyName": "RUNNING", 161 "name": "Running" 162 }, 163 "status": { 164 "keyName": "ACTIVE", 165 "name": "Active" 166 } 167 }]} 168}, { 169 'id': 1001, 170 'metricTrackingObject': {'id': 4}, 171 'globalIdentifier': '1a2b3c-1702', 172 'datacenter': {'name': 'TEST00', 173 'description': 'Test Data Center'}, 174 'billingItem': { 175 'id': 7112, 176 'orderItem': { 177 'order': { 178 'userRecord': { 179 'username': 'chechu', 180 } 181 } 182 } 183 }, 184 'primaryIpAddress': '172.16.4.94', 185 'hostname': 'hardware-test2', 186 'domain': 'test.sftlyr.ws', 187 'fullyQualifiedDomainName': 'hardware-test2.test.sftlyr.ws', 188 'processorPhysicalCoreAmount': 4, 189 'memoryCapacity': 4, 190 'primaryBackendIpAddress': '10.1.0.3', 191 'hardwareStatus': {'status': 'ACTIVE'}, 192 'provisionDate': '2013-08-03 07:15:22', 193 'operatingSystem': { 194 'softwareLicense': { 195 'softwareDescription': { 196 'referenceCode': 'Ubuntu', 197 'name': 'Ubuntu 12.04 LTS', 198 } 199 } 200 }, 201 'networkVlans': [ 202 { 203 'networkSpace': 'PRIVATE', 204 'vlanNumber': 1800, 205 'id': 9653 206 }, 207 { 208 'networkSpace': 'PUBLIC', 209 'vlanNumber': 3672, 210 'id': 19082 211 }, 212 ], 213 "virtualHost": { 214 "accountId": 11111, 215 "id": 22222, 216 "name": "host14.vmware.chechu.com", 217 "guests": [] 218 } 219}, { 220 'id': 1002, 221 'metricTrackingObject': {'id': 5}, 222 'datacenter': {'name': 'TEST00', 223 'description': 'Test Data Center'}, 224 'billingItem': { 225 'id': 7112, 226 'orderItem': { 227 'order': { 228 'userRecord': { 229 'username': 'chechu', 230 } 231 } 232 } 233 }, 234 'primaryIpAddress': '172.16.4.95', 235 'hostname': 'hardware-bad-memory', 236 'domain': 'test.sftlyr.ws', 237 'fullyQualifiedDomainName': 'hardware-bad-memory.test.sftlyr.ws', 238 'processorPhysicalCoreAmount': 4, 239 'memoryCapacity': None, 240 'primaryBackendIpAddress': '10.1.0.4', 241 'hardwareStatus': {'status': 'ACTIVE'}, 242 'provisionDate': '2014-04-02 13:48:00', 243 'operatingSystem': { 244 'softwareLicense': { 245 'softwareDescription': { 246 'referenceCode': 'Ubuntu', 247 'name': 'Ubuntu 12.04 LTS', 248 } 249 } 250 }, 251 'networkVlans': [ 252 { 253 'networkSpace': 'PRIVATE', 254 'vlanNumber': 1800, 255 'id': 9653 256 }, 257 { 258 'networkSpace': 'PUBLIC', 259 'vlanNumber': 3672, 260 'id': 19082 261 }, 262 ], 263 "virtualHost": { 264 "accountId": 11111, 265 "id": 22222, 266 "name": "host14.vmware.chechu.com", 267 "guests": [] 268 } 269}, { 270 'id': 1003, 271 "virtualHost": { 272 "accountId": 11111, 273 "id": 22222, 274 "name": "host14.vmware.chechu.com", 275 "guests": [] 276 } 277}] 278getDomains = [{'name': 'example.com', 279 'id': 12345, 280 'serial': 2014030728, 281 'updateDate': '2014-03-07T13:52:31-06:00'}] 282 283getObject = { 284 'cdnAccounts': [ 285 { 286 "cdnAccountName": "1234a", 287 "providerPortalAccessFlag": False, 288 "createDate": "2012-06-25T14:05:28-07:00", 289 "id": 1234, 290 "legacyCdnFlag": False, 291 "dependantServiceFlag": True, 292 "cdnSolutionName": "ORIGIN_PULL", 293 "statusId": 4, 294 "accountId": 1234 295 }, 296 { 297 "cdnAccountName": "1234a", 298 "providerPortalAccessFlag": False, 299 "createDate": "2012-07-24T13:34:25-07:00", 300 "id": 1234, 301 "legacyCdnFlag": False, 302 "dependantServiceFlag": False, 303 "cdnSolutionName": "POP_PULL", 304 "statusId": 4, 305 "accountId": 1234 306 } 307 ], 308 'accountId': 1234 309} 310 311getRwhoisData = { 312 'abuseEmail': 'abuseEmail', 313 'accountId': 1234, 314 'address1': 'address1', 315 'address2': 'address2', 316 'city': 'city', 317 'companyName': 'companyName', 318 'country': 'country', 319 'createDate': 'createDate', 320 'firstName': 'firstName', 321 'id': 'id', 322 'lastName': 'lastName', 323 'modifyDate': 'modifyDate', 324 'postalCode': 'postalCode', 325 'privateResidenceFlag': True, 326} 327 328getGlobalIpRecords = [{ 329 'id': '200', 330 'ipAddress': { 331 'subnet': { 332 'networkIdentifier': '10.0.0.1', 333 }, 334 'ipAddress': '127.0.0.1', 335 }, 336 'destinationIpAddress': { 337 'ipAddress': '127.0.0.1', 338 'virtualGuest': {'fullyQualifiedDomainName': 'example.com'}} 339}, { 340 'id': '201', 341 'ipAddress': { 342 'subnet': { 343 'networkIdentifier': '10.0.0.1', 344 }, 345 'ipAddress': '127.0.0.1', 346 }, 347 'destinationIpAddress': { 348 'ipAddress': '127.0.0.1', 349 'hardware': {'fullyQualifiedDomainName': 'example.com'}} 350}] 351 352getSubnets = [ 353 { 354 'id': '100', 355 'networkIdentifier': '10.0.0.1', 356 'cidr': '/24', 357 'networkVlanId': 123, 358 'datacenter': {'name': 'dal00'}, 359 'version': 4, 360 'subnetType': 'PRIMARY', 361 'ipAddressCount': 10, 362 'virtualGuests': [], 363 'hardware': [], 364 "podName": "dal05.pod04", 365 "networkVlan": { 366 "accountId": 123, 367 "id": 2581232, 368 "modifyDate": "2019-07-17T01:09:51+08:00", 369 "vlanNumber": 795 370 } 371 }, 372 { 373 "gateway": "5.111.11.111", 374 "id": '111', 375 "modifyDate": "2018-07-24T17:14:57+08:00", 376 'networkIdentifier': '10.0.0.1', 377 'ipAddressCount': 10, 378 'cidr': '/24', 379 'virtualGuests': [], 380 'hardware': [], 381 "networkVlanId": 22222, 382 "sortOrder": "2", 383 "subnetType": "SECONDARY_ON_VLAN", 384 "totalIpAddresses": "8", 385 "usableIpAddressCount": "5", 386 "version": 4 387 } 388] 389 390getSshKeys = [{'id': '100', 'label': 'Test 1'}, 391 {'id': '101', 'label': 'Test 2', 392 'finterprint': 'aa:bb:cc:dd', 393 'notes': 'my key'}] 394 395getSecurityCertificates = [{'certificate': '1234', 396 'commonName': 'cert', 397 'id': 1234, 398 'validityDays': 0, }] 399getExpiredSecurityCertificates = getSecurityCertificates 400getValidSecurityCertificates = getSecurityCertificates 401 402getTickets = [ 403 { 404 "accountId": 1234, 405 "serviceProviderResourceId": "CS123456", 406 "assignedUserId": 12345, 407 "createDate": "2013-08-01T14:14:04-07:00", 408 "id": 100, 409 "lastEditDate": "2013-08-01T14:16:47-07:00", 410 "lastEditType": "AUTO", 411 "modifyDate": "2013-08-01T14:16:47-07:00", 412 "status": { 413 "id": 1002, 414 "name": "Closed" 415 }, 416 "statusId": 1002, 417 "title": "Cloud Instance Cancellation - 08/01/13" 418 }, 419 { 420 "accountId": 1234, 421 "serviceProviderResourceId": "CS123456", 422 "assignedUserId": 12345, 423 "createDate": "2013-08-01T14:14:04-07:00", 424 "id": 101, 425 "lastEditDate": "2013-08-01T14:16:47-07:00", 426 "lastEditType": "AUTO", 427 "modifyDate": "2013-08-01T14:16:47-07:00", 428 "status": { 429 "id": 1002, 430 "name": "Closed" 431 }, 432 "statusId": 1002, 433 "title": "Cloud Instance Cancellation - 08/01/13" 434 }, 435 { 436 "accountId": 1234, 437 "serviceProviderResourceId": "CS123456", 438 "assignedUserId": 12345, 439 "createDate": "2014-03-03T09:44:01-08:00", 440 "id": 102, 441 "lastEditDate": "2013-08-01T14:16:47-07:00", 442 "lastEditType": "AUTO", 443 "modifyDate": "2014-03-03T09:44:03-08:00", 444 "status": { 445 "id": 1001, 446 "name": "Open" 447 }, 448 'assignedUser': {'firstName': 'John', 'lastName': 'Smith'}, 449 "statusId": 1001, 450 "title": "Cloud Instance Cancellation - 08/01/13" 451 }] 452 453getOpenTickets = [ticket for ticket in getTickets 454 if ticket['statusId'] == 1001] 455getClosedTickets = [ticket for ticket in getTickets 456 if ticket['statusId'] == 1002] 457 458getCurrentUser = {'id': 12345, 'username': 'testAccount', 459 'apiAuthenticationKeys': [{'authenticationKey': 'A' * 64}]} 460 461getCdnAccounts = [ 462 { 463 "cdnAccountName": "1234a", 464 "providerPortalAccessFlag": False, 465 "createDate": "2012-06-25T14:05:28-07:00", 466 "id": 1234, 467 "legacyCdnFlag": False, 468 "dependantServiceFlag": True, 469 "cdnSolutionName": "ORIGIN_PULL", 470 "statusId": 4, 471 "accountId": 1234 472 }, 473 { 474 "cdnAccountName": "1234a", 475 "providerPortalAccessFlag": False, 476 "createDate": "2012-07-24T13:34:25-07:00", 477 "id": 1234, 478 "legacyCdnFlag": False, 479 "dependantServiceFlag": False, 480 "cdnSolutionName": "POP_PULL", 481 "statusId": 4, 482 "accountId": 1234 483 } 484] 485 486getNetworkVlans = [{ 487 'id': 1, 488 'networkSpace': 'PRIVATE', 489 'hardwareCount': 0, 490 'hardware': [], 491 'vlanNumber': 12, 492 'networkComponents': [], 493 'primaryRouter': { 494 'datacenter': {'name': 'dal00'} 495 }, 496 'virtualGuestCount': 0, 497 'virtualGuests': [], 498 'dedicatedFirewallFlag': True, 499 'highAvailabilityFirewallFlag': True, 500 'networkVlanFirewall': {'id': 1234}, 501 'totalPrimaryIpAddressCount': 1, 502 'subnetCount': 0, 503 'subnets': [], 504 'firewallInterfaces': [ 505 { 506 'id': 1, 507 'name': 'outside' 508 }, 509 { 510 'id': 12, 511 'name': 'inside' 512 } 513 ] 514}, { 515 'id': 2, 516 'networkSpace': 'PRIVATE', 517 'totalPrimaryIpAddressCount': 2, 518 'dedicatedFirewallFlag': False, 519 'highAvailabilityFirewallFlag': True, 520 'networkVlanFirewall': {'id': 7896}, 521 'hardwareCount': 0, 522 'hardware': [], 523 'vlanNumber': 13, 524 'networkComponents': [], 525 'primaryRouter': { 526 'datacenter': {'name': 'dal00'} 527 }, 528 'virtualGuestCount': 0, 529 'virtualGuests': [], 530 'firewallGuestNetworkComponents': [{ 531 'id': 1234, 532 'guestNetworkComponent': {'guest': {'id': 1}}, 533 'status': 'ok'}], 534 'firewallNetworkComponents': [{ 535 'id': 1234, 536 'networkComponent': {'downlinkComponent': {'hardwareId': 1}}, 537 'status': 'ok'}], 538 'firewallInterfaces': [], 539 540 'subnetCount': 0, 541 'subnets': [], 542}, { 543 'id': 3, 544 'networkSpace': 'PRIVATE', 545 'name': 'dal00', 546 'hardwareCount': 1, 547 'dedicatedFirewallFlag': True, 548 'highAvailabilityFirewallFlag': True, 549 'networkVlanFirewall': {'id': 23456}, 550 'vlanNumber': 14, 551 'hardware': [{'id': 1}], 552 'networkComponents': [{'id': 2}], 553 'primaryRouter': { 554 'datacenter': {'name': 'dal00'} 555 }, 556 'firewallInterfaces': [ 557 { 558 'id': 31, 559 'name': 'outside' 560 }], 561 'totalPrimaryIpAddressCount': 3, 562 'subnetCount': 0, 563 'subnets': [], 564 'virtualGuestCount': 1, 565 'virtualGuests': [{'id': 3}] 566}] 567 568getAdcLoadBalancers = [] 569 570getNasNetworkStorage = [{ 571 'id': 1, 572 'capacityGb': 10, 573 'serviceResource': {'datacenter': {'name': 'Dallas'}}, 574 'username': 'user', 575 'password': 'pass', 576 'serviceResourceBackendIpAddress': '127.0.0.1', 577 'storageType': {'keyName': 'ENDURANCE_STORAGE'}, 578 'fileNetworkMountAddress': '127.0.0.1:/TEST', 579}] 580 581getActiveQuotes = [{ 582 'accountId': 1234, 583 'id': 1234, 584 'name': 'TestQuote1234', 585 'quoteKey': '1234test4321', 586 'createDate': '2019-04-10T14:26:03-06:00', 587 'modifyDate': '2019-04-10T14:26:03-06:00', 588 'order': { 589 'id': 37623333, 590 'items': [ 591 { 592 'categoryCode': 'guest_core', 593 'description': '4 x 2.0 GHz or higher Cores', 594 'id': 468394713, 595 'itemId': 859, 596 'itemPriceId': '1642', 597 'oneTimeAfterTaxAmount': '0', 598 'oneTimeFee': '0', 599 'oneTimeFeeTaxRate': '0', 600 'oneTimeTaxAmount': '0', 601 'quantity': 1, 602 'recurringAfterTaxAmount': '0', 603 'recurringFee': '0', 604 'recurringTaxAmount': '0', 605 'setupAfterTaxAmount': '0', 606 'setupFee': '0', 607 'setupFeeDeferralMonths': None, 608 'setupFeeTaxRate': '0', 609 'setupTaxAmount': '0', 610 'package': {'id': 46, 'keyName': 'CLOUD_SERVER'} 611 }, 612 ] 613 } 614}] 615 616getOrders = [{ 617 'id': 1234, 618 'resourceType': '1 x 2.0 GHz Core', 619 'hostName': 'test', 620 'createDate': '2014-05-01T14:03:04-07:00', 621 'cost': 0.0 622}] 623 624getBillingInfo = [{ 625 'id': 1234, 626 'accountId': 123, 627 'resourceType': '1 x 2.0 GHz Core', 628 'hostName': 'test', 629 'modifyDate': '2014-05-01T14:03:04-07:00', 630 'createDate': '2014-05-01T14:03:04-07:00', 631 'anniversaryDayOfMonth': 2, 632 'percentDiscountOnetime': 2, 633 'sparePoolAmount': 0, 634 'currency': { 635 'KeyName': 'usd', 636 'id': 1, 637 'name': 'dollars' 638 } 639}] 640 641getLatestBillDate = '2014-05-01T14:03:04-07:00' 642 643getBalance = 40 644 645getNextInvoiceTotalAmount = 2 646 647getHubNetworkStorage = [{'id': 12345, 'username': 'SLOS12345-1', 'serviceResource': {'name': 'Cleversafe - US Region'}}, 648 {'id': 12346, 'username': 'SLOS12345-2', 'vendorName': 'Swift'}] 649 650getIscsiNetworkStorage = [{ 651 'accountId': 1234, 652 'billingItem': {'id': 449}, 653 'capacityGb': 20, 654 'createDate': '2015:50:15-04:00', 655 'guestId': '', 656 'hardwareId': '', 657 'hostId': '', 658 'id': 100, 659 'nasType': 'ISCSI', 660 'notes': """{'status': 'available'}""", 661 'password': '', 662 'serviceProviderId': 1, 663 'serviceResource': {'datacenter': {'name': 'dal05', 'id': 449500}}, 664 'serviceResourceBackendIpAddress': '10.1.2.3', 665 'serviceResourceName': 'Storage Type 01 Aggregate staaspar0101_pc01', 666 'username': 'username', 667 'storageType': {'keyName': 'ENDURANCE_STORAGE'}, 668}] 669 670getVirtualDedicatedRacks = [{ 671 'id': 1, 672 'name': 'my first pool', 673 'metricTrackingObjectId': 10, 674}] 675 676getDedicatedHosts = [{ 677 'datacenter': { 678 'name': 'dal05' 679 }, 680 'memoryCapacity': 242, 681 'name': 'test-dedicated', 682 'diskCapacity': 1200, 683 'guestCount': 1, 684 'cpuCount': 56, 685 'id': 12345 686}] 687 688getUsers = [ 689 {'displayName': 'ChristopherG', 690 'hardwareCount': 138, 691 'id': 11100, 692 'userStatus': {'name': 'Active'}, 693 'username': 'SL1234', 694 'virtualGuestCount': 99, 695 'externalBindingCount': 1, 696 'apiAuthenticationKeyCount': 1, 697 }, 698 {'displayName': 'PulseL', 699 'hardwareCount': 100, 700 'id': 11111, 701 'userStatus': {'name': 'Active'}, 702 'username': 'sl1234-abob', 703 'virtualGuestCount': 99, 704 } 705] 706 707getReservedCapacityGroups = [ 708 { 709 'accountId': 1234, 710 'backendRouterId': 1411193, 711 'createDate': '2018-09-24T16:33:09-06:00', 712 'id': 3103, 713 'modifyDate': '', 714 'name': 'test-capacity', 715 'availableInstanceCount': 1, 716 'instanceCount': 3, 717 'occupiedInstanceCount': 1, 718 'backendRouter': { 719 'accountId': 1, 720 'bareMetalInstanceFlag': 0, 721 'domain': 'softlayer.com', 722 'fullyQualifiedDomainName': 'bcr02a.dal13.softlayer.com', 723 'hardwareStatusId': 5, 724 'hostname': 'bcr02a.dal13', 725 'id': 1411193, 726 'notes': '', 727 'provisionDate': '', 728 'serviceProviderId': 1, 729 'serviceProviderResourceId': '', 730 'primaryIpAddress': '10.0.144.28', 731 'datacenter': { 732 'id': 1854895, 733 'longName': 'Dallas 13', 734 'name': 'dal13', 735 'statusId': 2 736 }, 737 'hardwareFunction': { 738 'code': 'ROUTER', 739 'description': 'Router', 740 'id': 1 741 }, 742 'topLevelLocation': { 743 'id': 1854895, 744 'longName': 'Dallas 13', 745 'name': 'dal13', 746 'statusId': 2 747 } 748 }, 749 'instances': [ 750 { 751 'id': 3501, 752 'billingItem': { 753 'description': 'B1.1x2 (1 Year Term)', 754 'hourlyRecurringFee': '.032' 755 } 756 }, 757 { 758 'id': 3519, 759 'billingItem': { 760 'description': 'B1.1x2 (1 Year Term)', 761 'hourlyRecurringFee': '.032' 762 } 763 }, 764 { 765 'id': 3519 766 } 767 ] 768 } 769] 770 771getPlacementGroups = [{ 772 "createDate": "2019-01-18T16:08:44-06:00", 773 "id": 12345, 774 "name": "test01", 775 "guestCount": 0, 776 "backendRouter": { 777 "hostname": "bcr01a.mex01", 778 "id": 329266 779 }, 780 "rule": { 781 "id": 1, 782 "keyName": "SPREAD", 783 "name": "SPREAD" 784 } 785}] 786 787getInvoices = [ 788 { 789 'id': 33816665, 790 'modifyDate': '2019-03-04T00:17:42-06:00', 791 'createDate': '2019-03-04T00:17:42-06:00', 792 'startingBalance': '129251.73', 793 'statusCode': 'OPEN', 794 'typeCode': 'RECURRING', 795 'itemCount': 3317, 796 'invoiceTotalAmount': '6230.66' 797 }, 798 { 799 'id': 12345667, 800 'modifyDate': '2019-03-05T00:17:42-06:00', 801 'createDate': '2019-03-04T00:17:42-06:00', 802 'startingBalance': '129251.73', 803 'statusCode': 'OPEN', 804 'typeCode': 'RECURRING', 805 'itemCount': 12, 806 'invoiceTotalAmount': '6230.66', 807 'endingBalance': '12345.55' 808 } 809] 810 811getApplicationDeliveryControllers = [ 812 { 813 'accountId': 307608, 814 'createDate': '2015-05-05T16:23:52-06:00', 815 'id': 11449, 816 'modifyDate': '2015-05-05T16:24:09-06:00', 817 'name': 'SLADC307608-1', 818 'typeId': 2, 819 'description': 'Citrix NetScaler VPX 10.5 10Mbps Standard', 820 'managementIpAddress': '10.11.11.112', 821 'outboundPublicBandwidthUsage': '.00365', 822 'primaryIpAddress': '19.4.24.16', 823 'datacenter': { 824 'longName': 'Dallas 9', 825 'name': 'dal09', 826 }, 827 'password': { 828 'password': 'aaaaa', 829 'username': 'root' 830 }, 831 'type': { 832 'keyName': 'NETSCALER_VPX', 833 'name': 'NetScaler VPX' 834 } 835 } 836] 837 838getScaleGroups = [ 839 { 840 "accountId": 31111, 841 "cooldown": 1800, 842 "createDate": "2016-10-25T01:48:34+08:00", 843 "id": 12222222, 844 "lastActionDate": "2016-10-25T01:48:34+08:00", 845 "maximumMemberCount": 5, 846 "minimumMemberCount": 0, 847 "name": "tests", 848 "regionalGroupId": 663, 849 "virtualGuestMemberTemplate": { 850 "accountId": 31111, 851 "domain": "sodg.com", 852 "hostname": "testing", 853 "id": None, 854 "maxCpu": None, 855 "maxMemory": 32768, 856 "startCpus": 32, 857 "blockDevices": [ 858 { 859 "device": "0", 860 "diskImage": { 861 "capacity": 25, 862 } 863 } 864 ], 865 "datacenter": { 866 "name": "sao01", 867 }, 868 "hourlyBillingFlag": True, 869 "operatingSystemReferenceCode": "CENTOS_LATEST", 870 }, 871 "virtualGuestMemberCount": 0, 872 "status": { 873 "id": 1, 874 "keyName": "ACTIVE", 875 "name": "Active" 876 }, 877 }, 878 { 879 "accountId": 31111, 880 "cooldown": 1800, 881 "createDate": "2018-04-24T04:22:00+08:00", 882 "id": 224533333, 883 "lastActionDate": "2019-01-19T04:53:18+08:00", 884 "maximumMemberCount": 10, 885 "minimumMemberCount": 0, 886 "modifyDate": "2019-01-19T04:53:21+08:00", 887 "name": "test-ajcb", 888 "regionalGroupId": 1025, 889 "virtualGuestMemberTemplate": { 890 "accountId": 31111, 891 "domain": "test.local", 892 "hostname": "autoscale-ajcb01", 893 "id": None, 894 "maxCpu": None, 895 "maxMemory": 1024, 896 "postInstallScriptUri": "http://test.com", 897 "startCpus": 1, 898 "blockDevices": [ 899 { 900 "device": "0", 901 "diskImage": { 902 "capacity": 25, 903 } 904 } 905 ], 906 "datacenter": { 907 "name": "seo01", 908 }, 909 "hourlyBillingFlag": True, 910 "operatingSystemReferenceCode": "CENTOS_7_64", 911 }, 912 "virtualGuestMemberCount": 0, 913 "status": { 914 "id": 1, 915 "keyName": "ACTIVE", 916 "name": "Active" 917 } 918 } 919] 920 921getPortableStorageVolumes = [ 922 { 923 "capacity": 200, 924 "createDate": "2018-10-06T04:27:59-06:00", 925 "description": "Disk 2", 926 "id": 11111, 927 "modifyDate": "", 928 "name": "Disk 2", 929 "parentId": "", 930 "storageRepositoryId": 22222, 931 "typeId": 241, 932 "units": "GB", 933 "uuid": "fd477feb-bf32-408e-882f-02540gghgh111" 934 } 935] 936getAllTopLevelBillingItems = [ 937 { 938 "allowCancellationFlag": 1, 939 "cancellationDate": "None", 940 "categoryCode": "server", 941 "createDate": "2015-05-28T09:53:41-06:00", 942 "cycleStartDate": "2020-04-03T23:12:04-06:00", 943 "description": "Dual E5-2690 v3 (12 Cores, 2.60 GHz)", 944 "domainName": "sl-netbase.com", 945 "hostName": "testsangeles101", 946 "id": 53891943, 947 "lastBillDate": "2020-04-03T23:12:04-06:00", 948 "modifyDate": "2020-04-03T23:12:07-06:00", 949 "nextBillDate": "2020-05-03T23:00:00-06:00", 950 "orderItemId": 68626055, 951 "parentId": "None", 952 "recurringFee": "1000", 953 "recurringFeeTaxRate": "0", 954 "recurringMonths": 1, 955 "hourlyFlag": False, 956 "location": { 957 "id": 265592, 958 "longName": "Amsterdam 1", 959 "name": "ams01", 960 "statusId": 2 961 }, 962 "nextInvoiceTotalRecurringAmount": 0, 963 "orderItem": { 964 "id": 68626055, 965 "order": { 966 "id": 4544893, 967 "userRecord": { 968 "displayName": "TEst", 969 "email": "test@us.ibm.com", 970 "id": 167758, 971 "userStatus": { 972 "id": 1001, 973 "keyName": "CANCEL_PENDING", 974 "name": "Cancel Pending" 975 } 976 } 977 } 978 }, 979 "resourceTableId": 544444 980 }, 981 { 982 "allowCancellationFlag": 1, 983 "cancellationDate": "None", 984 "categoryCode": "server", 985 "createDate": "2015-05-28T09:56:44-06:00", 986 "cycleStartDate": "2020-04-03T23:12:05-06:00", 987 "description": "Dual E5-2690 v3 (12 Cores, 2.60 GHz)", 988 "domainName": "sl-netbase.com", 989 "hostName": "testsangeles101", 990 "id": 53892197, 991 "lastBillDate": "2020-04-03T23:12:05-06:00", 992 "modifyDate": "2020-04-03T23:12:07-06:00", 993 "nextBillDate": "2020-05-03T23:00:00-06:00", 994 "orderItemId": 68626801, 995 "recurringFee": "22220", 996 "hourlyFlag": False, 997 "location": { 998 "id": 265592, 999 "longName": "Amsterdam 1", 1000 "name": "ams01", 1001 "statusId": 2 1002 }, 1003 "nextInvoiceTotalRecurringAmount": 0, 1004 "orderItem": { 1005 "id": 68626801, 1006 "order": { 1007 "id": 4545911, 1008 "userRecord": { 1009 "displayName": "Test", 1010 "email": "test@us.ibm.com", 1011 "id": 167758, 1012 "userStatus": { 1013 "id": 1001, 1014 "keyName": "ACTIVE", 1015 "name": "Active" 1016 } 1017 } 1018 } 1019 }, 1020 "resourceTableId": 777777 1021 } 1022] 1023 1024getNetworkStorage = [ 1025 { 1026 "accountId": 1111111, 1027 "capacityGb": 20, 1028 "createDate": "2016-01-21T12:11:07-06:00", 1029 "id": 1234567, 1030 "nasType": "ISCSI", 1031 "username": "SL01SEL301234-11", 1032 }, 1033 { 1034 "accountId": 1111111, 1035 "capacityGb": 20, 1036 "createDate": "2015-04-29T07:55:55-06:00", 1037 "id": 4917123, 1038 "nasType": "NAS", 1039 "username": "SL01SEV1234567_111" 1040 } 1041] 1042 1043getRouters = [ 1044 { 1045 "accountId": 1, 1046 "bareMetalInstanceFlag": 0, 1047 "domain": "softlayer.com", 1048 "fullyQualifiedDomainName": "fcr01a.ams01.softlayer.com", 1049 "hardwareStatusId": 5, 1050 "hostname": "fcr01a.ams01", 1051 "id": 123456, 1052 "serviceProviderId": 1, 1053 "topLevelLocation": { 1054 "id": 265592, 1055 "longName": "Amsterdam 1", 1056 "name": "ams01", 1057 "statusId": 2 1058 } 1059 }] 1060 1061getNetworkStorage = [ 1062 { 1063 "accountId": 1111111, 1064 "capacityGb": 20, 1065 "createDate": "2016-01-21T12:11:07-06:00", 1066 "id": 1234567, 1067 "nasType": "ISCSI", 1068 "username": "SL01SEL301234-11", 1069 }, 1070 { 1071 "accountId": 1111111, 1072 "capacityGb": 20, 1073 "createDate": "2015-04-29T07:55:55-06:00", 1074 "id": 4917123, 1075 "nasType": "NAS", 1076 "username": "SL01SEV1234567_111" 1077 } 1078] 1079 1080getNetworkMessageDeliveryAccounts = [ 1081 { 1082 "accountId": 147258, 1083 "createDate": "2020-07-06T10:29:11-06:00", 1084 "id": 1232123, 1085 "typeId": 21, 1086 "username": "test_CLI@ie.ibm.com", 1087 "vendorId": 1, 1088 "type": { 1089 "description": "Delivery of messages through e-mail", 1090 "id": 21, 1091 "keyName": "EMAIL", 1092 "name": "Email" 1093 }, 1094 "vendor": { 1095 "id": 1, 1096 "keyName": "SENDGRID", 1097 "name": "SendGrid" 1098 }, 1099 "emailAddress": "test_CLI@ie.ibm.com", 1100 "smtpAccess": "1" 1101 } 1102] 1103 1104getActiveAccountLicenses = [{ 1105 "accountId": 123456, 1106 "capacity": "4", 1107 "key": "Y8GNS-7QRNG-OUIJO-MATEI-5GJRM", 1108 "units": "CPU", 1109 "billingItem": { 1110 "allowCancellationFlag": 1, 1111 "categoryCode": "software_license", 1112 "cycleStartDate": "2021-06-03T23:11:22-06:00", 1113 "description": "vCenter Server Appliance 6.0", 1114 "id": 741258963, 1115 "laborFee": "0", 1116 "laborFeeTaxRate": "0", 1117 "oneTimeFee": "0", 1118 "oneTimeFeeTaxRate": "0", 1119 "orderItemId": 963258741, 1120 "recurringFee": "0", 1121 "recurringFeeTaxRate": "0", 1122 "recurringMonths": 1, 1123 "serviceProviderId": 1, 1124 "setupFee": "0", 1125 "setupFeeTaxRate": "0" 1126 }, 1127 "softwareDescription": { 1128 "controlPanel": 0, 1129 "id": 15963, 1130 "licenseTermValue": 0, 1131 "longDescription": "VMware vCenter 6.0", 1132 "manufacturer": "VMware", 1133 "name": "vCenter", 1134 "operatingSystem": 0, 1135 "version": "6.0", 1136 "virtualLicense": 0, 1137 "virtualizationPlatform": 0, 1138 "requiredUser": "administrator@vsphere.local" 1139 } 1140}, 1141 { 1142 "accountId": 123456, 1143 "capacity": "4", 1144 "key": "TSZES-SJF85-04GLD-AXA64-8O1EO", 1145 "units": "CPU", 1146 "billingItem": { 1147 "allowCancellationFlag": 1, 1148 "categoryCode": "software_license", 1149 "description": "vCenter Server Appliance 6.x", 1150 "id": 36987456, 1151 "laborFee": "0", 1152 "laborFeeTaxRate": "0", 1153 "oneTimeFee": "0", 1154 "oneTimeFeeTaxRate": "0", 1155 "orderItemId": 25839, 1156 "recurringFee": "0", 1157 "recurringFeeTaxRate": "0", 1158 "recurringMonths": 1, 1159 "serviceProviderId": 1, 1160 "setupFee": "0", 1161 "setupFeeTaxRate": "0" 1162 }, 1163 "softwareDescription": { 1164 "controlPanel": 0, 1165 "id": 1472, 1166 "licenseTermValue": 0, 1167 "longDescription": "VMware vCenter 6.0", 1168 "manufacturer": "VMware", 1169 "name": "vCenter", 1170 "operatingSystem": 0, 1171 "version": "6.0", 1172 "virtualLicense": 0, 1173 "virtualizationPlatform": 0, 1174 "requiredUser": "administrator@vsphere.local" 1175 } 1176 } 1177] 1178 1179getActiveVirtualLicenses = [{ 1180 "id": 12345, 1181 "ipAddress": "192.168.23.78", 1182 "key": "TEST.60220734.0000", 1183 "billingItem": { 1184 "categoryCode": "control_panel", 1185 "description": "Plesk Onyx (Linux) - (Unlimited) - VPS " 1186 }, 1187 "softwareDescription": { 1188 "longDescription": "Plesk - Unlimited Domain w/ Power Pack for VPS 17.8.11 Linux", 1189 "manufacturer": "Plesk", 1190 "name": "Plesk - Unlimited Domain w/ Power Pack for VPS" 1191 }, 1192 "subnet": { 1193 "broadcastAddress": "192.168.23.79", 1194 "cidr": 28, 1195 "gateway": "192.168.23.65", 1196 "id": 1973163, 1197 "isCustomerOwned": False, 1198 "isCustomerRoutable": False, 1199 "netmask": "255.255.255.240", 1200 "networkIdentifier": "128.116.23.64", 1201 "networkVlanId": 123456, 1202 "note": "test note", 1203 "sortOrder": "1", 1204 "subnetType": "ADDITIONAL_PRIMARY", 1205 "totalIpAddresses": "16", 1206 "usableIpAddressCount": "13", 1207 "version": 4 1208 } 1209}] 1210