File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -1221,6 +1221,9 @@ def disk_create(
12211221 root_pass = None ,
12221222 authorized_keys = None ,
12231223 authorized_users = None ,
1224+ disk_encryption : Optional [
1225+ Union [InstanceDiskEncryptionType , str ]
1226+ ] = None ,
12241227 stackscript = None ,
12251228 ** stackscript_args ,
12261229 ):
@@ -1245,6 +1248,9 @@ def disk_create(
12451248 as trusted for the root user. These user's keys
12461249 should already be set up, see :any:`ProfileGroup.ssh_keys`
12471250 for details.
1251+ :param disk_encryption: The disk encryption policy for this Linode.
1252+ NOTE: Disk encryption may not currently be available to all users.
1253+ :type disk_encryption: InstanceDiskEncryptionType or str
12481254 :param stackscript: A StackScript object, or the ID of one, to deploy to this
12491255 disk. Requires deploying a compatible image.
12501256 :param **stackscript_args: Any arguments to pass to the StackScript, as defined
@@ -1274,6 +1280,9 @@ def disk_create(
12741280 "authorized_users" : authorized_users ,
12751281 }
12761282
1283+ if disk_encryption is not None :
1284+ params ["disk_encryption" ] = str (disk_encryption )
1285+
12771286 if image :
12781287 params .update (
12791288 {
You can’t perform that action at this time.
0 commit comments