Synology SRM API
Project description
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
admin
account (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'], ))
HTTPS auto-signed certificate
You can disable the HTTPS certificate verification if you are using a self-signed certificate.
client.http.disable_https_verify()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size synology_srm-0.2.0-py2.py3-none-any.whl (8.5 kB) | File type Wheel | Python version py2.py3 | Upload date | Hashes View |
Filename, size synology-srm-0.2.0.tar.gz (6.4 kB) | File type Source | Python version None | Upload date | Hashes View |
Close
Hashes for synology_srm-0.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79a8f8dec531d492fac499629f9c90cf5d441e1d42c588c752f8b4844a695f9b |
|
MD5 | 3b1470e71f99f024788f7eb95b886b9f |
|
BLAKE2-256 | 8dc690c2de393920af52d1a2c443c8b3f80f8de88d67ec6828511aa593db8f7e |