linode.disk.createfromstackscript()
Parameters
- LinodeID - numeric (required)
- StackScriptID - numeric (required)
The StackScript to create this image from
- StackScriptUDFResponses - string (required)
JSON encoded name/value pairs, answering this StackScript's User Defined Fields
- DistributionID - numeric (required)
Which Distribution to apply this StackScript to. Must be one from the script's DistributionIDList
- Label - string (required)
The label of this new disk image
- Size - numeric (required)
Size of this disk image in MB
- rootPass - string (required)
The root user's password
- rootSSHKey - string (optional)
Optionally sets this string into /root/.ssh/authorized_keys upon distribution configuration.
Example Response
{
ERRORARRAY: [ ],
DATA: {
JobID: 445,
DiskID: 770050
},
ACTION: "linode.disk.createfromstackscript"
}
Errors
NOTFOUND, VALIDATION