4.3. listresource

The listresource tool allows to list and search for resources within a given context.

4.3.1. Parameters

-h,--helpPrints a help text
--environmentShow info about commandline environment
--nonlRemove all newlines (\n) from output
-c,--contextid <integer>The id of the context
--csvFormat output as csv
-s,--searchpattern <string>The search pattern which is used for listing

4.3.2. Extra parameters when authentication is enabled

-A,--adminuser <string>Context Admin user name
-P,--adminpass <string>Context Admin password

4.3.3. Return value

0 on success

>0 on failure

4.3.4. Mandatory parameters

contextid {adminuser adminpass}

4.3.5. Command output

Standard output:

idnamedisplaynamedescriptionemailavailable
6laptop"Super Laptop""laptop for rent"laptop@example.comtrue

csv output:

id,name,displayname,email,available

4.3.6. Example

root@oxhe~# /opt/open-xchange/sbin/listresource -c 123

idnamedisplaynamedescriptionemailavailable 
6laptop"Super Laptop""laptop for rent"laptop@example.comtrue