GetEntityStoreData
Queries the entity and relationship data in a specified workspace, and returns the entity data within a specific time range.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cms:GetEntityStoreData |
get |
*EntityStore
|
None | None |
Request syntax
POST /workspace/{workspace}/entitiesAndRelations HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| workspace |
string |
Yes |
The name of the workspace. |
workspace-test-001 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| acceptEncoding |
string |
No |
The content encoding type of the compression algorithm. |
gzip |
| body |
object |
No |
The request body. |
|
| from |
integer |
Yes |
The start time of the query. The value is a UNIX timestamp that indicates the number of seconds that have elapsed since 00:00:00 UTC on January 1, 1970. |
1721767203 |
| query |
string |
Yes |
The query statement. |
.entity with(domain='acs', type='acs.k8s.node') | limit 0, 10 |
| to |
integer |
Yes |
The end time of the query. The value is a UNIX timestamp that indicates the number of seconds that have elapsed since 00:00:00 UTC on January 1, 1970. |
1721767283 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| data |
array |
The total count of the returned data list. |
|
|
array |
The data list corresponding to the request header. |
||
|
string |
The data corresponding to the request headers. |
data1 |
|
| header |
array |
The list of request headers. |
|
|
string |
The request header. |
headerKey |
|
| requestId |
string |
The request ID. |
264C3E89-XXXX-XXXX-XXXX-CE9C2196C7DC |
| responseStatus |
object |
The result status. |
|
| executionStates |
string |
The information during the execution process. |
{} |
| level |
string |
The status level. |
Info,Warn,Error |
| result |
string |
The execution result. |
Success,PartialSuccess,Error |
| retryPolicy |
string |
The retry policy. |
None,Once,Continuous |
| statusItem |
array<object> |
The list of detailed status information. |
|
|
object |
The detailed status information. |
||
| code |
string |
The status code. |
Success,ExecuteTimeout,UModelNotExist |
| level |
string |
The status level. |
Info,Warn,Error |
| message |
string |
The computation execution information. |
Query execution timeout after 30 seconds |
| suggestion |
string |
The suggestions provided when an execution error occurs. |
Try to reduce the query scope or increase timeout limit, then retry |
Examples
Success response
JSON format
{
"data": [
[
"data1"
]
],
"header": [
"headerKey"
],
"requestId": "264C3E89-XXXX-XXXX-XXXX-CE9C2196C7DC",
"responseStatus": {
"executionStates": "{}",
"level": "Info,Warn,Error",
"result": "Success,PartialSuccess,Error",
"retryPolicy": "None,Once,Continuous",
"statusItem": [
{
"code": "Success,ExecuteTimeout,UModelNotExist",
"level": "Info,Warn,Error",
"message": "Query execution timeout after 30 seconds",
"suggestion": "Try to reduce the query scope or increase timeout limit, then retry"
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.