diff options
author | Jan Cholasta <jcholast@redhat.com> | 2016-06-14 06:29:18 +0200 |
---|---|---|
committer | Jan Cholasta <jcholast@redhat.com> | 2016-06-21 09:45:20 +0200 |
commit | d44ffdad4285bf2a1c0b044e07ef1b18c7d50de1 (patch) | |
tree | eab47f31cd405f88fa8f1b753f622b0d09707c3e /API.txt | |
parent | b484667d15932cd4a7e03a3a2c1135e7500eee4b (diff) | |
download | freeipa-d44ffdad4285bf2a1c0b044e07ef1b18c7d50de1.tar.gz freeipa-d44ffdad4285bf2a1c0b044e07ef1b18c7d50de1.tar.xz freeipa-d44ffdad4285bf2a1c0b044e07ef1b18c7d50de1.zip |
cert: add object plugin
Implement cert as an object with methods rather than a bunch of loosely
related commands.
https://fedorahosted.org/freeipa/ticket/5381
Reviewed-By: David Kupka <dkupka@redhat.com>
Reviewed-By: Pavel Vomacka <pvomacka@redhat.com>
Diffstat (limited to 'API.txt')
-rw-r--r-- | API.txt | 60 |
1 files changed, 37 insertions, 23 deletions
@@ -723,25 +723,27 @@ output: Entry('result') output: Output('summary', type=[<type 'unicode'>, <type 'NoneType'>]) output: PrimaryKey('value') command: cert_find -args: 0,19,4 +args: 1,20,4 +arg: Str('criteria?') option: Flag('all', autofill=True, cli_name='all', default=False) -option: Str('cacn?', autofill=False, cli_name='ca') +option: Str('cacn?', cli_name='ca') option: Flag('exactly?', autofill=True, default=False) -option: Str('issuedon_from?', autofill=False) -option: Str('issuedon_to?', autofill=False) -option: Str('issuer?', autofill=False) +option: DateTime('issuedon_from?', autofill=False) +option: DateTime('issuedon_to?', autofill=False) +option: DNParam('issuer?', autofill=False) option: Int('max_serial_number?', autofill=False) option: Int('min_serial_number?', autofill=False) +option: Flag('pkey_only?', autofill=True, default=False) option: Flag('raw', autofill=True, cli_name='raw', default=False) option: Int('revocation_reason?', autofill=False) -option: Str('revokedon_from?', autofill=False) -option: Str('revokedon_to?', autofill=False) -option: Int('sizelimit?', default=100) +option: DateTime('revokedon_from?', autofill=False) +option: DateTime('revokedon_to?', autofill=False) +option: Int('sizelimit?') option: Str('subject?', autofill=False) -option: Str('validnotafter_from?', autofill=False) -option: Str('validnotafter_to?', autofill=False) -option: Str('validnotbefore_from?', autofill=False) -option: Str('validnotbefore_to?', autofill=False) +option: DateTime('validnotafter_from?', autofill=False) +option: DateTime('validnotafter_to?', autofill=False) +option: DateTime('validnotbefore_from?', autofill=False) +option: DateTime('validnotbefore_to?', autofill=False) option: Str('version?') output: Output('count', type=[<type 'int'>]) output: ListOfEntries('result') @@ -749,37 +751,49 @@ output: Output('summary', type=[<type 'unicode'>, <type 'NoneType'>]) output: Output('truncated', type=[<type 'bool'>]) command: cert_remove_hold args: 1,1,1 -arg: Str('serial_number') +arg: Int('serial_number') option: Str('version?') output: Output('result') command: cert_request -args: 1,6,1 +args: 1,8,3 arg: Str('csr', cli_name='csr_file') option: Flag('add', autofill=True, default=False) +option: Flag('all', autofill=True, cli_name='all', default=False) option: Str('cacn?', cli_name='ca') option: Str('principal') option: Str('profile_id?') +option: Flag('raw', autofill=True, cli_name='raw', default=False) option: Str('request_type', autofill=True, default=u'pkcs10') option: Str('version?') -output: Output('result', type=[<type 'dict'>]) +output: Entry('result') +output: Output('summary', type=[<type 'unicode'>, <type 'NoneType'>]) +output: PrimaryKey('value') command: cert_revoke args: 1,2,1 -arg: Str('serial_number') +arg: Int('serial_number') option: Int('revocation_reason', autofill=True, default=0) option: Str('version?') output: Output('result') command: cert_show -args: 1,3,1 -arg: Str('serial_number') -option: Str('cacn?', autofill=False, cli_name='ca') +args: 1,5,3 +arg: Int('serial_number') +option: Flag('all', autofill=True, cli_name='all', default=False) +option: Str('cacn?', cli_name='ca') option: Str('out?') +option: Flag('raw', autofill=True, cli_name='raw', default=False) option: Str('version?') -output: Output('result') +output: Entry('result') +output: Output('summary', type=[<type 'unicode'>, <type 'NoneType'>]) +output: PrimaryKey('value') command: cert_status -args: 1,1,1 -arg: Str('request_id') +args: 1,3,3 +arg: Int('request_id') +option: Flag('all', autofill=True, cli_name='all', default=False) +option: Flag('raw', autofill=True, cli_name='raw', default=False) option: Str('version?') -output: Output('result') +output: Entry('result') +output: Output('summary', type=[<type 'unicode'>, <type 'NoneType'>]) +output: PrimaryKey('value') command: certprofile_del args: 1,2,3 arg: Str('cn+', cli_name='id') |