CreateMaterializedView
Creates a materialized view.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
log:CreateMaterializedView |
create |
*All Resource
|
None | None |
Request syntax
POST /materializedviews HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| project |
string |
No |
The name of the project. |
test-project |
| body |
object |
No |
The request body. |
|
| name |
string |
No |
The name of the materialized view. |
test |
| logstore |
string |
No |
The name of the Logstore. |
test-logstore |
| originalSql |
string |
No |
The original SQL query statement executed by the materialized view. |
* | select count(*) from log |
| aggIntervalMins |
integer |
No |
The result aggregation interval of the materialized view. |
10 |
| startTime |
integer |
No |
The start time. |
1924479432 |
| ttl |
integer |
No |
The retention period, in days. |
30 |
| shardCount |
integer |
No |
The number of shards. |
4 |
Response elements
|
Element |
Type |
Description |
Example |
None defined.
Examples
Success response
JSON format
{}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.