diff options
author | Jan Cholasta <jcholast@redhat.com> | 2016-04-21 17:55:08 +0200 |
---|---|---|
committer | Jan Cholasta <jcholast@redhat.com> | 2016-06-03 09:00:34 +0200 |
commit | f35beca68ceaab34ec1bed86be5ae49a0a931658 (patch) | |
tree | 22172ca2a08b554671b9cd8963442882ce7243bd /API.txt | |
parent | 3cf5f83d92a2c315eb8a0dd2ed06cd1d61df5d36 (diff) | |
download | freeipa-f35beca68ceaab34ec1bed86be5ae49a0a931658.tar.gz freeipa-f35beca68ceaab34ec1bed86be5ae49a0a931658.tar.xz freeipa-f35beca68ceaab34ec1bed86be5ae49a0a931658.zip |
ipalib: introduce API schema plugins
Add a set of plugins for API schema introspection. This includes:
* a set of commands for command introspection
(`command_find`, `command_show`, `command_defaults`),
* a set of commands for command param introspection
(`param_find`, `param_show`),
* a set of commands for command output introspection
(`output_find`, `output_show`),
* a set of commands for help topic introspection
(`topic_find`, `topic_show`),
* a command to get the full API schema in one call (`schema`).
https://fedorahosted.org/freeipa/ticket/4739
Reviewed-By: David Kupka <dkupka@redhat.com>
Diffstat (limited to 'API.txt')
-rw-r--r-- | API.txt | 95 |
1 files changed, 95 insertions, 0 deletions
@@ -757,6 +757,33 @@ option: Str('version?') output: Entry('result') output: Output('summary', type=[<type 'unicode'>, <type 'NoneType'>]) output: PrimaryKey('value') +command: command_defaults +args: 1,3,1 +arg: Str('name') +option: Any('kw?') +option: Str('params*') +option: Str('version?') +output: Output('result') +command: command_find +args: 1,4,4 +arg: Str('criteria?') +option: Flag('all', autofill=True, cli_name='all', default=False) +option: Flag('pkey_only?', autofill=True, default=False) +option: Flag('raw', autofill=True, cli_name='raw', default=False) +option: Str('version?') +output: Output('count', type=[<type 'int'>]) +output: ListOfEntries('result') +output: Output('summary', type=[<type 'unicode'>, <type 'NoneType'>]) +output: Output('truncated', type=[<type 'bool'>]) +command: command_show +args: 1,3,3 +arg: Str('name') +option: Flag('all', autofill=True, cli_name='all', default=False) +option: Flag('raw', autofill=True, cli_name='raw', default=False) +option: Str('version?') +output: Entry('result') +output: Output('summary', type=[<type 'unicode'>, <type 'NoneType'>]) +output: PrimaryKey('value') command: compat_is_enabled args: 0,1,1 option: Str('version?') @@ -3076,6 +3103,50 @@ option: Password('second_code', confirm=False) option: Str('user') option: Str('version?') output: Output('result') +command: output_find +args: 2,4,4 +arg: Str('commandname', cli_name='command') +arg: Str('criteria?') +option: Flag('all', autofill=True, cli_name='all', default=False) +option: Flag('pkey_only?', autofill=True, default=False) +option: Flag('raw', autofill=True, cli_name='raw', default=False) +option: Str('version?') +output: Output('count', type=[<type 'int'>]) +output: ListOfEntries('result') +output: Output('summary', type=[<type 'unicode'>, <type 'NoneType'>]) +output: Output('truncated', type=[<type 'bool'>]) +command: output_show +args: 2,3,3 +arg: Str('commandname', cli_name='command') +arg: Str('name') +option: Flag('all', autofill=True, cli_name='all', default=False) +option: Flag('raw', autofill=True, cli_name='raw', default=False) +option: Str('version?') +output: Entry('result') +output: Output('summary', type=[<type 'unicode'>, <type 'NoneType'>]) +output: PrimaryKey('value') +command: param_find +args: 2,4,4 +arg: Str('commandname', cli_name='command') +arg: Str('criteria?') +option: Flag('all', autofill=True, cli_name='all', default=False) +option: Flag('pkey_only?', autofill=True, default=False) +option: Flag('raw', autofill=True, cli_name='raw', default=False) +option: Str('version?') +output: Output('count', type=[<type 'int'>]) +output: ListOfEntries('result') +output: Output('summary', type=[<type 'unicode'>, <type 'NoneType'>]) +output: Output('truncated', type=[<type 'bool'>]) +command: param_show +args: 2,3,3 +arg: Str('commandname', cli_name='command') +arg: Str('name') +option: Flag('all', autofill=True, cli_name='all', default=False) +option: Flag('raw', autofill=True, cli_name='raw', default=False) +option: Str('version?') +output: Entry('result') +output: Output('summary', type=[<type 'unicode'>, <type 'NoneType'>]) +output: PrimaryKey('value') command: passwd args: 3,2,3 arg: Str('principal', autofill=True, cli_name='user') @@ -3656,6 +3727,10 @@ option: Str('version?') output: Entry('result') output: Output('summary', type=[<type 'unicode'>, <type 'NoneType'>]) output: PrimaryKey('value') +command: schema +args: 0,1,1 +option: Str('version?') +output: Output('result') command: selfservice_add args: 1,5,3 arg: Str('aciname', cli_name='name') @@ -4870,6 +4945,26 @@ option: Str('version?') output: Entry('result') output: Output('summary', type=[<type 'unicode'>, <type 'NoneType'>]) output: PrimaryKey('value') +command: topic_find +args: 1,4,4 +arg: Str('criteria?') +option: Flag('all', autofill=True, cli_name='all', default=False) +option: Flag('pkey_only?', autofill=True, default=False) +option: Flag('raw', autofill=True, cli_name='raw', default=False) +option: Str('version?') +output: Output('count', type=[<type 'int'>]) +output: ListOfEntries('result') +output: Output('summary', type=[<type 'unicode'>, <type 'NoneType'>]) +output: Output('truncated', type=[<type 'bool'>]) +command: topic_show +args: 1,3,3 +arg: Str('name') +option: Flag('all', autofill=True, cli_name='all', default=False) +option: Flag('raw', autofill=True, cli_name='raw', default=False) +option: Str('version?') +output: Entry('result') +output: Output('summary', type=[<type 'unicode'>, <type 'NoneType'>]) +output: PrimaryKey('value') command: topologysegment_add args: 2,13,3 arg: Str('topologysuffixcn', cli_name='topologysuffix') |