SFTP User Public Keys Helper
- class AzuracastPy.models.sftp_user.PublicKeysHelper(_sftp_user)
Provides functions for working with the public keys of an SFTP user.
- __init__(_sftp_user)
Initializes a
PublicKeysHelperinstance.Note
This class should not be initialized directly. Instead, obtain an instance via:
sftp_user.key.
- add(*args: str)
Adds one or more keys to the SFTP user.
- Parameters:
args – The key(s) to be added to the user. All arguments must be strings.
Usage:
sftp_user.key.add("key") sftp_user.key.add("key1", "key2")
- remove(*args: str)
Removes one or more keys from the SFTP user.
- Parameters:
args – The keys(s) to be removed from the user. All arguments must be strings.
Usage:
sftp_user.key.remove("key") sftp_user.key.remove("key1", "key2")