无法通过Softlayer Rest API使用IBM云对象存储(VMDK)导入自定义图像

时间:2019-07-05 13:06:04

标签: rest api ibm-cloud-infrastructure ibm-cloud-storage

我正在尝试通过Rest API从Cloud Object Storage中上传的VMDK导入图像,但是出现如下所述的错误。

请帮助我解决这个问题。

使用的API: https://api.softlayer.com/rest/v3/SoftLayer_Virtual_Guest_Block_Device_Template_Group/createFromIcos

'身体

{
    "parameters": [
        {
            "name": "jagaIBMcliTest",
            "bootMode": "HVM",
            "operatingSystemReferenceCode": "WIN_2012-STD-R2_64",
            "cloudInit": false,
            "ibmAccessKey": "<AccessKey>",
            "ibmSecretKey": "<SecretKe>",
            "ibmApiKey": "<ibmApiKey>",
            "uri": "cos://us-east/migrationbucket/WIN-TBTP9UG0SLB.vmdk",
            "isEncrypted": false
        }
    ]
}'

API响应:

{"error":"Not able to import from SL COS in Commercial environment unless account has ALLOW_INTERNAL_SWIFT_TO_COS_MIGRATE attribute","code":"SoftLayer_Exception_Public"}

1 个答案:

答案 0 :(得分:0)

仅IBM Cloud控制台COS支持自定义图像管理。 请参阅此处,将图像上载到IBM Cloud Console COS,然后将其导入。 https://cloud.ibm.com/docs/infrastructure/image-templates?topic=image-templates-preparing-and-importing-images#upload-to-ibm-cos