mirror of
https://github.com/ansible-collections/community.routeros.git
synced 2025-06-21 09:35:45 +02:00
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:
parent
f6ed27c588
commit
d235437f8f
4 changed files with 18 additions and 0 deletions
2
changelogs/fragments/211-user.yml
Normal file
2
changelogs/fragments/211-user.yml
Normal 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).
|
|
@ -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,
|
||||
|
|
|
@ -195,6 +195,7 @@ options:
|
|||
- tool sms
|
||||
- tool sniffer
|
||||
- tool traffic-generator
|
||||
- user
|
||||
- user aaa
|
||||
- user group
|
||||
- user settings
|
||||
|
|
|
@ -204,6 +204,7 @@ options:
|
|||
- tool sms
|
||||
- tool sniffer
|
||||
- tool traffic-generator
|
||||
- user
|
||||
- user aaa
|
||||
- user group
|
||||
- user settings
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue