@@ -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
@@ -137,10 +137,9 @@ def import_image_from_uri(self, name, uri, os_code=None, note=None,
137137 :param string note: Note to add to the image
138138 :param string ibm_api_key: Ibm Api Key needed to communicate with ICOS
139139 and Key Protect
140- :param string root_key_id: ID of the root key in Key Protect
140+ :param string root_key_crn: CRN of the root key in your KMS
141141 :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
142+ your KMS
144143 :param boolean cloud_init: Specifies if image is cloud-init
145144 :param boolean byol: Specifies if image is bring your own license
146145 :param boolean is_encrypted: Specifies if image is encrypted
@@ -152,9 +151,8 @@ def import_image_from_uri(self, name, uri, os_code=None, note=None,
152151 'operatingSystemReferenceCode' : os_code ,
153152 'uri' : uri ,
154153 'ibmApiKey' : ibm_api_key ,
155- 'rootKeyId ' : root_key_id ,
154+ 'crkCrn ' : root_key_crn ,
156155 'wrappedDek' : wrapped_dek ,
157- 'keyProtectId' : kp_id ,
158156 'cloudInit' : cloud_init ,
159157 'byol' : byol ,
160158 'isEncrypted' : is_encrypted
0 commit comments