1818@click .option ('--os-code' ,
1919 default = "" ,
2020 help = "The referenceCode of the operating system software"
21- " description for the imported VHD" )
21+ " description for the imported VHD, ISO, or RAW image" )
22+ @click .option ('--ibm-api-key' ,
23+ default = "" ,
24+ help = "The IBM Cloud API Key with access to IBM Cloud Object "
25+ "Storage instance." )
26+ @click .option ('--root-key-id' ,
27+ default = "" ,
28+ help = "ID of the root key in Key Protect" )
29+ @click .option ('--wrapped-dek' ,
30+ default = "" ,
31+ help = "Wrapped Decryption Key provided by IBM KeyProtect" )
32+ @click .option ('--kp-id' ,
33+ default = "" ,
34+ help = "ID of the IBM Key Protect Instance" )
35+ @click .option ('--cloud-init' ,
36+ default = "" ,
37+ help = "Specifies if image is cloud init" )
38+ @click .option ('--byol' ,
39+ default = "" ,
40+ help = "Specifies if image is bring your own license" )
41+ @click .option ('--is-encrypted' ,
42+ default = "" ,
43+ help = "Specifies if image is encrypted" )
2244@environment .pass_env
23- def cli (env , name , note , os_code , uri ):
45+ def cli (env , name , note , os_code , uri , ibm_api_key , root_key_id , wrapped_dek ,
46+ kp_id , cloud_init , byol , is_encrypted ):
2447 """Import an image.
2548
2649 The URI for an object storage object (.vhd/.iso file) of the format:
2750 swift://<objectStorageAccount>@<cluster>/<container>/<objectPath>
51+ or cos://<clusterName>/<bucketName>/<objectPath> if using IBM Cloud
52+ Object Storage
2853 """
2954
3055 image_mgr = SoftLayer .ImageManager (env .client )
@@ -33,6 +58,13 @@ def cli(env, name, note, os_code, uri):
3358 note = note ,
3459 os_code = os_code ,
3560 uri = uri ,
61+ ibm_api_key = ibm_api_key ,
62+ root_key_id = root_key_id ,
63+ wrapped_dek = wrapped_dek ,
64+ kp_id = kp_id ,
65+ cloud_init = cloud_init ,
66+ byol = byol ,
67+ is_encrypted = is_encrypted
3668 )
3769
3870 if not result :
0 commit comments