Hello, I have a backup workflow which would benefit from being able to automate the import and export of a couple of encrypted pools. I have been doing this "outside" of FreeNAS manually via commandline but would prefer to work within the framework of FreeNAS.
Through the API I can create, delete and import unencrypted volumes and create and delete encrypted volumes. But I cannot determine how to import an encrypted volume unless the disks have already been decrypted. It seems the API to upload or otherwise specify the GELI key is not available through the regular API. There are api calls to manage recovery keys, but this doesn't seem to help in the case of an encrypted volume which has not been imported. There are no API's to support decryption of disks individually which could allow import.
The API calls used by the UI appear to be private and not part of the official API specification.
Is there any way to do this?
Through the API I can create, delete and import unencrypted volumes and create and delete encrypted volumes. But I cannot determine how to import an encrypted volume unless the disks have already been decrypted. It seems the API to upload or otherwise specify the GELI key is not available through the regular API. There are api calls to manage recovery keys, but this doesn't seem to help in the case of an encrypted volume which has not been imported. There are no API's to support decryption of disks individually which could allow import.
The API calls used by the UI appear to be private and not part of the official API specification.
Is there any way to do this?