GetCustomSourceTopicAnalysisTask
Retrieves the results of a topic analysis task for a custom data source.
Try it now
You can run this API directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After the call succeeds, OpenAPI Explorer can automatically generate SDK code examples.
RAM authorization
The following table describes the authorization information of the API. You can use the Action element in RAM policy statements to grant RAM users or RAM roles the permissions to call this API. For more information:
-
Action: The specific permission point.
-
Access level: The access level of each action. Valid values: Write, Read, and List.
-
Resource type: The resource types that support authorization for the action. For more information:
- Required resource types are marked with an asterisk (*).
- For operations that do not support resource-level authorization,
All Resourcesis used.
-
Condition key: The condition keys defined by the cloud service.
-
Dependent action: The other permissions required to successfully perform the action. The caller must have the permissions of all dependent actions for the action to succeed.
| Action | Access level | Resource type | Condition key | Dependent action |
|---|---|---|---|---|
| aimiaobi:GetCustomSourceTopicAnalysisTask | get | *All Resources * |
| None |
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| WorkspaceId | string | Yes | The unique identifier of the workspace: AgentKey | xxxxx_p_efm |
| TaskId | string | Yes | The unique ID of the task. | c9f226b02cca4f42a84c5e955c39dfd2 |
Response elements
| Element | Type | Description | Example |
|---|---|---|---|
| object | PlainResult | ||
| Code | string | The status code. | NoData |
| Data | object | The business data. | |
| ErrorMessage | string | The error message. | Error message |
| Status | string | The status of the task. Valid values: | SUCCESSED |
| ParsedNewsSize | integer | The number of news articles after the file is parsed. | 10 |
| ClusterCount | integer | The number of documents after clustering. | 5 |
| MaxClusteredTopicNewsSize | integer | The maximum number of news articles after aggregation. | 8 |
| ClusterResults | array<object> | A list of news aggregation results. | |
| clusterResults | object | An aggregation result object. | |
| ClusterNews | array<object> | A list of aggregated news articles (body text not included). | |
| clusterNews | object | A news object. | |
| Title | string | The title of the news article. | News title |
| Url | string | The URL of the news article. | http://www.example.com/xxx.html |
| Topic | string | The name of the aggregated topic. | Topic name |
| usages | object | The token usage. The possible billable items are: quanmiaoMax and quanmiaoPlus | |
| long | The number of tokens used. | 200 | |
| rt | long | The total runtime, in milliseconds. | 1000 |
| Message | string | The error description. | success |
| RequestId | string | The unique ID of the request. | 1813ceee-7fe5-41b4-87e5-982a4d18cca5 |
| Success | boolean | Indicates whether the request is successful. | true |
| HttpStatusCode | integer | The HTTP status code. | 200 |
Examples
Success response
JSON format
{
"Code": "NoData",
"Data": {
"ErrorMessage": "Error message",
"Status": "SUCCESSED",
"ParsedNewsSize": 10,
"ClusterCount": 5,
"MaxClusteredTopicNewsSize": 8,
"ClusterResults": [
{
"ClusterNews": [
{
"Title": "News title\n\n",
"Url": "http://www.example.com/xxx.html"
}
],
"Topic": "Topic name"
}
],
"usages": {
"key": 200
},
"rt": 1000
},
"Message": "success",
"RequestId": "1813ceee-7fe5-41b4-87e5-982a4d18cca5",
"Success": true,
"HttpStatusCode": 200
}
Error codes
| HTTP status code | Error code | Error message | Description |
|---|---|---|---|
| 403 | NoPermission | You are not authorized to perform this action. | Please check the workspaceId assignment |
Visit the Error Center for more error codes.