Queries the entity data of a digital human.
Operation description
Queries the entity data of a digital human.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
starops:GetDigitalEmployeeEntityData |
get |
*DigitalEmployee
|
None | None |
Request syntax
POST /digitalEmployee/{name}/entities/query HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| name |
string |
Yes |
The name of the digital human whose entity data you want to query. |
sample-agent |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The maximum size of the query body is 4 MiB. The query is executed by the internal resources of the digital human. You do not need to provide an internal storage identifier. |
|
| from |
integer |
Yes |
The UNIX timestamp, in seconds. |
1770000000 |
| query |
string |
Yes |
Only the .entity or .topo semantic sources of the current digital human can be queried. Explicit access to internal storage or external data sources is prohibited. |
.entity with(type='deployment', domain='k8s') | limit 100 |
| to |
integer |
Yes |
The UNIX timestamp, in seconds. The value must be greater than the value of from. |
1770003600 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response data. |
||
| data |
array |
The query results in a two-dimensional array. Each cell is returned as a string. |
|
|
array |
The list item. |
||
|
string |
The list item. |
example |
|
| header |
array |
The column names of the query results. |
|
|
string |
The list item. |
example |
|
| requestId |
string |
The unique identifier of the request, generated by the STAROps access layer. |
0A1B2C3D-4E5F-6789-ABCD-1234567890AB |
| responseStatus |
object |
The completion status, retry suggestions, and execution status of the query. |
|
| level |
string |
The status level. Valid values:
|
Info |
| result |
string |
The query result status. Valid values:
|
Success |
| retryPolicy |
string |
The retry suggestion. Valid values:
|
None |
| statusItem |
array<object> |
The list of status details. |
|
|
object |
The list item. |
||
| code |
string |
The status code. |
Success |
| level |
string |
The status level. |
example |
| message |
string |
The status message. |
success |
| suggestion |
string |
The suggestion for handling the issue. |
example |
Examples
Success response
JSON format
{
"data": [
[
"example"
]
],
"header": [
"example"
],
"requestId": "0A1B2C3D-4E5F-6789-ABCD-1234567890AB",
"responseStatus": {
"level": "Info",
"result": "Success",
"retryPolicy": "None",
"statusItem": [
{
"code": "Success",
"level": "example",
"message": "success",
"suggestion": "example"
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.