[% USE API_Shell; #For now, hard-code these in the order in which we display them. #TODO: Get these from the APIs themselves. SET sort_types = [ 'lexicographic', 'numeric', 'numeric_zero_as_max', 'ipv4', ]; SET filter_types = [ { value => 'contains', description => locale.maketext("Contains") } { value => 'begins', description => locale.maketext("Begins With") }, { value => 'eq', description => locale.maketext("Equals") }, { value => 'gt', description => locale.maketext("Greater Than (numeric)") }, { value => 'lt', description => locale.maketext("Less Than (numeric)") }, ]; PROCESS '_ajaxapp.tmpl'; SET big_x = !CPANEL.ua_is_ie() || (CPANEL.ua_is_ie() > 8) ? '☓' : 'X'; SET THIS_IS_WHM = CPANEL.is_whm(); SET api_calls = {}; -%] [% VIEW function_select_combobox; BLOCK text; -%]
[% END; END -%][% locale.maketext("Use this interface to run API calls interactively.") %]
[% locale.maketext("[output,strong,WARNING:] API function calls may change or delete data on your server, which can cause your server to fail. Read the function call’s documentation thoroughly before you use it in the API Shell, a script, or through any other method.") %] [% locale.maketext("If you wish to see an example of the output from a specific function call that uses test data, read the [output,em,Example] section for that function call in our API documentation.") %]
') %]