List¶
GET /api/v1/objc_cfg/list
Overview¶
Read Resource Catalog category configurations and merge the currently reported categories and counts.
Prerequisites and Usage Steps¶
The route permission must match one of routine.defaultAccess, anonymous.shared, or anonymous.snapshotShared. Actual counts in the list also require O/CO data query permission infrastructure.Query; Resource Catalog read permission does not replace data query permission.
Returns a native content array, unpaginated, sorted by name in ascending order, ignoring case. Configurations come from non-deleted catalogs in the current workspace. Categories that are not configured but have data can be supplemented by the system template for the current language; otherwise, an empty display configuration is used by default. uuid can be null. docCount exists only on categories counted in this request; unconfigured categories are still listed but do not necessarily have docCount=0.
The public sourceType supports only object/custom_object and does not apply the shared internal historical data types. Count statistics include at most 1,000 categories and are subject to query permissions/access rules; they are not an absolutely complete asset inventory. search affects both local configuration matching and the downstream source regular expression; timeRange affects only data statistics and does not hide all configurations without data. The Query objcGroupUUID is currently not used for filtering.
targetWorkspaceUUIDs only switches the statistics source; configurations/templates/groups still come from the current workspace. It requires valid authorization and the same site. Do not use cross-workspace docCount to incorrectly infer that the target workspace uses the current display configuration.
Request Headers¶
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| DF-API-KEY | string | Y | OpenAPI authentication credential for the workspace. Example: <DF-API-KEY>How to obtain or fill in: Obtain an OpenAPI Key with this operation permission from API Key Management in the target workspace. |
Query Request Parameters¶
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| targetWorkspaceUUIDs | commaArray | Optional, comma-separated. If not passed, queries the entity count of the current workspace; affects only downstream count statistics, while configurations/templates/groups are still taken from the current workspace. The target must have valid authorization and come from a single site; configurations from different workspaces are not mixed in the response. Allowed null: False Allowed empty string: False Example: wksp_exampleHow to obtain or fill in: Obtain the target from content[].data[].workspaceUUID in the granted workspace list, or use the current workspace UUID. |
|
| objcGroupUUID | string | Optional. For create/update, an explicit empty string clears the group; if omitted, the template groupCfg.name is attempted, and if there is no name, an empty string is used. For updates, this does not keep the original group. If non-empty, the group must exist in the current workspace. Although the list declares this field, the current implementation does not filter by it; do not rely on it to narrow results. Allowed null: False Allowed empty string: True Maximum length: 64 Example: How to obtain or fill in: Obtain the objcg_ identifier from Resource Catalog group management in the current workspace or from objcGroupUUID in a list entry. |
|
| sourceType | string | Y | Required for public APIs; only object/custom_object. The shared internal function's *_history is not supported. For creation, the actual value is taken from templateInfo.main[0].class and must match this field; for update/read, it is used to select the configuration type. Public deletion supports only custom_object, and the controller fixes this type. Allowed null: False Allowed values: ['object', 'custom_object'] Example: custom_objectHow to obtain or fill in: Select object for system objects and custom_object for custom resource objects, based on the actual reported data source. |
| search | string | Optional for list; leading and trailing whitespace is removed. Local configurations are fuzzy-matched by name/alias, and downstream category statistics concatenate it into the regex source expression; special regex characters/backticks may change the scope or cause parsing errors. Plain keywords are recommended; results are not guaranteed to have docCount for every item. Allowed null: False Example: exampleHow to obtain or fill in: The caller enters a category name/alias keyword. |
|
| timeRange | string | Optional; defaults to the string [], and the query service determines the default window. Affects only count statistics and does not trim local configurations. Encode it with --data-urlencode; a non-JSON string will fail parsing in the controller with 500, which is not a request Body JSON syntax error. Allowed null: False Example: [1785427200000,1785430800000]How to obtain or fill in: The client constructs a two-element JSON array from the start/end Unix millisecond timestamps, then serializes it into a Query string. |
Request Example¶
curl --get 'https://openapi.guance.com/api/v1/objc_cfg/list' \
-H 'DF-API-KEY: <DF-API-KEY>' \
--data-urlencode sourceType=custom_object \
--data-urlencode 'timeRange=[1785427200000,1785430800000]'
Response¶
HTTP 200, application/json. The example below shows the main fields that can be read directly.
| Field | Type | Description |
|---|---|---|
| content | object array | Category array; empty []. |
| content[].uuid | string or null | Local configuration UUID; null when only reported/system template has no local configuration. |
| content[].name | string | Category code, used for subsequent export/update/delete instead of uuid. |
| content[].alias | string or null | Display alias. |
| content[].fields | object array | Configuration field definitions. |
| content[].fields[].name | string | Actual reported field name; name is mandatory and must not be duplicated, following field naming rules. |
| content[].fields[].alias | string | Optional display alias. |
| content[].filters | object array | Quick filter items. |
| content[].filters[].key | string | Filter field. |
| content[].tableColumns | object array | List column configuration. |
| content[].tableColumns[].key | string | Column field. |
| content[].tableDetailViews | object array or object | Detail configuration; the branch without a template can be {}. |
| content[].iconSet | object | Conditional icon configuration; can be omitted in the branch without configuration. |
| content[].iconSet.icon | string | Conditional icon identifier. |
| content[].iconSet.url | string | Conditional image URL. |
| content[].objcGroupUUID | string | Local group UUID; an empty string if no value. |
| content[].objcGroupInfo | object | Optional group information, depending on the local/template source. |
| content[].objcGroupInfo.id | integer | Local group record ID; can be omitted. |
| content[].objcGroupInfo.uuid | string | Group UUID. |
| content[].objcGroupInfo.workspaceUUID | string | Owning workspace; can be omitted. |
| content[].objcGroupInfo.name | string | Group name. |
| content[].objcGroupInfo.creator | string | Conditional creator. |
| content[].objcGroupInfo.updator | string | Conditional updater. |
| content[].objcGroupInfo.createAt | integer | Conditional creation Unix seconds. |
| content[].objcGroupInfo.updateAt | integer | Conditional update Unix seconds. |
| content[].objcGroupInfo.deleteAt | integer | Conditional deletion Unix seconds; -1 if not deleted. |
| content[].objcGroupInfo.status | integer | Conditional group status. |
| content[].bindSet | array | Historical placeholder field only in the branch without configuration. |
| content[].docCount | integer or number | Present only for categories matched by entity counting in this request; omitted when the configuration exists but no data matches, and not uniformly filled with 0. |
| content[].declaration | object or null | Workspace common declaration attached to non-empty business objects; can be null or an empty object when not configured; empty objects are not added. |
| content[].tableDetailViews[].title | string | Tab title. |
| content[].tableDetailViews[].viewType | string | component/dashboard. |
| content[].tableDetailViews[].viewName | string | Built-in page path or built-in view name. |
| content[].tableDetailViews[].required | boolean | Whether display is determined by keys. |
| content[].tableDetailViews[].keys | object | Dynamically matched fields/values. |
| content[].tableDetailViews[].keys.fieldName | JSON | Match value/existence marker *. |
| content[].tableDetailViews[].timerange | string or string array | default/relative duration/before-after offset array. |
| content[].tableDetailViews[].timerange[] | string | A single before/after offset duration. |
{
"code": 200,
"content": [
{
"uuid": "objc_example",
"name": "example_resources",
"alias": "Example Resource Catalog",
"fields": [
{
"name": "name",
"alias": "Resource Name"
}
],
"filters": [
{
"key": "env"
}
],
"tableColumns": [
{
"key": "name"
}
],
"tableDetailViews": [],
"iconSet": {},
"objcGroupUUID": "",
"docCount": 2,
"declaration": {}
}
],
"errorCode": "",
"message": "",
"success": true,
"traceId": "TRACE-EXAMPLE"
}
Error Responses¶
See Common Error Definitions for authentication, rate limiting, and common request errors.
Only configurations in the workspace of the current API Key can be modified/exported. The list can count authorized target workspaces, but their display configurations still come from the current workspace. The API has a freeEdition version declaration; public OpenAPI authentication does not perform this version check on this route, so do not write the version itself as a fixed 403. Upstream 4xx query responses are mapped according to the actual Kodo/permissions; ordinary 5xx eventually become 500 ft.InternalServerError.
| HTTP Status | errorCode | Trigger Condition | Message or Response Description | Handling Method |
|---|---|---|---|---|
| 406 | ft.ParameterValidationFailed | A request field is missing, or a field value violates the declared validation conditions | Parameter parsing failed | Check the parameter location, field name, type, and value. |
| 406 | ft.workspaceUnauthorized | The explicit target workspace is not authorized for the current workspace | Workspace [{}] is not authorized | Select a valid target again from the granted workspace list. |
| 406 | ft.UnsupportMultiSiteQuery | The target authorization spans multiple sites / the external organization address is not unique | Multi-site workspace query is not supported | Request each site separately and verify the authorization source address. |
| 404 | ft.NoInitOtherNodeCfg | Cross-site authorization for an external organization is missing the source site address | Other node configuration is not initialized | Contact the administrator to fix the authorization site information. |
| 400 | ft.InvalidWorkspace | The target workspace on the current site does not exist or is inactive | Invalid workspace: {} | Verify the current status of the authorized workspace. |
| 403 | ft.ForbiddenQuery | The current Key lacks query permission for the target data type | You do not have {} permission | Catalog read permission does not replace object data query permission; add the corresponding namespace authorization. |
| 406 | ft.DqlParseError | Special characters in search cause the generated expression to fail parsing | dql parser parsing failed: {} | Remove special regex characters/backticks first and use plain category keywords. |
| 503 | ft.QueryServiceUnavailable | Upstream query 503 is normalized to temporarily unavailable | The query service is temporarily unavailable. Please try again later. | Retry with limited backoff based on content.retryable and traceId. |
| 500 | ft.InternalServerError | Abnormal structure in historical configurations/system templates, time string is not JSON, or uncaught errors in query/data formatting | Internal error | Verify parameters and historical templates, narrow the read scope, retry with a limited number of times, and retain traceId; reads do not perform configuration writes for this request. |