本文介绍了处理EVault升级的示例代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在我已经订购了EVault,现在需要一些帮助来升级它.谁能提供一些示例代码(首选PHP),这些示例代码将在SoftLayer中执行EVault备份的升级吗?如果有不同的输入用于升级与Virtual Guest vs. Bare Metal关联的EVault Backup,请也提供区别.

Now that I have ordering EVault working, I need some help with upgrading it.Can anyone provide some sample code (PHP preferred) that will perform an upgrade of EVault backup in SoftLayer? If there are different input for upgrading EVault backup associated with Virtual Guest vs. Bare Metal, please provide the differences as well.

对于Endurance存储,我已经在容器中使用"Container_Product_Order_Network_Storage_Enterprise_SnapshotSpace_Upgrade"作为complexType,但是在SL数据类型列表中未列出EVault的任何内容.还有什么我需要指定的输入内容?

For an Endurance storage, I've used "Container_Product_Order_Network_Storage_Enterprise_SnapshotSpace_Upgrade" as complexType in the container, but I don't see anything for EVault listed in the SL Data Type list. And what are other inputs that I need to specify?

任何帮助将不胜感激.谢谢.

Any help will be appreciated. Thank you.

推荐答案

简单

<?php

require_once ('/SoftLayer/SoapClient.class.php');

$apiUser = 'set me';
$key = 'set me';

$evaultId = 4862895;

$evaultClient = SoftLayer_SoapClient::getClient('SoftLayer_Network_Storage_Backup_Evault', $evaultId, $apiUser, $key);

$upgradePrice = 560;

try {

    $result = $evaultClient->upgradeVolumeCapacity($upgradePrice);
    print_r($result);

} catch(Exception $e) {
    echo "Unable to upgrade Evault: " . $e -> getMessage();
}

要获取价格,请致电 http://sldn.softlayer.com/reference/services /SoftLayer_Product_Package/getItems 方法.包为0,您需要从"upgradeItemId"字段中选择值.

To get the price call http://sldn.softlayer.com/reference/services/SoftLayer_Product_Package/getItems method. The package is 0 and you need to pick out the value from "upgradeItemId" field.

致谢

这篇关于处理EVault升级的示例代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-14 07:01