mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-08-10 04:58:03 -05:00
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>
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user