AWSイメージをソフトレイヤーに直接インポートすることはできますか?私は、AWSイメージとインポートをソフトレイヤーにダウンロードできますが、自動化されたソリューションを探していました。AWSイメージをソフトレイヤーにインポートする
0
A
答えて
2
任意のSOFTLAYERのAPIメソッドはありませんが、自動的にすべてのproccessを作るWICH、画像はあなたがここにそこにいくつかの参照を、画像をアップロードするAPIを使用することができ、あなたのオブジェクトストレージのアカウントのいずれかにアップロードする必要があります。
http://sldn.softlayer.com/blog/waelriac/Managing-SoftLayer-Object-Storage-Through-REST-APIs
ファイルがアップロードされたらとTOUを使用して、それをインポートすることができ、大きなファイル
https://docs.openstack.org/developer/swift/overview_large_objects.html
を処理する方法については、このドキュメントを参照してください。 API:ここ
SOFTLAYERのPythonクライアントを使用した例:
"""
Create Image Template from external source
This script creates a transaction to import a disk image from an external source and create
a standard image template
Important manual pages:
http://sldn.softlayer.com/reference/services/SoftLayer_Virtual_Guest_Block_Device_Template_Group/createFromExternalSource
http://sldn.softlayer.com/reference/datatypes/SoftLayer_Container_Virtual_Guest_Block_Device_Template_Configuration
http://sldn.softlayer.com/reference/datatypes/SoftLayer_Virtual_Guest_Block_Device_Template_Group
License: http://sldn.softlayer.com/article/License
Author: SoftLayer Technologies, Inc. <[email protected]>
"""
import SoftLayer
# Your SoftLayer username and apiKey
USERNAME = 'set me'
API_KEY = 'set me'
# Declare the group name to be applied to the imported template
name = 'imageTemplateTest'
# Declare the note to be applied to the imported template
note = 'This is for test Rcv'
'''
Declare referenceCode of the operating system software description for the imported VHD
available options: CENTOS_6_32, CENTOS_6_64, CENTOS_7_64, REDHAT_6_32, REDHAT_6_64, REDHAT_7_64,
UBUNTU_12_32, UBUNTU_12_64, UBUNTU_14_32, UBUNTU_14_64, WIN_2003-STD-SP2-5_32, WIN_2003-STD-SP2-5_64,
WIN_2008-STD-R2-SP1_64, WIN_2012-STD_64.
'''
operatingSystemReferenceCode = 'CENTOS_6_64'
'''
Define the parameters below, which refers to object storage where the image template is stored.
It will help to build the uri.
'''
# Declare the object storage account name
objectStorageAccountName = 'SLOS307608-10'
# Declare the cluster name where the image is stored
clusterName = 'dal05'
# Declare the container name where the image is stored
containerName = 'OS'
# Declare the file name of the image stored in the object storage, it should be .vhd or
fileName = 'testImage2.vhd-0.vhd'
"""
Creating an SoftLayer_Container_Virtual_Guest_block_Device_Template_Configuration Skeleton
which contains the information from external source
"""
configuration = {
'name': name,
'note': note,
'operatingSystemReferenceCode': operatingSystemReferenceCode,
'uri': 'swift://'+ objectStorageAccountName + '@' + clusterName + '/' + containerName + '/' + fileName
}
# Declare the API client
client = SoftLayer.Client(username=USERNAME, api_key=API_KEY)
groupService = client['SoftLayer_Virtual_Guest_Block_Device_Template_Group']
try:
result = groupService.createFromExternalSource(configuration)
print(result)
except SoftLayer.SoftLayerAPIError as e:
print("Unable to create the image template from external source. faultCode=%s, faultString=%s" % (e.faultCode, e.faultString))
exit(1)
よろしく
関連する問題
- 1. ソフトレイヤーにWebアプリケーションをデプロイ
- 2. テンソルフローでイメージをインポートする
- 3. React - イメージをインポートする
- 4. AWS SDKをVue.JSにインポートする方法
- 5. docker-pushイメージをaws ecrに
- 6. 実行時にイメージをインポートする
- 7. イメージをintelliJ Javaプロジェクトにインポートする
- 8. イメージをjavaクラスにインポートする方法
- 9. バージンボックスをアマゾンAWSにインポートする最も良い方法AWS
- 10. ソフトレイヤーでのVyattaアップグレード
- 11. ソフトレイヤーVSI合計Sotrage
- 12. Javaイメージのインポート
- 13. 仮想サーバー、イメージ、ブロックデバイス、ソフトレイヤーのイメージテンプレートのストレージアスペクトの関係は何ですか?
- 14. ソフトレイヤーのオブジェクトサイズを取得
- 15. Angular 2アプリケーションでAWS SDKをインポートする
- 16. AWSインポート/エクスポートとdevpay
- 17. AWS Objective-Cのイメージをアップロード
- 18. jumbotron-bootstrapのbgイメージをインポートする3
- 19. リソース内のイメージをインポートする
- 20. Windows上のイメージをインポートする
- 21. イメージをインポートするAzure Machine Learning Studio
- 22. ソフトレイヤー - 実行中のジャンプゲート
- 23. 複数のAWS LambdaにPythonモジュールをインポート
- 24. Magento製品csvインポート、インポート最終イメージ
- 25. イメージをAWSにアップロードするのが長すぎますか?
- 26. フォームを使用せずにイメージをlibreofficeベースデータベースにインポートして、個別のイメージを手動でインポートします。
- 27. AWSのインバウンドセキュリティグループルールをインポートします
- 28. コマンドラインツールを使用してSwagger APIをAWS APIゲートウェイにインポートする
- 29. プロビジョニング障害時に他に通知するソフトレイヤー
- 30. aws S3に一意のイメージ名をアップロードする方法は?
[OK]をしかしSOFTLAYER口座から直接アマゾンのAMIを参照しSOFTLAYERでそれらをインポートする方法がありませんか? – aaj
私の答えでは「すべてのプロセスを自動的に行うようなSoftlayerのAPIメソッドはありません」と悲しんでいます。 –