Querying the Status of a Custom Word Dictionary
Function
This API is used to query the loading status of a custom word dictionary.
URI
- URI format
GET /v1.0/{project_id}/clusters/{cluster_id}/thesaurus - Parameter description
Parameter
Mandatory
Type
Description
project_id
Yes
String
Project ID. For details, see Obtaining the Project ID and Account ID.
cluster_id
Yes
String
ID of the cluster where the word dictionary status is queried.
Request
Example request
GET /v1.0/6204a5bd270343b5885144cf9c8c158d/clusters/ea244205-d641-45d9-9dcb-ab2236bcd07e/thesaurus
Response
|
Parameter |
Type |
Description |
|---|---|---|
|
status |
String |
Loading status
|
|
bucket |
String |
OBS bucket where word dictionary files are stored. |
|
mainObj |
String |
Main word dictionary file object. |
|
stopObj |
String |
Stop word dictionary file object. |
|
synonymObj |
String |
Synonym word dictionary file object. |
|
updateTime |
String |
Last word dictionary update time. |
|
updateDetails |
String |
Update details. |
|
clusterId |
String |
ID of the cluster where custom word dictionaries are to be configured. |
|
operateStatus |
String |
Operating status. |
|
id |
String |
ID of a word dictionary. |
Example response
{
"status": "Loaded",
"operateStatus": "success",
"id": "e766bd5a-79b0-4d1a-8402-fdeb017a36d1",
"bucket": "test-bucket",
"mainObj": "word/main.dic",
"stopObj": "word/stop.dic",
"synonymObj":"word/synonym.dic",
"updateTime": 1521184757000,
"updateDetails": "all instances are loaded successfully.",
"clusterId": "ea244205-d641-45d9-9dcb-ab2236bcd07e "
}
Status Code
Table 2 describes the status code.
Last Article: Loading Custom Word Dictionary
Next Article: Deleting a Custom Word Dictionary
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.