SoftLayer API - GUI 中的配置在 API 中不可用
SoftLayer API - Configuration In GUI not available in API
我正在尝试使用这些配置测试下单:
pkgId = 253
prices = [
{'id': getItemPriceId(items, 'server', 'INTEL_XEON_2650_2_30')},
{'id': getItemPriceId(items, 'os', 'OS_UBUNTU_14_04_LTS_TRUSTY_TAHR_64_BIT')},
{'id': getItemPriceId(items, 'ram', 'RAM_64_GB_DDR3_1333_REG_2')},
{'id': getItemPriceId(items, 'disk_controller', 'DISK_CONTROLLER_RAID_1')},
{'id': getItemPriceId(items, 'disk0', 'HARD_DRIVE_1_00_TB_SATA_2')},
{'id': getItemPriceId(items, 'port_speed', '10_GBPS_PUBLIC_PRIVATE_NETWORK_UPLINKS')},
{'id': getItemPriceId(items, 'power_supply', 'REDUNDANT_POWER_SUPPLY')},
{'id': getItemPriceId(items, 'bandwidth', 'BANDWIDTH_0_GB')},
{'id': getItemPriceId(items, 'pri_ip_addresses', '1_IP_ADDRESS')},
{'id': getItemPriceId(items, 'remote_management', 'REBOOT_KVM_OVER_IP')},
{'id': getItemPriceId(items, 'vpn_management', 'UNLIMITED_SSL_VPN_USERS_1_PPTP_VPN_USER_PER_ACCOUNT')},
{'id': getItemPriceId(items, 'monitoring', 'MONITORING_HOST_PING_AND_TCP_SERVICE')},
{'id': getItemPriceId(items, 'notification', 'NOTIFICATION_EMAIL_AND_TICKET')},
{'id': getItemPriceId(items, 'response', 'AUTOMATED_NOTIFICATION')},
{'id': getItemPriceId(items, 'vulnerability_scanner', 'NESSUS_VULNERABILITY_ASSESSMENT_REPORTING')},
并且我尝试将它订购到达拉斯 10 和巴黎 1。当我尝试使用
验证订单时
client['Product_Order'].verifyOrder(productOrder)
我收到这个错误:
SoftLayer.exceptions.SoftLayerAPIError: SoftLayerAPIError(SoftLayer_Exception_Public): The price for Dual Intel Xeon E5-2650 v3 (10 Cores, 2.30 GHz) (#156517) is not valid for location dal10.
这对我来说没有意义,因为在两个位置的 gui 中,我可以选择准确订购 API 所说的无效驱动器。我在这里做错了什么吗?或者 API 的价目表是否已过时?
我附上了我尝试订购的选项的屏幕截图,它出现在 DAL10 的列表中,但由于某种原因无法在 API...
中订购
商品价格存在位置冲突:156517,Paris 1 和 不可用达拉斯 10 数据中心,要了解有关商品价格如何运作的更多信息,请查看以下文章:
GUI 会根据您选择的位置进行一些内部处理以获取商品价格,如果您想通过 API 订购,您需要发送标准价格(对所有商品都有效数据中心)或根据位置的项目价格。
我正在尝试使用这些配置测试下单:
pkgId = 253
prices = [
{'id': getItemPriceId(items, 'server', 'INTEL_XEON_2650_2_30')},
{'id': getItemPriceId(items, 'os', 'OS_UBUNTU_14_04_LTS_TRUSTY_TAHR_64_BIT')},
{'id': getItemPriceId(items, 'ram', 'RAM_64_GB_DDR3_1333_REG_2')},
{'id': getItemPriceId(items, 'disk_controller', 'DISK_CONTROLLER_RAID_1')},
{'id': getItemPriceId(items, 'disk0', 'HARD_DRIVE_1_00_TB_SATA_2')},
{'id': getItemPriceId(items, 'port_speed', '10_GBPS_PUBLIC_PRIVATE_NETWORK_UPLINKS')},
{'id': getItemPriceId(items, 'power_supply', 'REDUNDANT_POWER_SUPPLY')},
{'id': getItemPriceId(items, 'bandwidth', 'BANDWIDTH_0_GB')},
{'id': getItemPriceId(items, 'pri_ip_addresses', '1_IP_ADDRESS')},
{'id': getItemPriceId(items, 'remote_management', 'REBOOT_KVM_OVER_IP')},
{'id': getItemPriceId(items, 'vpn_management', 'UNLIMITED_SSL_VPN_USERS_1_PPTP_VPN_USER_PER_ACCOUNT')},
{'id': getItemPriceId(items, 'monitoring', 'MONITORING_HOST_PING_AND_TCP_SERVICE')},
{'id': getItemPriceId(items, 'notification', 'NOTIFICATION_EMAIL_AND_TICKET')},
{'id': getItemPriceId(items, 'response', 'AUTOMATED_NOTIFICATION')},
{'id': getItemPriceId(items, 'vulnerability_scanner', 'NESSUS_VULNERABILITY_ASSESSMENT_REPORTING')},
并且我尝试将它订购到达拉斯 10 和巴黎 1。当我尝试使用
验证订单时client['Product_Order'].verifyOrder(productOrder)
我收到这个错误:
SoftLayer.exceptions.SoftLayerAPIError: SoftLayerAPIError(SoftLayer_Exception_Public): The price for Dual Intel Xeon E5-2650 v3 (10 Cores, 2.30 GHz) (#156517) is not valid for location dal10.
这对我来说没有意义,因为在两个位置的 gui 中,我可以选择准确订购 API 所说的无效驱动器。我在这里做错了什么吗?或者 API 的价目表是否已过时? 我附上了我尝试订购的选项的屏幕截图,它出现在 DAL10 的列表中,但由于某种原因无法在 API...
中订购商品价格存在位置冲突:156517,Paris 1 和 不可用达拉斯 10 数据中心,要了解有关商品价格如何运作的更多信息,请查看以下文章:
GUI 会根据您选择的位置进行一些内部处理以获取商品价格,如果您想通过 API 订购,您需要发送标准价格(对所有商品都有效数据中心)或根据位置的项目价格。