Add support for the "user" path (#211)

Make it possible to manage users via the `user` path.

Signed-off-by: Michael Hanselmann <public@hansmi.ch>
This commit is contained in:
hansmi 2023-09-18 06:48:13 +02:00 committed by GitHub
parent f6ed27c588
commit d235437f8f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 18 additions and 0 deletions

View file

@ -0,0 +1,2 @@
minor_changes:
- api_info, api_modify - add support for the ``user`` path (https://github.com/ansible-collections/community.routeros/pull/211).

View file

@ -3282,6 +3282,20 @@ PATHS = {
},
),
),
('user',): APIData(
unversioned=VersionedAPIData(
primary_keys=('name', ),
fully_understood=True,
fields={
'address': KeyInfo(),
'comment': KeyInfo(can_disable=True, remove_value=''),
'disabled': KeyInfo(default=False),
'group': KeyInfo(),
'name': KeyInfo(),
'password': KeyInfo(write_only=True),
},
),
),
('user', 'aaa'): APIData(
unversioned=VersionedAPIData(
single_value=True,

View file

@ -195,6 +195,7 @@ options:
- tool sms
- tool sniffer
- tool traffic-generator
- user
- user aaa
- user group
- user settings

View file

@ -204,6 +204,7 @@ options:
- tool sms
- tool sniffer
- tool traffic-generator
- user
- user aaa
- user group
- user settings