Updates the information of a virtual data source in a specified workspace.
Debugging
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.
Debug
Authorization information
The following table describes the authorization information for this API. You can reference 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 operation. Valid values: Write, Read, or List.
-
Resource type: The resource types that support authorization for the operation. Details are as follows:
- Required resource types are marked with a leading asterisk (*).
- For operations that do not support resource-level authorization,
All Resourcesis used.
- Condition key: The condition keys defined by the cloud service itself.
- Dependent action: The other permissions required to successfully perform the operation. The caller must also have the permissions of the dependent actions for the operation to succeed.
| Action | Access level | Resource type | Condition key | Dependent action |
|---|---|---|---|---|
| dataanalysisgbi:UpdateVirtualDatasourceInstance | none | *All Resources * |
| None |
Request syntax
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| workspaceId | string | No | ID of the Alibaba Cloud Model Studio workspace used for this request. | llm-2v3934xtp49esw64 |
| body | object | No | Request body parameters. | |
| name | string | No | Name of the virtual data source. | Virtual data source 1 |
| description | string | No | Description of the virtual data source. | Virtual data source instance for the order table |
| vdbId | string | Yes | ID of the virtual data source instance. | vdb-E0F693C8-9F72-5830-B81A-696C9D8EBBD1 |
| type | integer | No | Type of the virtual data source. Valid values:
| 51 |
Response elements
| Element | Type | Description | Example |
|---|---|---|---|
| object | Result | ||
| data | any | Response data. | true |
| errorMsg | string | Error message. | NoAuth |
| code | string | Error code. | NoAuth |
| success | boolean | Indicates whether the call succeeded. true indicates a successful call, and false indicates a failed call. | true |
| requestId | string | Unique ID of the request. Each request has a unique value, which helps with troubleshooting. | E9563C85-5810-5835-B68C-78580BC3169E |
Examples
Success response
JSON format
Error codes
| HTTP status code | Error code | Error message | Description |
|---|---|---|---|
| 401 | Internal.Error | Bad Request: Internal Error. | Internal error. Contact customer service personnel for troubleshooting. |
| 401 | NoAuth | Bad Request: Workspace.Illegal.Auth. | The current account does not have the permission to the specified workspace. |