【问题标题】:Unable to Import Custom image using IBM cloud Object storage(VMDK) through Softlayer Rest API无法通过 Softlayer Rest API 使用 IBM 云对象存储 (VMDK) 导入自定义图像
【发布时间】:2019-11-16 02:59:10
【问题描述】:

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

【问题讨论】:

  • 帐户似乎需要额外的权限,我建议您向 SoftLayer 提交工单,他们可以为您提供有关此错误的进一步帮助

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


【解决方案1】:

仅 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

【讨论】:

  • 感谢 Lifemikey 的回复。是否只能使用 IBM Cloud Console 从 IBM Cloud Object Storage 导入映像?如果可能到 java 请发送链接。
  • 您可以使用 SoftLayer API Python 客户端从 IBM Cloud Object Storage 导入图像,请参阅此处ibm.com/cloud/blog/…
猜你喜欢
  • 1970-01-01
  • 2017-11-17
  • 2018-12-03
  • 2023-03-26
  • 1970-01-01
  • 1970-01-01
  • 2019-12-15
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多