Retrieves a digital employee.
Operation description
Retrieves a digital employee.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
starops:GetDigitalEmployee |
get |
*DigitalEmployee
|
None | None |
Request syntax
GET /digital-employee/{name} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| name |
string |
Yes |
The name of the digital employee. |
test |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| requestId |
string |
The request ID. |
0B9377D9-C56B-5C2E-A8A4-************ |
| name |
string |
The name of the digital employee. |
test |
| defaultRule |
string |
The default rule of the digital employee. |
test |
| description |
string |
The description of the digital employee. |
test |
| createTime |
string |
The creation time. |
2025-03-11T08:21:58Z |
| displayName |
string |
The display name of the digital employee. |
test |
| updateTime |
string |
The update time. |
2025-02-18T02:25:06Z |
| roleArn |
string |
The ARN of the RAM role. |
acs:ram::12345678912:role/testrole |
| regionId |
string |
The region ID. |
cn-beijing |
| knowledges |
object |
The knowledge base list. |
|
| bailian |
array<object> |
The Bailian knowledge base list. |
|
|
object |
The Bailian knowledge base list. |
||
| workspaceId |
string |
The Bailian workspace ID. |
llm-xxxxx |
| indexId |
string |
The Bailian index ID. |
index-xxxx |
| region |
string |
The region of the knowledge base. |
cn-beijing |
| attributes |
string |
The attributes of the knowledge base. |
test |
| sop |
array<object> |
The SOP knowledge base list. |
|
|
object |
The SOP knowledge base. |
{ "type": "oss", "basePath": "docs/", "region": "cn-hangzhou", "endpoint": "oss-cn-hangzhou.aliyuncs.com", "bucket": "my-sop-bucket", "description": "sls sop" } |
|
| employeeType |
string |
The type of the digital employee. |
custom |
| tags |
array |
The tags. |
|
| Tag |
The tags. |
||
| resourceGroupId |
string |
The resource group ID. |
rg-ae******ey |
| attributes |
object |
The attributes. |
|
|
string |
The attributes. |
{} |
|
| toolPolicy |
object |
The tool policy. |
{"aliyun":{"enable":true,"statements":[{"decision":"user_ack","product":"Sls","apiVersion":"2020-12-30","actions":["log:GetProject","log:CreateDashboard"]}]}} |
| aliyun |
object |
The security policy configuration for Aliyun CLI tool calling. |
{"enable":true,"statements":[{"decision":"user_ack","product":"Sls","apiVersion":"2020-12-30","actions":["log:GetProject","log:CreateDashboard"]}]} |
| enable |
boolean |
Indicates whether the policy is enabled. |
true |
| statements |
array<object> |
The list of Aliyun CLI tool policy statements. |
[{"decision":"user_ack","product":"Sls","apiVersion":"2020-12-30","actions":["log:GetProject","log:CreateDashboard"]}] |
|
object |
A single Aliyun OpenAPI tool policy statement. |
{"decision":"user_ack","product":"Sls","apiVersion":"2020-12-30","actions":["log:GetProject","log:CreateDashboard"]} |
|
| decision |
string |
The execution policy. Valid values:
|
user_ack |
| product |
string |
The cloud service code. |
Sls |
apiVersion
deprecated
|
string |
The API version. |
2020-12-30 |
| actions |
array |
The list of RAM actions. |
["log:GetProject","log:CreateDashboard"] |
|
string |
RAM action |
log:GetProject |
|
| sandboxNetworkPolicy |
object |
The sandbox network ACL policy configuration for the digital employee. |
{"allowFqdns":["api.example.com"],"allowCidrs":["1.2.3.0/24","8.8.8.8"],"enableAcl":false} |
| allowFqdns |
array |
The list of allowed FQDNs. |
|
|
string |
The list of allowed FQDNs. |
api.example.com |
|
| allowCidrs |
array |
The list of allowed CIDRs or IP addresses. |
|
|
string |
The list of allowed CIDRs or IP addresses. |
1.2.3.0/24 |
|
| enableAcl |
boolean |
Indicates whether the sandbox network ACL is enabled. |
false |
Examples
Success response
JSON format
{
"requestId": "0B9377D9-C56B-5C2E-A8A4-************\n",
"name": "test",
"defaultRule": "test",
"description": "test",
"createTime": "2025-03-11T08:21:58Z\n",
"displayName": "test",
"updateTime": "2025-02-18T02:25:06Z\n",
"roleArn": "acs:ram::12345678912:role/testrole",
"regionId": "cn-beijing\n",
"knowledges": {
"bailian": [
{
"workspaceId": "llm-xxxxx\n",
"indexId": "index-xxxx\n",
"region": "cn-beijing\n",
"attributes": "test"
}
],
"sop": [
{
"type": "oss",
"basePath": "docs/",
"region": "cn-hangzhou",
"endpoint": "oss-cn-hangzhou.aliyuncs.com",
"bucket": "my-sop-bucket",
"description": "sls sop"
}
]
},
"employeeType": "custom",
"tags": [
{
"key": "test-key",
"value": "test-value"
}
],
"resourceGroupId": "rg-ae******ey",
"attributes": {
"key": "{}"
},
"toolPolicy": {
"aliyun": {
"enable": true,
"statements": [
{
"decision": "user_ack",
"product": "Sls",
"apiVersion": "2020-12-30",
"actions": [
"log:GetProject"
]
}
]
}
},
"sandboxNetworkPolicy": {
"allowFqdns": [
"api.example.com"
],
"allowCidrs": [
"1.2.3.0/24"
],
"enableAcl": false
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 404 | InvalidDigitalEmployee.NotFound | The specified DigitalEmployee does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.