GetVocabulary
Retrieves the details of a vocabulary.
Try it now
You can call this API directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After a successful call, OpenAPI Explorer automatically generates SDK code examples.
RAM authorization
The following table lists the authorization information of this API. You can use the Action element of a RAM policy statement to grant a RAM user or RAM role the permission to call this API. Details:
-
Operation: the specific permission point.
-
Access level: the access level of each operation, which can be Write, Read, or List.
-
Resource type: the resource types supported for authorization in this operation. Details:
- Required resource types are marked with a preceding *.
- For operations that do not support resource-level authorization,
All resourcesis used.
-
Condition key: the condition keys defined by the cloud service itself.
-
Related operation: other permissions required to successfully perform the operation. The caller must have the permissions of the related operations at the same time for the operation to succeed.
Operation | Access level | Resource type | Condition key | Related operation |
|---|---|---|---|---|
bailianvoicebot:GetVocabulary | get | *All resources
| None | None |
Request syntax
POST HTTP/1.1
Request parameters
Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| BusinessUnitId | string | No | The ID of the Bailian business unit. | llm-zop7ukgtksltamo4 |
| VocabularyId | string | No | The ID of the vocabulary. | d74d6290-7cbe-4436-b5d7-014ebb0f4061 |
Response elements
Element | Type | Description | Example |
|---|---|---|---|
object | Schema of Response | ||
| Code | string | The internal error code. | OK |
| HttpStatusCode | integer | The HTTP status code. | 200 |
| Message | string | The error message. | Instance llm-zzu528i29ecnprcl does not exist. |
| RequestId | string | The request ID. | D771A1B6-3D5F-174A-BEE1-98CE1000D337 |
| Data | object | The vocabulary object. | |
| VocabularyId | string | The ID of the vocabulary. | af81a389-91f0-4157-8d82-720edd02b66b |
| Name | string | The name of the vocabulary. | Financial-scenario hot words |
| Description | string | The description. | Contains financial-scenario professional terms |
| CreatedTime | integer | The creation time. | 1773453676000 |
| UpdatedTime | integer | The update time. | 1773453676000 |
| InstanceId | string | The ID of the Bailian business unit. | llm-zop7ukgtksltamo4 |
| TenantId | string | The ID of the tenant. | 1308144684576655 |
| WordCount | string | The number of words in the vocabulary. | 50 |
| Words | string | The words in the vocabulary. | {\"apple\":\"2\",\"banana\":\"3\"} |
| Params | array | The list of dynamic error parameters. | |
string | A dynamic error parameter. | llm-xdne77rxe14ziszr |
Examples
Success response
JSON format
{
"Code": "OK",
"HttpStatusCode": 200,
"Message": "Instance llm-zzu528i29ecnprcl does not exist.",
"RequestId": "D771A1B6-3D5F-174A-BEE1-98CE1000D337",
"Data": {
"VocabularyId": "af81a389-91f0-4157-8d82-720edd02b66b",
"Name": "金融场景热词",
"Description": "包含金融场景专业术语",
"CreatedTime": 1773453676000,
"UpdatedTime": 1773453676000,
"InstanceId": "llm-zop7ukgtksltamo4",
"TenantId": "1308144684576655",
"WordCount": "50",
"Words": "{\\\"苹果\\\":\\\"2\\\",\\\"香蕉\\\":\\\"3\\\"}"
},
"Params": [
"llm-xdne77rxe14ziszr"
]
}
Error codes
Visit the Error Center for more error codes.
Release notes
See Release Notes for a complete list.