Query Incident Comments¶
GET /api/v1/incidents/comment/{incident_uuid}/list
Overview¶
Read Incident comments and attachment/identity summaries with pagination.
Before You Call and Usage Steps¶
The Key must have one of routine.defaultAccess or incidents.incidentsQuery. Reads are performed in the current Workspace; the path parameter incident_uuid is obtained from content.data[].uuid in Incident List. Pagination is sorted by createAt in descending order, then by id in descending order when values are identical. Defaults are pageIndex=1 and pageSize=10. Pagination information is in the top-level pageInfo, and content is an object containing the data array and declaration. An empty list does not prove that the Incident exists; this endpoint does not validate the parent Incident first.
Returns user and system comments, with creatorInfo/updatorInfo and attachment summaries. The creator of a system-generated operation comment may be the system reply identity, while the actual operator principal may be in extend.operator/operator_info; do not treat all comments as user comments. For an unknown identity, {} is used; empty comment text/extension is read as the stored value; attachments are downloaded separately through downloadAttachment. Records added during a query shift offset-based pagination. Continue reading with deduplication by uuid; this is not claimed to be a frozen snapshot.
Path Parameters¶
| Parameter | Type | Required | Description |
|---|---|---|---|
| incident_uuid | string | Y | Incident UUID in the current Workspace; not an alert event ID, SLO UUID, or comment UUID. Allow null: False Example: incident_exampleHow to obtain or fill in: Obtain content.data[].uuid from Incident List. |
Request Headers¶
| Parameter | 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 | Type | Required | Description |
|---|---|---|---|
| pageSize | integer | Optional integer. Default: 10. The current implementation does not declare a maximum value. Callers should limit it to a reasonable positive integer; 0 or negative values are not a stable pagination contract. Allow null: False Example: 10How to obtain or fill in: Choose based on query volume; 10 to 100 is recommended. |
|
| pageIndex | integer | Optional integer. Default: 1. >=1 is recommended. The current declaration does not enforce a positive-integer restriction, and you cannot rely on an error for negative values. Offset-based pagination may shift when records are added or changed. Allow null: False Example: 1How to obtain or fill in: Start from the first page and continue paging using the top-level pageInfo. |
Request Example¶
curl --get 'https://openapi.guance.com/api/v1/incidents/comment/incident_example/list' \
-H 'DF-API-KEY: <DF-API-KEY>' \
--data-urlencode pageIndex=1 \
--data-urlencode pageSize=10
Response¶
HTTP 200, application/json. The example below shows the main fields that can be read directly.
| Field | Type | Description |
|---|---|---|
| content | object | Paginated content object. The record array is in data, and the declaration is in declaration. |
| content.data | array<object> |
Record array for this page; [] if no matches. |
| content.data[].id | integer or null | Database row ID; use uuid for business identification. May be null for a pre-commit snapshot. |
| content.data[].uuid | string | UUID of this resource. |
| content.data[].status | integer | Database status: 0 active / 3 deleted; different from the Incident business status incidentsStatus. |
| content.data[].creator | string | Creator principal; for an API Key, this is generally wsak_ plus the resource UUID. |
| content.data[].updator | string | Most recent updater principal; can be empty if not updated. |
| content.data[].createAt | integer | Creation time in Unix seconds. |
| content.data[].updateAt | integer | Last update time in Unix seconds. |
| content.data[].deleteAt | integer | Deletion time in Unix seconds; -1 if not deleted. |
| content.data[].incidentsUUID | string | UUID of the associated Incident. |
| content.data[].workspaceUUID | string | UUID of the associated Workspace. |
| content.data[].comment | string | Comment body, which may include system-generated operation descriptions; do not treat the body as a structured operation record. |
| content.data[].extend | object or JSON | Stored extension; system comments may contain operator/operator_info/operate_type/before/after, etc. |
| content.data[].extend.members | array<object> |
@member input records, used as candidates for additional email notifications when creating a comment; does not indicate delivery. |
| content.data[].extend.members[].type | string | @ indicates an account mention; other values are not included in this email candidate set. |
| content.data[].extend.members[].uuid | string | Account UUID. |
| content.data[].extend.members[].exists | boolean | Client editor state; server-side notification filtering does not depend on this value. |
| content.data[].extend.linkList | array<object> |
Business link display data. |
| content.data[].extend.linkList[].name | string | Link display name. |
| content.data[].extend.linkList[].link | string | Link URL. |
| content.data[].extend.manager | array<string> |
Array of historical external owner email addresses; used for filtering when an update retains the old extra.managerInfos; not equivalent to the Incident assigner. |
| content.data[].extend.manager[] | string | A historical owner email address. |
| content.data[].extend.extra | object | Auxiliary external identity data; an update may retain the original creator and the managerInfos still present in manager. |
| content.data[].extend.extra.creator | JSON | Original creator auxiliary identity data; if an old value exists, an update cannot use it to rewrite the creator. |
| content.data[].extend.extra.managerInfos | object | Dynamic mapping from historical owner email addresses to identity data. |
| content.data[].extend.extra.managerInfos.邮箱 | JSON | Original identity data corresponding to this email. |
| content.data[].extend.operator | string | Original operator principal identifier of a system operation comment. |
| content.data[].extend.operator_info | object | Principal summary attached to a system operation comment. |
| content.data[].extend.operate_type | string | Operation type attached to a system operation comment. |
| content.data[].extend.before | JSON | Old value of the system operation; varies by action. |
| content.data[].extend.after | JSON | New value of the system operation; varies by action. |
| content.data[].extend.自定义字段 | JSON | Other extension key-value pairs saved by the caller/system; this API does not guarantee a fixed structure. |
| content.data[].extend.operator_info.uuid | string | Principal UUID; the system reply principal may be empty or a system identifier. |
| content.data[].extend.operator_info.status | integer | Principal status. |
| content.data[].extend.operator_info.wsAccountStatus | integer | Workspace member status; for a Key, this is the Key status, not the Incident status. |
| content.data[].extend.operator_info.username | string | Login name/Key name/system name. |
| content.data[].extend.operator_info.name | string | Display name; for the system AI, the display name uses the site configuration. |
| content.data[].extend.operator_info.iconUrl | string | Avatar URL; may be omitted in a system summary. |
| content.data[].extend.operator_info.email | string | Contact email; a Key summary may be the Key UUID, which is not a deliverable email address. |
| content.data[].extend.operator_info.mobile | string | Contact mobile number; can be empty. |
| content.data[].extend.operator_info.countryCode | string | Country code; may be omitted in a system summary. |
| content.data[].extend.operator_info.acntWsNickname | string | Workspace nickname; may be omitted in a system summary. |
| content.data[].creatorInfo | object | Creator/updater principal summary; {} if unknown. |
| content.data[].creatorInfo.uuid | string | Principal UUID; the system reply principal may be empty or a system identifier. |
| content.data[].creatorInfo.status | integer | Principal status. |
| content.data[].creatorInfo.wsAccountStatus | integer | Workspace member status; for a Key, this is the Key status, not the Incident status. |
| content.data[].creatorInfo.username | string | Login name/Key name/system name. |
| content.data[].creatorInfo.name | string | Display name; for the system AI, the display name uses the site configuration. |
| content.data[].creatorInfo.iconUrl | string | Avatar URL; may be omitted in a system summary. |
| content.data[].creatorInfo.email | string | Contact email; a Key summary may be the Key UUID, which is not a deliverable email address. |
| content.data[].creatorInfo.mobile | string | Contact mobile number; can be empty. |
| content.data[].creatorInfo.countryCode | string | Country code; may be omitted in a system summary. |
| content.data[].creatorInfo.acntWsNickname | string | Workspace nickname; may be omitted in a system summary. |
| content.data[].updatorInfo | object | Creator/updater principal summary; {} if unknown. |
| content.data[].updatorInfo.uuid | string | Principal UUID; the system reply principal may be empty or a system identifier. |
| content.data[].updatorInfo.status | integer | Principal status. |
| content.data[].updatorInfo.wsAccountStatus | integer | Workspace member status; for a Key, this is the Key status, not the Incident status. |
| content.data[].updatorInfo.username | string | Login name/Key name/system name. |
| content.data[].updatorInfo.name | string | Display name; for the system AI, the display name uses the site configuration. |
| content.data[].updatorInfo.iconUrl | string | Avatar URL; may be omitted in a system summary. |
| content.data[].updatorInfo.email | string | Contact email; a Key summary may be the Key UUID, which is not a deliverable email address. |
| content.data[].updatorInfo.mobile | string | Contact mobile number; can be empty. |
| content.data[].updatorInfo.countryCode | string | Country code; may be omitted in a system summary. |
| content.data[].updatorInfo.acntWsNickname | string | Workspace nickname; may be omitted in a system summary. |
| content.data[].attachments | array<object> |
Associated attachment summaries; [] if none. |
| content.data[].attachments[].uuid | string | Attachment UUID; download through the downloadAttachment endpoint in this module. |
| content.data[].attachments[].fileName | string | Original filename. |
| content.data[].attachments[].fileSuffix | string | File extension without the dot; file content/direct link is not returned. |
| content.declaration | object or null | Workspace common declaration attached to non-empty content. It can be null or an empty object when not configured; it is not added when content is an empty object. |
| pageInfo.pageIndex | integer | Current page. Default: 1. |
| pageInfo.pageSize | integer | Current page size. Default: 10. |
| pageInfo.count | integer | Number of records on this page. |
| pageInfo.totalCount | integer | Total matching count; may change during modifications. |
{
"code": 200,
"content": {
"data": [
{
"id": 123,
"uuid": "inccmt_example",
"status": 0,
"creator": "wsak_example",
"updator": "",
"createAt": 1785427200,
"updateAt": -1,
"deleteAt": -1,
"incidentsUUID": "incident_example",
"workspaceUUID": "wksp_example",
"comment": "Database connection anomaly confirmed; investigating.",
"extend": {},
"creatorInfo": {},
"updatorInfo": {},
"attachments": []
}
],
"declaration": {}
},
"errorCode": "",
"message": "",
"success": true,
"traceId": "TRACE-EXAMPLE",
"pageInfo": {
"pageIndex": 1,
"pageSize": 10,
"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 examples. |
| 500 | ft.InternalServerError | Unhandled exceptions such as database reads, historical object/configuration formats, or related summary construction | Internal error | Check the query parameters and retain traceId; retry with backoff. If the failure persists, ask the administrator to check the relevant historical records and service logs. |