@@ -121,8 +121,8 @@ def edit(self, image_id, name=None, note=None, tag=None):
121121 return bool (name or note or tag )
122122
123123 def import_image_from_uri (self , name , uri , os_code = None , note = None ,
124- ibm_api_key = None , root_key_id = None ,
125- wrapped_dek = None , kp_id = None , cloud_init = False ,
124+ ibm_api_key = None , root_key_crn = None ,
125+ wrapped_dek = None , cloud_init = False ,
126126 byol = False , is_encrypted = False ):
127127 """Import a new image from object storage.
128128
@@ -136,11 +136,14 @@ def import_image_from_uri(self, name, uri, os_code=None, note=None,
136136 :param string os_code: The reference code of the operating system
137137 :param string note: Note to add to the image
138138 :param string ibm_api_key: Ibm Api Key needed to communicate with ICOS
139- and Key Protect
140- :param string root_key_id: ID of the root key in Key Protect
139+ and your KMS
140+ :param string root_key_crn: CRN of the root key in your KMS. Go to your
141+ KMS (Key Protect or Hyper Protect) provider to get the CRN for your
142+ root key. An example CRN:
143+ crn:v1:bluemix:public:hs-crypto:us-south:acctID:serviceID:key:keyID'
144+ Used only when is_encrypted is True.
141145 :param string wrapped_dek: Wrapped Data Encryption Key provided by
142- IBM KeyProtect
143- :param string kp_id: ID of the IBM Key Protect Instance
146+ your KMS. Used only when is_encrypted is True.
144147 :param boolean cloud_init: Specifies if image is cloud-init
145148 :param boolean byol: Specifies if image is bring your own license
146149 :param boolean is_encrypted: Specifies if image is encrypted
@@ -152,9 +155,8 @@ def import_image_from_uri(self, name, uri, os_code=None, note=None,
152155 'operatingSystemReferenceCode' : os_code ,
153156 'uri' : uri ,
154157 'ibmApiKey' : ibm_api_key ,
155- 'rootKeyId ' : root_key_id ,
158+ 'crkCrn ' : root_key_crn ,
156159 'wrappedDek' : wrapped_dek ,
157- 'keyProtectId' : kp_id ,
158160 'cloudInit' : cloud_init ,
159161 'byol' : byol ,
160162 'isEncrypted' : is_encrypted
0 commit comments