GetAppConfig
Retrieve app configuration.
Operation description
Prerequisites- You have activated Alibaba Cloud Model Studio and Tongyi Dianjin.
- Obtain the workspaceId: Obtain the workspace identifier.
Debug
You can run this API directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After a successful run, OpenAPI Explorer can automatically generate SDK code examples.
Authorization information
The following table describes the authorization information for this API. You can use it in the Action element of a RAM policy statement to grant RAM users or RAM roles the permission to call this API. Details are as follows:
-
Action: the specific permission point.
-
Access level: the access level of each action. Valid values: Write, Read, or List.
-
Resource type: the resource types that support authorization for the action. Details are as follows:
- For required resource types, an asterisk (*) is added as a prefix.
- For actions that do not support resource-level authorization,
All resourcesis used.
-
Condition key: the condition keys defined by the cloud service itself.
-
Related action: other permissions required to successfully perform the action. The caller must also have the permissions of the related actions for the operation to succeed.
| Action | Access level | Resource type | Condition key | Related action |
|---|---|---|---|---|
| dianjin:GetAppConfig | get | *All resources * |
| None |
Request syntax
GET /{workspaceId}/api/app/config HTTP/1.1
Request parameters
| Name | Type | Required | Description | Example value |
|---|---|---|---|---|
| workspaceId | string | Yes | Path parameter, business space ID | llm-xxxxx |
Response parameters
| Name | Type | Description | Example value |
|---|---|---|---|
| object | ResultCode | ||
| cost | long | Processing time | null |
| data | object | Response data | |
| embeddingTypeList | array<object> | Embedding type list | |
| embeddingTypeList | object | Key-value pair | |
| string | value | DashScope | |
| frontendConfig | object | Frontend configuration | |
| boolean | Whether to enable | true | |
| libraryDocumentStatusList | array<object> | Document library document status list | |
| libraryDocumentStatusList | object | Key-value pair | |
| string | value | Completed | |
| llmHelperTypeList | array<object> | Large Language Model (LLM) type list | |
| llmHelperTypeList | object | Key-value pair | |
| string | value | qwen-max | |
| textIndexCategoryList | array | Text index category list | |
| textIndexCategoryList | string | Text index category | ElasticSearch |
| vectorIndexCategoryList | array | Vector index category list | |
| vectorIndexCategoryList | string | Vector index category | ADB |
| dataType | string | Data type | null |
| errCode | string | Error code | 0 |
| message | string | Error message | None |
| requestId | string | Request ID | EF4B5C9B-3BC8-5171-A47B-4C5CF3DC3258 |
| success | boolean | Whether the operation is successful | True |
| time | string | Timestamp | 2024-04-24 11:54:34 |
Examples
Success response
JSON format
{
"cost": 0,
"data": {
"embeddingTypeList": [
{
"key": "DashScope"
}
],
"frontendConfig": {
"key": true
},
"libraryDocumentStatusList": [
{
"key": "Completed"
}
],
"llmHelperTypeList": [
{
"key": "qwen-max"
}
],
"textIndexCategoryList": [
"ElasticSearch"
],
"vectorIndexCategoryList": [
"ADB"
]
},
"dataType": null,
"errCode": 0,
"message": "None",
"requestId": "EF4B5C9B-3BC8-5171-A47B-4C5CF3DC3258",
"success": true,
"time": "2024-04-24 11:54:34"
}
Error codes
Visit the Error Center to view more error codes.