GetDataAgent
Retrieves a DataAgent.
Operation description
Returns the complete configuration of a single DataAgent by name, including the assumed RAM role, associated context models, and system prompt. Returns a 404 error if the DataAgent does not exist.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
log:GetDataAgent |
get |
*DataAgent
|
None | None |
Request syntax
GET /dataagents/{name} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| name |
string |
Yes |
The name of the DataAgent. The DataAgent must exist in the current account. The name can only contain uppercase and lowercase letters, digits, underscores (_), and hyphens (-), and must be 4 to 128 characters in length. |
order-analysis-agent |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. Returns the complete configuration of the DataAgent. |
||
| contextModels |
array |
The list of names of context models associated with the DataAgent. |
|
|
string |
The name of a context model. |
order-context |
|
| createdAt |
string |
The creation time in ISO 8601 format in the UTC time zone, accurate to seconds. |
2026-08-14T10:00:03Z |
| description |
string |
The description of the DataAgent. An empty string is returned if it is not set. |
Analyzes order and revenue-related logs and generates daily summary reports |
| displayName |
string |
The display name. If not set, an empty string |
Order Analysis Assistant |
| name |
string |
The name of the DataAgent. |
order-analysis-agent |
| roleArn |
string |
The ARN of the RAM role assumed by the DataAgent. |
acs:ram::123456789012****:role/sls-dataagent-role |
| systemPrompt |
string |
The system prompt of the DataAgent. An empty string is returned if it is not set. |
You are a data analysis assistant for the order domain. Only answer questions related to orders and revenue. If you are unsure, explain the reason instead of guessing |
| updatedAt |
string |
The time of the last update, in the same format as createdAt. |
2026-08-15T09:20:31Z |
| userId |
string |
The ID of the Alibaba Cloud account to which the DataAgent belongs. |
123456789012**** |
Examples
Success response
JSON format
{
"contextModels": [
"order-context"
],
"createdAt": "2026-08-14T10:00:03Z",
"description": "Analyzes order and revenue-related logs and generates daily summary reports",
"displayName": "Order Analysis Assistant",
"name": "order-analysis-agent",
"roleArn": "acs:ram::123456789012****:role/sls-dataagent-role",
"systemPrompt": "You are a data analysis assistant for the order domain. Only answer questions related to orders and revenue. If you are unsure, explain the reason instead of guessing",
"updatedAt": "2026-08-15T09:20:31Z",
"userId": "123456789012****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.