SoftLayer API 硬件:createObject:postInstallScriptUri:ObjectStorage
SoftLayer API Hardware : createObject : postInstallScriptUri : ObjectStorage
在提供 BM 服务器期间,我们可以将 postInstallScriptUri 用于 installing/running 用户自定义脚本。参考下面提到的有效载荷。
对象存储URL:
https://dal05.objectstorage.softlayer.net/auth/v1.0/test/agility.sh
上面的 objectStorage URL 不可访问。是 public URL。请让我知道如何从 ObjectStorage 访问数据。我不想通过 REST API 使用凭据和授权密钥。我想直接访问这些文件。 (类似于亚马逊 s3 存储)。
{"parameters": [{"datacenter": {"name": "dal01" },
"hostname": "vijscript",
"domain": "test.com",
"hourlyBillingFlag":"",
"fixedConfigurationPreset": {
"keyName": "S1270_8GB_2X1TBSATA_NORAID"
},
"operatingSystemReferenceCode": "WIN_2012-STD_64",
"postInstallScriptUri" : `"https://dal05.objectstorage.softlayer.net/auth/v1.0/test/agility.sh"
}]
}
启用 CDN 可能是您的最佳选择,可以通过 Control Portal:
完成
按照以下步骤操作:
- Click Storage
- Select Object Storage (e.g. SLOS3011111-10).
- Select Cluster (e.g. Paris 1)
- Select Container (e.g. ContainerTest)
- Click on "Enable CDN" option
- Select the file's row
- On the right side the "HTTP URL" will be displayed
在提供 BM 服务器期间,我们可以将 postInstallScriptUri 用于 installing/running 用户自定义脚本。参考下面提到的有效载荷。
对象存储URL:
https://dal05.objectstorage.softlayer.net/auth/v1.0/test/agility.sh
上面的 objectStorage URL 不可访问。是 public URL。请让我知道如何从 ObjectStorage 访问数据。我不想通过 REST API 使用凭据和授权密钥。我想直接访问这些文件。 (类似于亚马逊 s3 存储)。
{"parameters": [{"datacenter": {"name": "dal01" },
"hostname": "vijscript",
"domain": "test.com",
"hourlyBillingFlag":"",
"fixedConfigurationPreset": {
"keyName": "S1270_8GB_2X1TBSATA_NORAID"
},
"operatingSystemReferenceCode": "WIN_2012-STD_64",
"postInstallScriptUri" : `"https://dal05.objectstorage.softlayer.net/auth/v1.0/test/agility.sh"
}]
}
启用 CDN 可能是您的最佳选择,可以通过 Control Portal:
完成按照以下步骤操作:
- Click Storage
- Select Object Storage (e.g. SLOS3011111-10).
- Select Cluster (e.g. Paris 1)
- Select Container (e.g. ContainerTest)
- Click on "Enable CDN" option
- Select the file's row
- On the right side the "HTTP URL" will be displayed