Get Data Access Rule List¶
GET /api/v1/data_query_rule/list
Overview¶
Read data access rules of various types and their sources and enabled/disabled configurations with pagination.
Prerequisites and Usage Steps¶
Query non-deleted rules in the current workspace, including disabled ones, sorted by createAt descending. type must be explicit; the role/index/source filter groups are ANDed with each other, and any match within a group is accepted. The returned member/role summaries are for configuration verification and do not represent the final effective permissions for each member.
Saving a rule affects the data query scope/result masking for identities that meet the conditions in subsequent queries. It does not modify, delete, or backfill raw data, nor does it add base query permissions to roles. Multiple roles and rules are merged according to query-side policies, so final permissions cannot be inferred from a single rule. Owner is exempt; the administrator and the workspace's "Data Access Scope Restriction" setting change how roles with no match are handled, so acceptance should be performed using actual queries from a representative member. Saving invalidates the rule cache, and it cannot be guaranteed that all in-flight queries switch immediately.
Request Headers¶
| Parameter | Type | Required | Description |
|---|---|---|---|
| DF-API-KEY | string | Y | The OpenAPI authentication credential for the workspace. Example: <DF-API-KEY>How to obtain or fill: Obtain an OpenAPI Key with this operation permission from API Key Management in the target workspace. |
Query Request Parameters¶
| Parameter | Type | Required | Description |
|---|---|---|---|
| type | string | Y | The Query declaration is required; a normal URL cannot express "all" with JSON null, so explicitly select one type. Allows null: True Allowed values: ['lineage', 'keyevent', 'logging', 'rum', 'tracing', 'metric'] Example: loggingHow to obtain or fill: Select the target data domain from logging/rum/tracing/metric/lineage/keyevent. |
| roleUUIDs | commaArray | Optional; matches any role or rules containing *. It is not a JSON array. Allows null: False Example: role_exampleHow to obtain or fill: Get UUIDs from the role list and separate multiple values with English commas. |
|
| indexUUIDs | commaArray | Optional; rules containing * are automatically matched; other current items use contains matching on concatenated index identifiers and may match approximately, so check indexes afterwards. Allows null: False Example: defaultHow to obtain or fill: Get UUIDs/default from the log index list and separate multiple values with English commas. |
|
| sources | commaArray | Optional; array members exactly match any one or contain *; combined with other filters as AND. Allows null: False Example: monitorHow to obtain or fill: Use actual source values from the target domain and separate multiple values with English commas. |
|
| isMask | string | Optional; only determines whether maskFields is an empty string, and does not mean the regex is actually enabled or matched. Allows null: False Allowed values: ['true', 'false'] Example: trueHow to obtain or fill: Use the string true when you need to filter rules with masking fields configured; otherwise false. |
|
| search | string | Optional; performs contains matching on name; does not search descriptions, fields, or data. Allows null: True Example: productionHow to obtain or fill: Rule name keyword. |
|
| pageSize | integer | Optional, default 50, no declared maximum; a small page reduces the returned volume, but the current implementation reads all matching rules first and then paginates, so paging through is recommended. Allows null: False Example: 50How to obtain or fill: Choose an appropriate positive integer according to client capacity, such as 50. |
|
| pageIndex | integer | Optional, default 1, no minimum is declared, and the caller must choose a positive integer. Allows null: False Example: 1How to obtain or fill: Start from 1 and continue according to the top-level pageInfo. |
Request Example¶
curl --get 'https://openapi.guance.com/api/v1/data_query_rule/list' \
-H 'DF-API-KEY: <DF-API-KEY>' \
--data-urlencode type=logging \
--data-urlencode pageIndex=1 \
--data-urlencode pageSize=50
Response¶
HTTP 200, application/json. The example below shows the main fields that can be read directly. The returned indexWsInfo only describes the current information of the source index and does not perform index configuration writes; to adjust an index, use the corresponding operations in Log Index Configuration.
| Field | Type | Description |
|---|---|---|
| content.data | array<object> |
Rules on this page; [] for an empty result. |
| content.data[].id | integer or null | Record ID; the pre-submit snapshot returned by creation may be null; use uuid for subsequent operations. |
| content.data[].uuid | string | lqrl_ rule UUID; both modules share the entity and identifier. |
| content.data[].workspaceUUID | string | Workspace to which this rule belongs, distinct from the source workspace. |
| content.data[].status | integer | 0 enabled, 2 disabled, 3 deleted; this module reads only non-deleted rules. |
| content.data[].creator | string | Creating identity. |
| content.data[].updator | string | Most recent updating identity; may initially be empty. |
| content.data[].createAt | integer | Creation Unix seconds. |
| content.data[].updateAt | integer | Update Unix seconds; -1 if never updated. |
| content.data[].deleteAt | integer | Deletion Unix seconds; -1 if not deleted. |
| content.data[].name | string | Stored value: the declaration requires it; a non-empty unique name is recommended; an empty string may still enter the automatic naming branch, so do not rely on this compatibility behavior. Maximum 64 counting units (ASCII/half-width katakana 1, other characters 2); enabled and disabled rules of the same type both participate in duplicate name checks. |
| content.data[].desc | string | Stored value: optional, maximum 256 of the same counting units; default/empty string is cleared to empty; modification is not preservation of the original value. |
| content.data[].indexes | array | Stored value: log rules should explicitly provide it; declared optional but log queries require a valid index scope; omitting it as [] does not automatically change it to all. ["*"] means all available log indexes; * is recommended to be used alone; [] is not all. Do not use a regular index name in place of a UUID; authorization is not automatically created; a successful save does not prove all remote resources are still valid. |
| content.data[].indexes[] | string | Stored value: array members should be non-empty strings; the original declaration did not enforce each item, and an incorrect type can cause 500. |
| content.data[].roleUUIDs | array | Stored value: required array; ["*"] means every role, and Owner is still not subject to data access restrictions; [] matches no role and is not equivalent to all. The keyevent event must be a non-empty string array, and * can only appear alone; for other types, roles within the validation scope are checked for existence, but role status=0 is not guaranteed. Base query permissions must still be granted separately. |
| content.data[].roleUUIDs[] | string | Stored value: use a valid role; do not use an account UUID. |
| content.data[].conditions | string | Stored value: enter only the filter expression, not the entire query or outer braces. Optional, default empty string; an empty string adds no extra filtering. It is recommended not to exceed 4048 characters; keyevent specifically validates Python character count ≤4048 and parses E query syntax, while other types do not fully validate condition semantics when saving, and a successful save does not guarantee future queries will succeed. This rule defines the data scope allowed for access. |
| content.data[].extend | json | Stored value: optional arbitrary JSON echoed back, default {}; there are no unified required subkeys or units, and the server does not automatically generate conditions from it; modification replaces it as a whole; do not store credentials. |
| content.data[].extend.{custom key} | any | Stored value: any serializable JSON value; not an additional effective condition. |
| content.data[].logic | string | Stored value: compatibility echo field, usually and/or; optional. Omitted saves an empty string; actual effective filtering uses conditions directly, changing logic does not rewrite conditions, and merging multiple roles/rules is not controlled by this field. |
| content.data[].maskFields | string | Stored value: optional; default empty string means no field masking is configured for this rule; omitting it on modification clears it. When a field is selected and reExprs=[], non-null values mask the entire field as ***; when a non-empty regex list is provided, only enabled regexes are applied, and disabling all is not equivalent to full-field masking. It is recommended to keep it ≤256 characters to fit the storage column. |
| content.data[].reExprs | array | Stored value: optional, default [], modification replaces it as a whole. Each regex is validated on save, including items with enable=false; an invalid regex returns ft.ErrorRegularExpression. Do not use a standalone * to mean any string; use .*. When the selected field has no regex, the entire field is ***; regexes only process matching fragments in string content and replace matched content with ***; save validation and the execution engine differ, so after a successful save you still need to verify with a representative query. |
| content.data[].reExprs[] | json | Stored value: only name/enable/reExpr are recommended; the original declaration did not enforce the structure of array elements, and non-objects can cause 500. |
| content.data[].reExprs[].name | string | Stored value: optional display name, not used as the matching expression; omitting it does not affect regex matching. |
| content.data[].reExprs[].enable | boolean | Stored value: an explicit boolean is recommended; if omitted, it is treated as not enabled; disabled regexes must still be syntactically valid. |
| content.data[].reExprs[].reExpr | string | Stored value: a non-empty regex is recommended. Currently, omission is checked as an empty string; do not rely on the server to complete a valid expression. |
| content.data[].sources | array | Stored value: non-log scope array; ["*"] means all available sources; omitting it as [] does not mean all. logging forcibly stores []. rum/lineage can be limited by an authorized workspace UUID:source identifier; tracing/metric/keyevent use the original source string. keyevent must be a non-empty string array, does not accept wksp_:source, and * cannot be mixed with other values. For rum, the application existence is checked only when the current regionCode is explicitly provided; a successful save for other sources does not prove that data actually exists. |
| content.data[].sources[] | string | Stored value: a single source interpreted according to the parent type; a non-empty string is recommended. |
| content.data[].type | string | Stored value: creation requires logging/rum/tracing/metric/lineage/keyevent; the declaration allows null, but an invalid type cannot form a normal query rule, so always submit one of the above strings. Modification does not accept type and uses the stored type. |
| content.data[].regionCode | string | Stored value: v2 declaration requires the source site code; log indexes of the same rule must belong to the same site and be consistent with this value. The old entry point does not accept this field. Data access rules do not replace cross-site/cross-workspace authorization; events across sites must have valid authorization containing keyevent or *. Note the actual reachability description for the duplicate route below. |
| content.data[].indexWsInfo | string or object | Log rules only: * means all; otherwise, the original indexes members are used as dynamic keys; if the resource does not exist or information cannot be obtained, the sub-object may be {}. |
| content.data[].indexWsInfo.{index identifier} | object | Workspace and index information for a configured index. |
| content.data[].indexWsInfo.{index identifier}.wsInfo | object | Source workspace information; may be an empty object. |
| content.data[].indexWsInfo.{index identifier}.wsInfo.uuid | string | Source workspace UUID. |
| content.data[].indexWsInfo.{index identifier}.wsInfo.name | string | Source workspace name. |
| content.data[].indexWsInfo.{index identifier}.wsInfo.status | integer | Workspace status. |
| content.data[].indexWsInfo.{index identifier}.wsInfo.regionCode | string | Site code. |
| content.data[].indexWsInfo.{index identifier}.wsInfo.regionName | string or null | Localized site name. |
| content.data[].indexWsInfo.{index identifier}.wsInfo.datastore | object | Optional; mapping of each data type to its storage class. |
| content.data[].indexWsInfo.{index identifier}.wsInfo.datastore.{data type} | string | For example, logging corresponds to scopedb; this is not a writable configuration. |
| content.data[].indexWsInfo.{index identifier}.wsInfo.durationSet | object | Optional; retention duration for each data type. |
| content.data[].indexWsInfo.{index identifier}.wsInfo.durationSet.{data type} | string | Duration string such as integer+d; distinguished by data domain. |
| content.data[].indexWsInfo.{index identifier}.wsInfo.storagePolicy | object | Optional long-term policy mapping for the log source workspace. |
| content.data[].indexWsInfo.{index identifier}.wsInfo.storagePolicy.{data type} | object | Long-term policy for the corresponding data domain. |
| content.data[].indexWsInfo.{index identifier}.wsInfo.storagePolicy.{data type}.isEnable | boolean | Whether the long-term policy is enabled. |
| content.data[].indexWsInfo.{index identifier}.wsInfo.storagePolicy.{data type}.duration | string | Long-term retention duration. |
| content.data[].indexWsInfo.{index identifier}.indexInfo | object | Complete entity of a regular index or a synthesized subset for default; historical/remote information may lack fields and should not be returned as a whole for writing. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.id | integer or null | Database record ID of the source regular index; may be omitted for the default index synthesized information. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.uuid | string | lgim_ index configuration UUID; the default index uses default. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.workspaceUUID | string | Workspace it belongs to. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.sourceIndexUUID | string | UUID of source A for cloned index B; empty for regular indexes. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.name | string | Source index: name of the currently exported index. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.desc | string | Source index: currently stored index description. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.conditions | string | Source index: compatibility condition string generated from the current extend. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.sortNo | integer or string | Matching order identifier; native direct writes or clones are usually 0. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.duration | string | Source index: currently stored standard retention duration string, such as 7d; for the valid stages of TLS, see setting. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.isBindCustomStore | integer or boolean | 1/true binds external storage. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.directIndex | integer or boolean | Source index: whether the current index is in native direct-write mode. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.isFullLineIndex | integer | Source index: current full-text index mode flag: 1 is full-line index, 0 is Message index. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.queryType | string | Query category, such as logging/standard or the mode returned by external SLS. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.exterStoreProject | string | External project/database identifier; usually empty for internal indexes. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.exterStoreName | string | External resource name; usually empty for internal. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.externalResourceAccessCfgUUID | string | Access configuration identifier, not the credential text. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.storeType | string | Usually empty for internal indexes; actual type when binding external. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.region | string | External region code. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.isPublicNetworkAccess | integer or boolean | Public network access flag. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.status | integer | 0 enabled, 2 disabled, 3 deleted. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.creator | string | Creating identity. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.updator | string | Most recent updating identity. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.createAt | integer | Creation Unix seconds. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.updateAt | integer | Update Unix seconds; -1 if never updated. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.deleteAt | integer | Deletion Unix seconds; -1 if not deleted. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.storagePolicy | object | Source index: currently stored long-term storage policy object. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.storagePolicy.longStorageEnabled | boolean | Source index: whether long-term storage policy is enabled. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.storagePolicy.longStorageDuration | string | Source index: currently configured total long-term retention duration in days, such as 90d; may be empty when disabled. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.setting | object | Source index: currently stored storage-specific configuration; TLS includes retention hours for each stage. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.setting.hot_retention | integer | Source index: TLS hot storage stage hours. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.setting.cold_retention | integer | Source index: TLS cold storage stage hours; omitted when not configured. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.setting.archive_retention | integer | Source index: TLS archive stage hours; omitted when not configured. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.extend | object | Source index: currently stored matching conditions, key fields, and display configuration. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.extend.matchMode | string | Source index: condition mode, basic or advanced. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.extend.filters | array | Source index: array of condition objects in basic mode. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.extend.filters[].name | string | Source index: original field name matched by the condition. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.extend.filters[].condition | string | Source index: and/or logical relationship with the previous condition; the connector of the first item is invalid. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.extend.filters[].operation | string | Source index: comparison or matching operator stored for this condition. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.extend.filters[].value | array | Source index: array of comparison values stored for this condition. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.extend.filters[] | json | Source index: one basic matching condition. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.extend.filters[].value[] | JSON | Source index: one condition value, typed according to actual configuration. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.extend.advancedFilter | json | Source index: root group object of the condition tree in advanced mode. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.extend.advancedFilter.type | string | Source index: root group node type group. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.extend.advancedFilter.condition | string | Source index: and/or logical relationship of the group's child conditions. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.extend.advancedFilter.filters | array | Source index: array of child groups or condition leaves under this group. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.extend.advancedFilter.filters[] | json | Source index: condition leaf of type rule or child group of type group. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.extend.advancedFilter.filters[].type | string | Source index: rule is a condition leaf, group is a recursive child group. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.extend.advancedFilter.filters[].name | string | Source index: original field name matched by the rule leaf. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.extend.advancedFilter.filters[].operation | string | Source index: comparison or matching operator stored for the rule leaf. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.extend.advancedFilter.filters[].value | array | Source index: array of comparison values for the rule leaf. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.extend.advancedFilter.filters[].condition | string | Source index: and/or logical relationship of the group child. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.extend.advancedFilter.filters[].filters | array | Source index: array of recursive child nodes of the group child. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.extend.advancedFilter.filters[].value[] | JSON | Source index: one condition comparison value, typed according to actual configuration. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.extend.extendFields | array | Source index: currently configured key field array. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.extend.extendFields[] | json | Source index: one key field and its display alias. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.extend.extendFields[].tag | string | Source index: original field name of the key field. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.extend.extendFields[].alias | string | Source index: display alias of the key field. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.extend.topFields | array | Source index: currently stored pinned field display configuration array. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.extend.topFields[] | json | Source index: one pinned field display configuration. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.extend.topFields[].tag | string | Source index: original field name of the pinned field. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.extend.topFields[].alias | string | Source index: pinned field display alias. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.extend.services | array | Source index: currently stored service display information array; does not replace index matching conditions. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.extend.services[] | string | Source index: one service display value. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.workspaceName | string | Source workspace name; may be omitted. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.workspaceStatus | integer | Source workspace status; may be omitted. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.regionCode | string | Source site code. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.regionName | string or null | Source site name. |
| content.data[].indexWsInfo.{index identifier}.indexInfo.grantStatus | integer | Optional; 3 indicates that authorization is currently unavailable; if absent, other access conditions are not guaranteed to be met. |
| content.data[].sourcesWsInfo | string or object | Non-log rules only: * means all; otherwise, the original members of sources are used as keys; other types only display source names and do not guarantee that the resource exists. |
| content.data[].sourcesWsInfo.{source identifier} | object | One source summary. |
| content.data[].sourcesWsInfo.{source identifier}.wsInfo | object | RUM may have source workspace information; other types are usually {}. |
| content.data[].sourcesWsInfo.{source identifier}.wsInfo.uuid | string | Source workspace UUID. |
| content.data[].sourcesWsInfo.{source identifier}.wsInfo.name | string | Source workspace name. |
| content.data[].sourcesWsInfo.{source identifier}.wsInfo.status | integer | Workspace status. |
| content.data[].sourcesWsInfo.{source identifier}.wsInfo.regionCode | string | Site code. |
| content.data[].sourcesWsInfo.{source identifier}.wsInfo.regionName | string or null | Localized site name. |
| content.data[].sourcesWsInfo.{source identifier}.wsInfo.datastore | object | Optional; mapping of each data type to its storage class. |
| content.data[].sourcesWsInfo.{source identifier}.wsInfo.datastore.{data type} | string | For example, logging corresponds to scopedb; this is not a writable configuration. |
| content.data[].sourcesWsInfo.{source identifier}.wsInfo.durationSet | object | Optional; retention duration for each data type. |
| content.data[].sourcesWsInfo.{source identifier}.wsInfo.durationSet.{data type} | string | Duration string such as integer+d; distinguished by data domain. |
| content.data[].sourcesWsInfo.{source identifier}.sourcesInfo | object | RUM application entity, or {name,status} for other types; may be {} when no information is available. |
| content.data[].sourcesWsInfo.{source identifier}.sourcesInfo.name | string | Original name of a non-RUM source. |
| content.data[].sourcesWsInfo.{source identifier}.sourcesInfo.id | integer | Application record ID. |
| content.data[].sourcesWsInfo.{source identifier}.sourcesInfo.uuid | string | Same as appId. |
| content.data[].sourcesWsInfo.{source identifier}.sourcesInfo.appId | string | RUM source identifier. |
| content.data[].sourcesWsInfo.{source identifier}.sourcesInfo.workspaceUUID | string | Workspace to which the application belongs. |
| content.data[].sourcesWsInfo.{source identifier}.sourcesInfo.clientToken | string | Application collection identifier; may be omitted; this is not the API Key of this API, and real values are not output in the example. |
| content.data[].sourcesWsInfo.{source identifier}.sourcesInfo.jsonContent | object | Application configuration; the structure differs by type; use the RUM application details documentation to interpret this type. |
| content.data[].sourcesWsInfo.{source identifier}.sourcesInfo.jsonContent.{config key} | JSON | Stored configuration for this application type, such as name/type; shown here for display only and not a data access rule parameter. |
| content.data[].sourcesWsInfo.{source identifier}.sourcesInfo.status | integer | Application status; may be historically invalid. |
| content.data[].sourcesWsInfo.{source identifier}.sourcesInfo.creator | string | Creating identity. |
| content.data[].sourcesWsInfo.{source identifier}.sourcesInfo.updator | string | Updating identity. |
| content.data[].sourcesWsInfo.{source identifier}.sourcesInfo.createAt | integer | Creation Unix seconds. |
| content.data[].sourcesWsInfo.{source identifier}.sourcesInfo.updateAt | integer | Update Unix seconds. |
| content.data[].sourcesWsInfo.{source identifier}.sourcesInfo.deleteAt | integer | Deletion Unix seconds. |
| content.data[].sourcesWsInfo.{source identifier}.sourcesInfo.workspaceName | string | Workspace name. |
| content.data[].sourcesWsInfo.{source identifier}.sourcesInfo.workspaceStatus | integer | Workspace status. |
| content.data[].sourcesWsInfo.{source identifier}.sourcesInfo.regionCode | string | Source site code. |
| content.data[].sourcesWsInfo.{source identifier}.sourcesInfo.regionName | string or null | Source site name. |
| content.data[].sourcesWsInfo.{source identifier}.sourcesInfo.grantStatus | integer | Optional; 3 indicates that authorization is currently unavailable. |
| content.data[].creatorInfo | object | Identity summary; {} when no parseable information is available. |
| content.data[].creatorInfo.uuid | string | Identity UUID; may be omitted. |
| content.data[].creatorInfo.status | integer | Account status; may be omitted. |
| content.data[].creatorInfo.wsAccountStatus | integer | Membership status; may be omitted. |
| content.data[].creatorInfo.name | string | Display name. |
| content.data[].creatorInfo.username | string | Login name. |
| content.data[].creatorInfo.email | string | Email or system identity identifier. |
| content.data[].creatorInfo.mobile | string | Mobile number; may be empty. |
| content.data[].creatorInfo.countryCode | string | Country/region code; may be omitted. |
| content.data[].creatorInfo.iconUrl | string | Avatar URL; may be omitted. |
| content.data[].creatorInfo.acntWsNickname | string | Nickname in this workspace; may be omitted. |
| content.data[].updatorInfo | object | Identity summary; {} when no parseable information is available. |
| content.data[].updatorInfo.uuid | string | Identity UUID; may be omitted. |
| content.data[].updatorInfo.status | integer | Account status; may be omitted. |
| content.data[].updatorInfo.wsAccountStatus | integer | Membership status; may be omitted. |
| content.data[].updatorInfo.name | string | Display name. |
| content.data[].updatorInfo.username | string | Login name. |
| content.data[].updatorInfo.email | string | Email or system identity identifier. |
| content.data[].updatorInfo.mobile | string | Mobile number; may be empty. |
| content.data[].updatorInfo.countryCode | string | Country/region code; may be omitted. |
| content.data[].updatorInfo.iconUrl | string | Avatar URL; may be omitted. |
| content.data[].updatorInfo.acntWsNickname | string | Nickname in this workspace; may be omitted. |
| content.data[].relRoleInfos | array<object> |
Role summaries matched at read time; * expands to valid non-Owner roles, and a specified role may return a historical status or {}. |
| content.data[].relRoleInfos[] | object | A single role summary; may be {} if not found. |
| content.data[].relRoleInfos[].uuid | string | Role UUID; may be omitted. |
| content.data[].relRoleInfos[].name | string | Role name; may be omitted. |
| content.data[].relRoleInfos[].status | integer | Role status; may be omitted. |
| content.data[].memberCount | integer | Estimated number of members for the current role relationship, not the actual number of restricted queries; the wildcard branch subtracts 1 from the relationship count, which may not equal the length of relMemberInfos. |
| content.data[].relMemberInfos | array<object> |
Hit members with parseable identities; the * branch excludes Owner. |
| content.data[].relMemberInfos[] | object | A single parseable member identity. |
| content.data[].relMemberInfos[].uuid | string | Identity UUID; may be omitted. |
| content.data[].relMemberInfos[].status | integer | Account status; may be omitted. |
| content.data[].relMemberInfos[].wsAccountStatus | integer | Membership status; may be omitted. |
| content.data[].relMemberInfos[].name | string | Display name. |
| content.data[].relMemberInfos[].username | string | Login name. |
| content.data[].relMemberInfos[].email | string | Email or system identity identifier. |
| content.data[].relMemberInfos[].mobile | string | Mobile number; may be empty. |
| content.data[].relMemberInfos[].countryCode | string | Country/region code; may be omitted. |
| content.data[].relMemberInfos[].iconUrl | string | Avatar URL; may be omitted. |
| content.data[].relMemberInfos[].acntWsNickname | string | Nickname in this workspace; may be omitted. |
| content.data[].excludeOwnerRoleUUIDs | array<string> |
Valid non-Owner role UUIDs provided only when roleUUIDs contains *. |
| content.data[].excludeOwnerRoleUUIDs[] | string | A single role UUID. |
| content.declaration | object or null | Workspace common declaration attached to non-empty business objects; may be null or an empty object when not configured; an empty object is not added. The exact paging position is subject to the structure on this page. |
| pageInfo.pageIndex | integer | Current page number. |
| pageInfo.pageSize | integer | Page size. |
| pageInfo.count | integer | Number of items on this page. |
| pageInfo.totalCount | integer | For a non-empty page, the total number of matching rules; for the current empty page that returns early, this value is 0, and a 0 for an out-of-range page cannot prove that there are no rules globally. |
{
"code": 200,
"content": {
"data": [
{
"id": 100,
"uuid": "lqrl_example",
"workspaceUUID": "wksp_example",
"name": "production_only",
"desc": "Only allows viewing production environment data.",
"type": "logging",
"indexes": [
"default"
],
"sources": [],
"roleUUIDs": [
"role_example"
],
"conditions": "`env` = 'production'",
"extend": {},
"logic": "and",
"maskFields": "message",
"reExprs": [
{
"name": "token",
"enable": true,
"reExpr": "tkn_[0-9A-Za-z]+"
}
],
"regionCode": "",
"status": 0,
"creator": "wsak_example",
"updator": "",
"createAt": 1785427200,
"updateAt": -1,
"deleteAt": -1,
"indexWsInfo": {
"default": {
"wsInfo": {},
"indexInfo": {}
}
},
"creatorInfo": {},
"updatorInfo": {},
"memberCount": 1,
"relRoleInfos": [
{
"uuid": "role_example",
"name": "Production query",
"status": 0
}
],
"relMemberInfos": []
}
],
"declaration": {}
},
"errorCode": "",
"message": "",
"success": true,
"traceId": "TRACE-EXAMPLE",
"pageInfo": {
"pageIndex": 1,
"pageSize": 50,
"count": 1,
"totalCount": 1
}
}
Error Responses¶
For authentication, rate limiting, and common request errors, see Common Error Definitions.
| HTTP Status | errorCode | Trigger Condition | Message or Response Description | Resolution |
|---|---|---|---|---|
| 406 | ft.ParameterValidationFailed | An undeclared Query parameter is used or a parameter violates the rules | Parameter parsing failed | Check the Query parameter table and example. |
| 404 | ft.NoInitOtherNodeCfg | No available source site address is found when reading or validating remote index/RUM application metadata | Other node configuration is not initialized | An administrator should verify the source site configuration, accessible address, and valid cross-workspace authorization, then retry after fixing. |
| 500 | ft.InternalServerError | Failed to read and format rules, roles, source workspaces, or index/application metadata | Internal error | Refresh the authorized sources and site information and retry later; if it persists, provide traceId. |