我可以请求卷通过 Softlayer 获取加密卷 API
Could I request volume to get encrypted volume through Softlayer API
目前,我会调用 'SoftLayer_Virtual_Guest/getUpgradeItemPrices' 获取本地或 san 磁盘并调用 'SoftLayer_Product_Package/id' (哪个块基于“222”)获取外部磁盘。我注意到 SoftLayer 门户可以提供加密的 file/block 卷。
我的问题是我如何通过这些方法请求 Softlayer API 的加密磁盘。
谢谢。 :)
更新
设置完成后会自动设置加密。
请注意加密仅适用于带星号的数据中心(所谓的升级数据中心)。您可以使用SoftLayer_Network_Storage::getFileBlockEncryptedLocations 识别它们的方法。
尝试以下 REST 请求:
对于块存储:
https://[username]:[apiKey]@api.softlayer.com/rest/v3/SoftLayer_Product_Order/verifyOrder
method: POST
{
"parameters":[
{
"complexType": "SoftLayer_Container_Product_Order_Network_Storage_AsAService",
"location": 449494,
"packageId": 759,
"volumeSize": 500,
"prices": [
{
"id": 189433
},
{
"id": 189443
},
{
"id": 193373
},
{
"id": 194633
},
{
"id": 193433
}],
"osFormatType": {
"keyName": "LINUX"
}
}
]
}
对于文件存储:
https://[username]:[apiKey]@api.softlayer.com/rest/v3/SoftLayer_Product_Order/verifyOrder
method: POST
{
"parameters":[
{
"complexType": "SoftLayer_Container_Product_Order_Network_Storage_AsAService",
"location": 449600,
"packageId": 759,
"volumeSize": 250,
"prices": [
{
"id": 189433
},
{
"id": 189453
},
{
"id": 192043
},
{
"id": 193013
},
{
"id": 192053
}
],
"osFormatType": {
"keyName": "LINUX"
}
}
]
}
更多信息请看下面:
https://knowledgelayer.softlayer.com/procedure/migrate-file-storage-encrypted-file-storage
目前,我会调用 'SoftLayer_Virtual_Guest/getUpgradeItemPrices' 获取本地或 san 磁盘并调用 'SoftLayer_Product_Package/id' (哪个块基于“222”)获取外部磁盘。我注意到 SoftLayer 门户可以提供加密的 file/block 卷。
我的问题是我如何通过这些方法请求 Softlayer API 的加密磁盘。
谢谢。 :)
更新
设置完成后会自动设置加密。
请注意加密仅适用于带星号的数据中心(所谓的升级数据中心)。您可以使用SoftLayer_Network_Storage::getFileBlockEncryptedLocations 识别它们的方法。
尝试以下 REST 请求:
对于块存储:
https://[username]:[apiKey]@api.softlayer.com/rest/v3/SoftLayer_Product_Order/verifyOrder
method: POST
{
"parameters":[
{
"complexType": "SoftLayer_Container_Product_Order_Network_Storage_AsAService",
"location": 449494,
"packageId": 759,
"volumeSize": 500,
"prices": [
{
"id": 189433
},
{
"id": 189443
},
{
"id": 193373
},
{
"id": 194633
},
{
"id": 193433
}],
"osFormatType": {
"keyName": "LINUX"
}
}
]
}
对于文件存储:
https://[username]:[apiKey]@api.softlayer.com/rest/v3/SoftLayer_Product_Order/verifyOrder
method: POST
{
"parameters":[
{
"complexType": "SoftLayer_Container_Product_Order_Network_Storage_AsAService",
"location": 449600,
"packageId": 759,
"volumeSize": 250,
"prices": [
{
"id": 189433
},
{
"id": 189453
},
{
"id": 192043
},
{
"id": 193013
},
{
"id": 192053
}
],
"osFormatType": {
"keyName": "LINUX"
}
}
]
}
更多信息请看下面:
https://knowledgelayer.softlayer.com/procedure/migrate-file-storage-encrypted-file-storage