gobj_authz()
#
Retrieves the authorization details for a given hgobj
. If authz
is specified, it returns the details of that specific authorization; otherwise, it returns all authorizations available for the object.
Prototype
json_t *gobj_authz(
hgobj gobj,
const char *authz
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
The object whose authorizations are being queried. |
|
|
The specific authorization to retrieve. If empty, all authorizations are returned. |
Return Value
A JSON object containing the authorization details. Returns NULL
if the object is NULL
or destroyed.
Notes
This function internally calls authzs_list()
to fetch the authorization details.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples