diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2015-06-11 15:38:32 +0200 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2015-06-15 16:06:48 +0200 |
commit | d58bdf29a514a7868c63b767f4954891b10a574d (patch) | |
tree | 98a7c576f8091213d6608eab8d3844878c61d04a | |
parent | 45dccedd12e6d26e146ad9c30c2c304e6b2eded1 (diff) | |
download | freeipa-d58bdf29a514a7868c63b767f4954891b10a574d.tar.gz freeipa-d58bdf29a514a7868c63b767f4954891b10a574d.tar.xz freeipa-d58bdf29a514a7868c63b767f4954891b10a574d.zip |
server: add "del" command
this command is internal and is supposed to be used by ipa-replica-managed to
delete replica.
Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
-rw-r--r-- | API.txt | 8 | ||||
-rw-r--r-- | VERSION | 4 | ||||
-rw-r--r-- | ipalib/plugins/server.py | 7 |
3 files changed, 17 insertions, 2 deletions
@@ -3799,6 +3799,14 @@ option: Str('version?', exclude='webui') output: Entry('result', <type 'dict'>, Gettext('A dictionary representing an LDAP entry', domain='ipa', localedir=None)) output: Output('summary', (<type 'unicode'>, <type 'NoneType'>), None) output: PrimaryKey('value', None, None) +command: server_del +args: 1,2,3 +arg: Str('cn', attribute=True, cli_name='name', multivalue=True, primary_key=True, query=True, required=True) +option: Flag('continue', autofill=True, cli_name='continue', default=False) +option: Str('version?', exclude='webui') +output: Output('result', <type 'dict'>, None) +output: Output('summary', (<type 'unicode'>, <type 'NoneType'>), None) +output: ListOfPrimaryKeys('value', None, None) command: server_find args: 1,10,4 arg: Str('criteria?', noextrawhitespace=False) @@ -90,5 +90,5 @@ IPA_DATA_VERSION=20100614120000 # # ######################################################## IPA_API_VERSION_MAJOR=2 -IPA_API_VERSION_MINOR=132 -# Last change: dkupka: User life cycle permissions naming and split +IPA_API_VERSION_MINOR=133 +# Last change: pvoborni - add server-del internal command diff --git a/ipalib/plugins/server.py b/ipalib/plugins/server.py index d22f1ea36..7fc441973 100644 --- a/ipalib/plugins/server.py +++ b/ipalib/plugins/server.py @@ -87,3 +87,10 @@ class server_find(LDAPSearch): @register() class server_show(LDAPRetrieve): __doc__ = _('Show IPA server.') + + +@register() +class server_del(LDAPDelete): + __doc__ = _('Delete IPA server.') + NO_CLI = True + msg_summary = _('Deleted IPA server "%(value)s"') |