summaryrefslogtreecommitdiffstats
path: root/API.txt
diff options
context:
space:
mode:
authorTomas Babej <tbabej@redhat.com>2014-05-14 12:52:26 +0200
committerPetr Viktorin <pviktori@redhat.com>2014-06-25 20:14:49 +0200
commita228d7a3cb32b14ff24b47adb14d896d317f6312 (patch)
tree3edbf0018942f36d28d56b317e5941c908bd1c6c /API.txt
parent5a1207cb6ee6dd4314ae95e6637ee6859d5fda1a (diff)
downloadfreeipa-a228d7a3cb32b14ff24b47adb14d896d317f6312.tar.gz
freeipa-a228d7a3cb32b14ff24b47adb14d896d317f6312.tar.xz
freeipa-a228d7a3cb32b14ff24b47adb14d896d317f6312.zip
sudorule: Allow using hostmasks for setting allowed hosts
Adds a new --hostmasks option to sudorule-add-host and sudorule-remove-host commands, which allows setting a range of hosts specified by a hostmask. https://fedorahosted.org/freeipa/ticket/4274 Reviewed-By: Petr Viktorin <pviktori@redhat.com>
Diffstat (limited to 'API.txt')
-rw-r--r--API.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/API.txt b/API.txt
index 0dd28068e..fdb780d53 100644
--- a/API.txt
+++ b/API.txt
@@ -3474,11 +3474,12 @@ output: Output('completed', <type 'int'>, None)
output: Output('failed', <type 'dict'>, None)
output: Entry('result', <type 'dict'>, Gettext('A dictionary representing an LDAP entry', domain='ipa', localedir=None))
command: sudorule_add_host
-args: 1,6,3
+args: 1,7,3
arg: Str('cn', attribute=True, cli_name='sudorule_name', multivalue=False, primary_key=True, query=True, required=True)
option: Flag('all', autofill=True, cli_name='all', default=False, exclude='webui')
option: Str('host*', alwaysask=True, cli_name='hosts', csv=True)
option: Str('hostgroup*', alwaysask=True, cli_name='hostgroups', csv=True)
+option: Str('hostmask?', multivalue=True)
option: Flag('no_members', autofill=True, default=False, exclude='webui')
option: Flag('raw', autofill=True, cli_name='raw', default=False, exclude='webui')
option: Str('version?', exclude='webui')
@@ -3627,11 +3628,12 @@ output: Output('completed', <type 'int'>, None)
output: Output('failed', <type 'dict'>, None)
output: Entry('result', <type 'dict'>, Gettext('A dictionary representing an LDAP entry', domain='ipa', localedir=None))
command: sudorule_remove_host
-args: 1,6,3
+args: 1,7,3
arg: Str('cn', attribute=True, cli_name='sudorule_name', multivalue=False, primary_key=True, query=True, required=True)
option: Flag('all', autofill=True, cli_name='all', default=False, exclude='webui')
option: Str('host*', alwaysask=True, cli_name='hosts', csv=True)
option: Str('hostgroup*', alwaysask=True, cli_name='hostgroups', csv=True)
+option: Str('hostmask?', multivalue=True)
option: Flag('no_members', autofill=True, default=False, exclude='webui')
option: Flag('raw', autofill=True, cli_name='raw', default=False, exclude='webui')
option: Str('version?', exclude='webui')