Synology SRM API
Python 3 library to use the Synology SRM (Synology Router Manager) API. This is NOT the same thing as Synology DSM (DiskStation Manager).
This library should work with the following devices.
- RT1900ac
- RT2600ac
It's not possible to create another account in SRM with admin permissions. You'll need to use your
adminaccount (or the one you renamed at creation).
Usage
import synology_srm
client = synology_srm.Client(
host='192.168.1.254',
port=8001,
https=True,
username='admin',
password='admin',
)
You can now access all namespaces from the API. The following methods are availabe.
- Base
- getinfo_encryption()
- query_info()
- Core
- list_ddns_extip()
- list_ddns_record()
- get_system_utilization()
- get_network_nsm_device(filters=
{}) - get_ngfw_traffic(interval=
live|day|week|month) - list_certificate()
- export_certificate(path=
certificate.zip)
- Mesh
- get_network_wanstatus()
- get_network_wifidevice()
- get_system_info()
For instance, to list all endpoints available in the API.
endpoints = client.base.query_info()
for endpoint, config in endpoints.items():
print("API endpoint {} (minVersion={}, maxVersion={})".format(
endpoint,
config['minVersion'],
config['maxVersion'],
))
Manual endpoints
It's possible to target endpoints not directly supported by this library by using the raw http client.
response = client.http.call(
endpoint='entry.cgi',
api='SYNO.Core.System.Utilization',
method='get',
version=1,
)
HTTPS auto-signed certificate
You can disable the HTTPS certificate verification if you are using a self-signed certificate.
client.http.disable_https_verify()
Metadata
Release files for synology-srm 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| synology-srm-0.2.3.tar.gz | 7.9 kB | Without provenance | Details for synology-srm-0.2.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| synology_srm-0.2.3-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for synology_srm-0.2.3-py2.py3-none-any.whl |
Total release size: 16.5 kB
Release files / synology-srm-0.2.3.tar.gz
| Download URL | synology-srm-0.2.3.tar.gz |
|---|---|
| Size | 7.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
44a01dcf589666c13f7b693e7a290537aa0438a50aefd24d5df46c9a13a4e8f3
|
|
BLAKE2b-256 checksum How to use checksums |
9b0c01b048e03552a985dad3a01482134f1b2a0bf07cd403c5da075463218f15
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.0
|
Release files / synology_srm-0.2.3-py2.py3-none-any.whl
| Download URL | synology_srm-0.2.3-py2.py3-none-any.whl |
|---|---|
| Size | 8.6 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
84616df3db4b3ea85ee741654d0bafbc5f8c92acb2a362725b50517413513639
|
|
BLAKE2b-256 checksum How to use checksums |
dd24bee55704523e6966f3142c259be69bb1efc39796b1e719b6dc3d47e434c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.0
|
Security for synology-srm 0.2.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.