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
- encryption()
- info()
- Core
- ddns_extip()
- ddns_record()
- system_utilization()
- network_nsm_device(filters=
{}
)
- Mesh
- network_wanstatus()
- network_wifidevice()
- system_info()
For instance, to list all endpoints available in the API.
endpoints = client.base.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.
Source Distribution
synology-srm-0.1.2.tar.gz
(5.8 kB
view hashes)
Built Distribution
Close
Hashes for synology_srm-0.1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2e360189fe809041e2d102b8690d7da8f1e9beaa775c0426b8fc0f39eeaa649 |
|
MD5 | e4fd631b54cd972f853c321700c0cfe3 |
|
BLAKE2b-256 | 116d7b5122dafcd1765b7a8312d394658e1480873884e86f9dea90492325ea36 |