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(
1221
1221
root_pass = None ,
1222
1222
authorized_keys = None ,
1223
1223
authorized_users = None ,
1224
+ disk_encryption : Optional [
1225
+ Union [InstanceDiskEncryptionType , str ]
1226
+ ] = None ,
1224
1227
stackscript = None ,
1225
1228
** stackscript_args ,
1226
1229
):
@@ -1245,6 +1248,9 @@ def disk_create(
1245
1248
as trusted for the root user. These user's keys
1246
1249
should already be set up, see :any:`ProfileGroup.ssh_keys`
1247
1250
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
1248
1254
:param stackscript: A StackScript object, or the ID of one, to deploy to this
1249
1255
disk. Requires deploying a compatible image.
1250
1256
:param **stackscript_args: Any arguments to pass to the StackScript, as defined
@@ -1274,6 +1280,9 @@ def disk_create(
1274
1280
"authorized_users" : authorized_users ,
1275
1281
}
1276
1282
1283
+ if disk_encryption is not None :
1284
+ params ["disk_encryption" ] = str (disk_encryption )
1285
+
1277
1286
if image :
1278
1287
params .update (
1279
1288
{
You can’t perform that action at this time.
0 commit comments