0

我正在尝试从通过 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"}
4

1 回答 1

0

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

于 2019-07-06T18:23:01.807 回答