Ibm cloud 我可以请求卷通过Softlayer API获取加密卷吗

Ibm cloud 我可以请求卷通过Softlayer API获取加密卷吗,ibm-cloud,ibm-cloud-infrastructure,Ibm Cloud,Ibm Cloud Infrastructure,目前,我会调用“SoftLayer\u Virtual\u Guest/getUpgradeItemPrices”获取本地或san磁盘,并调用“SoftLayer\u Product\u Package/id”(该块基于“222”)获取外部磁盘。我注意到SoftLayer portal可以提供加密的文件/块卷 我的问题是如何通过这些方法通过Softlayer API请求加密磁盘 谢谢。:) 更新 一旦完成设置,将自动设置加密 注意加密仅在带有星号的数据中心可用(所谓的升级数据中心)。您可以使用该

目前,我会调用“SoftLayer\u Virtual\u Guest/getUpgradeItemPrices”获取本地或san磁盘,并调用“SoftLayer\u Product\u Package/id”(该块基于“222”)获取外部磁盘。我注意到SoftLayer portal可以提供加密的文件/块卷

我的问题是如何通过这些方法通过Softlayer API请求加密磁盘


谢谢。:)

更新

一旦完成设置,将自动设置加密

注意加密仅在带有星号的数据中心可用(所谓的升级数据中心)。您可以使用该方法来识别它们是哪些

尝试以下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"
    }
    }
    ]
}
有关更多信息,请参见以下内容:


更新

一旦完成设置,将自动设置加密

注意加密仅在带有星号的数据中心可用(所谓的升级数据中心)。您可以使用该方法来识别它们是哪些

尝试以下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"
    }
    }
    ]
}
有关更多信息,请参见以下内容:


我正在更新答案,添加订单请求文件和Block storageUpdated答案,请参见上文。谢谢。我可以运行一些命令来检查加密状态吗?是的,您可以使用以下请求作为示例,对于加密卷,hasEncryptionAtRest属性应该为“true”。https://[username]:[apiKey]@api.softlayer.com/rest/v3/softlayer_Network_Storage/12345678/getObject?objectMask=mask[accountId,username,capacityGb,id,notes,hasEncryptionAtRest]没问题,爱德华。我正在更新答案,添加订购文件请求和阻止存储更新答案,请参见上文。谢谢。我可以运行一些命令来检查加密状态吗?是的,您可以使用以下请求作为示例,对于加密卷,hasEncryptionAtRest属性应该为“true”。https://[username]:[apiKey]@api.softlayer.com/rest/v3/softlayer\u Network\u Storage/12345678/getObject?objectMask=mask[accountId,username,capacityGb,id,notes,hasEncryptionAtRest]没问题。