Starting with Resilio Connect version 2.11 it's possible to use a SAS token to access the Azure storage.
The Resilio Management Console informs the Administrator about the SAS token expiration. However, there's no out-of-the-box option to be warned about an upcoming expiration for the token. This can be done by parsing the API response.
The token is returned in Get storage by ID call that shows sensitive data (/storages/:id?include_sensitive=true
). We're interested in its se=
parameter which shows the expiration time.
After receiving the reply, use the python script attached to parse the SAS string and get the expiration date from it. Run the command:python3 --token "?sv= ....%3D" -get-exp-date
Other formatting options are available, see python3 main.py --help
.