gobj_list_resource()#
gobj_list_resource() retrieves a list of resources from the specified hgobj object, applying optional filtering and additional options.
Prototype
json_t *gobj_list_resource(
hgobj gobj,
const char *resource,
json_t *jn_filter, // owned
json_t *jn_options // owned
);
Parameters
Key |
Type |
Description |
|---|---|---|
|
|
The |
|
|
The name of the resource to be listed. |
|
|
A JSON object containing filtering criteria. Owned by the caller. |
|
|
A JSON object containing additional options for listing resources. Owned by the caller. |
Return Value
Returns a JSON object containing the list of resources. The caller is responsible for managing the returned JSON object.
Notes
If the gobj does not implement mt_list_resource, an error is logged and NULL is returned.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples